pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/misc/rubygems Don't hardcode the package version numbe...
details: https://anonhg.NetBSD.org/pkgsrc/rev/0924328f7075
branches: trunk
changeset: 539764:0924328f7075
user: jlam <jlam%pkgsrc.org@localhost>
date: Wed Mar 12 22:04:07 2008 +0000
description:
Don't hardcode the package version number into the PLIST -- use
${PKGVERSION} instead.
diffstat:
misc/rubygems/rubygem.mk | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (18 lines):
diff -r e74082fb4065 -r 0924328f7075 misc/rubygems/rubygem.mk
--- a/misc/rubygems/rubygem.mk Wed Mar 12 21:43:30 2008 +0000
+++ b/misc/rubygems/rubygem.mk Wed Mar 12 22:04:07 2008 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: rubygem.mk,v 1.7 2008/03/12 20:27:08 jlam Exp $
+# $NetBSD: rubygem.mk,v 1.8 2008/03/12 22:04:07 jlam Exp $
#
# This Makefile fragment is intended to be included by packages that build
# and install Ruby gems.
@@ -85,6 +85,8 @@
PLIST_SUBST+= GEM_DOCDIR=${GEM_DOCDIR:S|^${PREFIX}/||}
# print-PLIST support
+PRINT_PLIST_AWK+= /${GEM_NAME:S/./[.]/g}[.](gem|gemspec)$$/ \
+ { gsub(/${PKGVERSION_NOREV:S|/|\\/|g}[.]gem/, "$${PKGVERSION}.gem"); }
PRINT_PLIST_AWK+= /^(@dirrm )?${GEM_LIBDIR:S|${PREFIX}/||:S|/|\\/|g}/ \
{ gsub(/${GEM_LIBDIR:S|${PREFIX}/||:S|/|\\/|g}/, "$${GEM_LIBDIR}"); print; next; }
PRINT_PLIST_AWK+= /^(@dirrm )?${GEM_DOCDIR:S|${PREFIX}/||:S|/|\\/|g}/ \
Home |
Main Index |
Thread Index |
Old Index