summaryrefslogtreecommitdiff
path: root/lang/perl5
diff options
context:
space:
mode:
authorjlam <jlam>2005-07-13 18:01:18 +0000
committerjlam <jlam>2005-07-13 18:01:18 +0000
commitd4ffd78b7485efe90299999629f0ca3d63736a00 (patch)
tree373bc74380ffe5c33d31e8ac4e10fc7ef8afd25a /lang/perl5
parent86313e3cab4d2cbaf75eb3cdeae38888ce183c62 (diff)
downloadpkgsrc-d4ffd78b7485efe90299999629f0ca3d63736a00.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/perl5')
-rw-r--r--lang/perl5/module.mk8
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}," \