diff options
author | jlam <jlam@pkgsrc.org> | 2005-07-13 18:01:18 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2005-07-13 18:01:18 +0000 |
commit | 7a6521287b7054236ae629dfb57815c4aae61f8f (patch) | |
tree | 373bc74380ffe5c33d31e8ac4e10fc7ef8afd25a /lang | |
parent | 33edef1a27e65ba5bdf7afc046d89a82dd1580d0 (diff) | |
download | pkgsrc-7a6521287b7054236ae629dfb57815c4aae61f8f.tar.gz |
Turn PERL5_PACKLIST into a relative path instead of an absolute path.
These paths are now relative to PERL5_PACKLIST_DIR, which currently
defaults to ${PERL5_SITEARCH}. There is no change to the binary
packages.
Diffstat (limited to 'lang')
-rw-r--r-- | lang/perl5/module.mk | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lang/perl5/module.mk b/lang/perl5/module.mk index 9b0273b33ab..fa998fe2bbb 100644 --- a/lang/perl5/module.mk +++ b/lang/perl5/module.mk @@ -1,4 +1,4 @@ -# $NetBSD: module.mk,v 1.46 2005/05/20 03:00:16 jlam Exp $ +# $NetBSD: module.mk,v 1.47 2005/07/13 18:01:31 jlam Exp $ # # This Makefile fragment is intended to be included by packages that build # and install perl5 modules. @@ -147,15 +147,17 @@ PERL5_MAKE_FLAGS+= OTHERLDFLAGS="${LDFLAGS}" # Generate the PLIST from the files listed in PERL5_PACKLIST. .if defined(PERL5_PACKLIST) +PERL5_PACKLIST_DIR?= ${PERL5_SITEARCH} +_PERL5_PACKLIST= ${PERL5_PACKLIST:S/^/${PERL5_PACKLIST_DIR}\//} PERL5_PLIST_COMMENT= \ ( ${ECHO} "@comment The following lines are automatically generated"; \ ${ECHO} "@comment from the installed .packlist files." ) PERL5_PLIST_FILES= \ - ( ${CAT} ${PERL5_PACKLIST}; for f in ${PERL5_PACKLIST}; do [ ! -f $$f ] || ${ECHO} $$f; done ) \ + ( ${CAT} ${_PERL5_PACKLIST}; for f in ${_PERL5_PACKLIST}; do [ ! -f $$f ] || ${ECHO} $$f; done ) \ | ${SED} -e "s,[ ].*,," -e "s,/\./,/,g" -e "s,${PREFIX}/,," \ | ${SORT} -u PERL5_PLIST_DIRS= \ - ( ${CAT} ${PERL5_PACKLIST}; for f in ${PERL5_PACKLIST}; do [ ! -f $$f ] || ${ECHO} $$f; done ) \ + ( ${CAT} ${_PERL5_PACKLIST}; for f in ${_PERL5_PACKLIST}; do [ ! -f $$f ] || ${ECHO} $$f; done ) \ | ${SED} -e "s,[ ].*,," -e "s,/\./,/,g" -e "s,${PREFIX}/,," \ -e "s,^,@unexec \${RMDIR} -p %D/," \ -e "s,/[^/]*$$, 2>/dev/null || ${TRUE}," \ |