pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/ruby-ronn ruby-ronn: Avoid self-conflict; added ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/194542fc07ce
branches:  trunk
changeset: 449353:194542fc07ce
user:      nia <nia%pkgsrc.org@localhost>
date:      Sun Mar 28 10:05:55 2021 +0000

description:
ruby-ronn: Avoid self-conflict; added ALTERNATIVES support.

diffstat:

 devel/ruby-ronn/ALTERNATIVES |   3 +++
 devel/ruby-ronn/Makefile     |  18 +++++++++++++++---
 devel/ruby-ronn/PLIST        |   7 +++----
 3 files changed, 21 insertions(+), 7 deletions(-)

diffs (58 lines):

diff -r 76af6098176b -r 194542fc07ce devel/ruby-ronn/ALTERNATIVES
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/ruby-ronn/ALTERNATIVES      Sun Mar 28 10:05:55 2021 +0000
@@ -0,0 +1,3 @@
+bin/ronn @PREFIX@/bin/ronn@RUBY_SUFFIX@
+@PKGMANDIR@/man1/ronn.1 @PREFIX@/@PKGMANDIR@/man1/ronn@RUBY_SUFFIX@.1
+@PKGMANDIR@/man7/ronn-format.7 @PREFIX@/@PKGMANDIR@/man7/ronn-format@RUBY_SUFFIX@.7
diff -r 76af6098176b -r 194542fc07ce devel/ruby-ronn/Makefile
--- a/devel/ruby-ronn/Makefile  Sun Mar 28 04:59:13 2021 +0000
+++ b/devel/ruby-ronn/Makefile  Sun Mar 28 10:05:55 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2017/08/21 13:26:14 nils Exp $
+# $NetBSD: Makefile,v 1.2 2021/03/28 10:05:55 nia Exp $
 
 DISTNAME=              ronn-0.7.3
 PKGNAME=               ${RUBY_PKGPREFIX}-${DISTNAME}
@@ -17,9 +17,21 @@
 
 INSTALLATION_DIRS+=    ${PKGMANDIR}/man1 ${PKGMANDIR}/man7
 
+post-build:
+       ${SED} -e 's/ronn(1)/ronn${RUBY_SUFFIX}(1)/g' \
+           -e 's/ronn\\-format(7)/ronn\-format${RUBY_SUFFIX}(7)/g' \
+           ${WRKSRC}/man/ronn.1 > \
+           ${WRKDIR}/ronn${RUBY_SUFFIX}.1
+       ${SED} -e 's/ronn(1)/ronn${RUBY_SUFFIX}(1)/g' \
+           -e 's/ronn\\-format(7)/ronn\-format${RUBY_SUFFIX}(7)/g' \
+           ${WRKSRC}/man/ronn-format.7 > \
+           ${WRKDIR}/ronn-format${RUBY_SUFFIX}.7
+
 post-install:
-       ${LN} -sf ${PREFIX}/${GEM_LIBDIR}/man/ronn.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/ronn.1
-       ${LN} -sf ${PREFIX}/${GEM_LIBDIR}/man/ronn-format.7 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man7/ronn-format.7
+       ${INSTALL_MAN} ${WRKDIR}/ronn${RUBY_SUFFIX}.1 \
+           ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/ronn${RUBY_SUFFIX}.1
+       ${INSTALL_MAN} ${WRKDIR}/ronn-format${RUBY_SUFFIX}.7 \
+           ${DESTDIR}${PREFIX}/${PKGMANDIR}/man7/ronn-format${RUBY_SUFFIX}.7
 
 .include "../../lang/ruby/gem.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 76af6098176b -r 194542fc07ce devel/ruby-ronn/PLIST
--- a/devel/ruby-ronn/PLIST     Sun Mar 28 04:59:13 2021 +0000
+++ b/devel/ruby-ronn/PLIST     Sun Mar 28 10:05:55 2021 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.1 2017/08/21 13:26:14 nils Exp $
+@comment $NetBSD: PLIST,v 1.2 2021/03/28 10:05:55 nia Exp $
 bin/ronn${RUBY_SUFFIX}
 ${GEM_HOME}/cache/${GEM_NAME}.gem
 ${GEM_LIBDIR}/AUTHORS
@@ -68,6 +68,5 @@
 ${GEM_LIBDIR}/test/underline_spacing_test.roff
 ${GEM_LIBDIR}/test/underline_spacing_test.ronn
 ${GEM_HOME}/specifications/${GEM_NAME}.gemspec
-man/man1/ronn.1
-man/man7/ronn-format.7
-@pkgdir lib/ruby/gems/2.0.0/build_info
+man/man1/ronn${RUBY_SUFFIX}.1
+man/man7/ronn-format${RUBY_SUFFIX}.7



Home | Main Index | Thread Index | Old Index