summaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2000-08-24 08:20:44 +0000
committerjlam <jlam@pkgsrc.org>2000-08-24 08:20:44 +0000
commite02a479cabb2b8f3e1c568ddc41be6ea8da7ef61 (patch)
tree3ad47b3df2fdada010f515506039e0ac08170abf /textproc
parentf3fb78f83342535df2771c22645cfe67416d7f5a (diff)
downloadpkgsrc-e02a479cabb2b8f3e1c568ddc41be6ea8da7ef61.tar.gz
Implement improvements suggested by hubertf@netbsd.org:
* Substitute ${PREFIX} instead of ${LOCALBASE} for location of installed files. * Use only one ${SED} invocation instead of four to speed things up. * Add a comment to ${PKGDIR}/PLIST to make explicit at which point the PLIST is generated dynamically.
Diffstat (limited to 'textproc')
-rw-r--r--textproc/eperl/Makefile18
-rw-r--r--textproc/eperl/pkg/PLIST3
2 files changed, 11 insertions, 10 deletions
diff --git a/textproc/eperl/Makefile b/textproc/eperl/Makefile
index 74429685ff7..cbd7fbf7a3f 100644
--- a/textproc/eperl/Makefile
+++ b/textproc/eperl/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2000/08/15 01:12:15 jlam Exp $
+# $NetBSD: Makefile,v 1.3 2000/08/24 08:20:44 jlam Exp $
#
DISTNAME= eperl-2.2.14
@@ -13,6 +13,7 @@ DEPENDS= libperl-5.*:../../lang/libperl
USE_PERL5= # defined
PERL= ${LOCALBASE}/bin/perl
+P5_PACKLIST= ${P5_SITEARCH}/auto/Parse/ePerl/.packlist
GNU_CONFIGURE= # defined
ALL_TARGET= all libeperl.a
@@ -32,22 +33,21 @@ post-install:
#
# Add the installed files to the PLIST.
#
- (${CAT} ${P5_PACKLIST}; for f in ${P5_PACKLIST}; do echo $$f; done) \
- | ${SED} -e "s,/./,/,g" -e "s,${LOCALBASE}/,," \
+ ( ${CAT} ${P5_PACKLIST}; for f in ${P5_PACKLIST}; do echo $$f; done ) \
+ | ${SED} -e "s,/./,/,g" -e "s,${PREFIX}/,," \
| sort -u \
>> ${PLIST_SRC}
#
# We're not sure which directories are empty and can be deleted, so
# try them all, but ignore failures.
#
- (${CAT} ${P5_PACKLIST}; for f in ${P5_PACKLIST}; do echo $$f; done) \
- | ${SED} -e "s,/./,/,g" -e "s,${LOCALBASE}/,," \
- | ${SED} -e "s,/[^/]*$$,," | sort -ur \
- | ${SED} -e "s,^,@unexec rmdir -p %D/," \
- | ${SED} -e "s,$$, 2>/dev/null || true," \
+ ( ${CAT} ${P5_PACKLIST}; for f in ${P5_PACKLIST}; do echo $$f; done ) \
+ | ${SED} -e "s,/./,/,g" -e "s,${PREFIX}/,," \
+ -e "s,^,@unexec rmdir -p %D/," \
+ -e "s,/[^/]*$$, 2>/dev/null || true," \
+ | sort -ur \
>> ${PLIST_SRC}
.include "../../mk/bsd.pkg.mk"
P5_SITEARCH!= eval `${PERL} -V:installsitearch`; echo $${installsitearch}
-P5_PACKLIST= ${P5_SITEARCH}/auto/Parse/ePerl/.packlist
diff --git a/textproc/eperl/pkg/PLIST b/textproc/eperl/pkg/PLIST
index 6647522e810..952655cf689 100644
--- a/textproc/eperl/pkg/PLIST
+++ b/textproc/eperl/pkg/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.3 2000/08/15 01:12:16 jlam Exp $
+@comment $NetBSD: PLIST,v 1.4 2000/08/24 08:20:44 jlam Exp $
bin/eperl
man/man1/eperl.1
share/eperl/00README
@@ -27,3 +27,4 @@ share/eperl/demo.table.phtml
share/eperl/demo.text.iphtml
share/eperl/demo.text.phtml
@dirrm share/eperl
+@comment The following lines are automatically generated from the .packlist files.