diff options
author | jlam <jlam@pkgsrc.org> | 2008-03-12 22:04:07 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2008-03-12 22:04:07 +0000 |
commit | e285acf52d4894e19f69e3e9c4ca5c099c57f2c6 (patch) | |
tree | 0a0337520798c931054c14f262799e6ee6a3c337 /misc | |
parent | 29df04092cce9924b0d9916c34c359272a77ee46 (diff) | |
download | pkgsrc-e285acf52d4894e19f69e3e9c4ca5c099c57f2c6.tar.gz |
Don't hardcode the package version number into the PLIST -- use
${PKGVERSION} instead.
Diffstat (limited to 'misc')
-rw-r--r-- | misc/rubygems/rubygem.mk | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/misc/rubygems/rubygem.mk b/misc/rubygems/rubygem.mk index 0c68c1fc3cc..faacf262c3c 100644 --- a/misc/rubygems/rubygem.mk +++ b/misc/rubygems/rubygem.mk @@ -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_LIBDIR=${GEM_LIBDIR:S|^${PREFIX}/||} 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}/ \ |