pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/ruby-ronn devel/ruby-ronn: switch to use RUBYGEM...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e9488fc32263
branches:  trunk
changeset: 390587:e9488fc32263
user:      taca <taca%pkgsrc.org@localhost>
date:      Fri Dec 23 13:30:41 2022 +0000

description:
devel/ruby-ronn: switch to use RUBYGEM_MANPAGES

* Remove redundant PKGNMAE.
* Switch to use RUBYGEM_MANPAGES and make things simpler.

Bump PKGREVISION.

diffstat:

 devel/ruby-ronn/Makefile |  24 +++---------------------
 devel/ruby-ronn/PLIST    |   6 +++---
 2 files changed, 6 insertions(+), 24 deletions(-)

diffs (57 lines):

diff -r e5175be8e909 -r e9488fc32263 devel/ruby-ronn/Makefile
--- a/devel/ruby-ronn/Makefile  Fri Dec 23 13:28:22 2022 +0000
+++ b/devel/ruby-ronn/Makefile  Fri Dec 23 13:30:41 2022 +0000
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.4 2022/07/18 12:44:47 jperkin Exp $
+# $NetBSD: Makefile,v 1.5 2022/12/23 13:30:41 taca Exp $
 
 DISTNAME=              ronn-0.7.3
-PKGNAME=               ${RUBY_PKGPREFIX}-${DISTNAME}
-PKGREVISION=           2
+PKGREVISION=           3
 CATEGORIES=            devel textproc
 
 MAINTAINER=            nils%NetBSD.org@localhost
@@ -15,24 +14,7 @@
 DEPENDS+=              ${RUBY_PKGPREFIX}-rdiscount-[0-9]*:../../textproc/ruby-rdiscount
 
 RUBYGEM_OPTIONS+=      --format-executable
-
-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:
-       ${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
+RUBYGEM_MANPAGES=      yes
 
 .include "../../lang/ruby/gem.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r e5175be8e909 -r e9488fc32263 devel/ruby-ronn/PLIST
--- a/devel/ruby-ronn/PLIST     Fri Dec 23 13:28:22 2022 +0000
+++ b/devel/ruby-ronn/PLIST     Fri Dec 23 13:30:41 2022 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.2 2021/03/28 10:05:55 nia Exp $
+@comment $NetBSD: PLIST,v 1.3 2022/12/23 13:30:41 taca Exp $
 bin/ronn${RUBY_SUFFIX}
 ${GEM_HOME}/cache/${GEM_NAME}.gem
 ${GEM_LIBDIR}/AUTHORS
@@ -68,5 +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${RUBY_SUFFIX}.1
-man/man7/ronn-format${RUBY_SUFFIX}.7
+${PLIST.rubygem_man}man/man1/ronn.1
+${PLIST.rubygem_man}man/man7/ronn-format.7



Home | Main Index | Thread Index | Old Index