diff options
author | joerg <joerg> | 2006-01-19 02:09:09 +0000 |
---|---|---|
committer | joerg <joerg> | 2006-01-19 02:09:09 +0000 |
commit | 31c37b444310e558e9335f73fd363196bd728512 (patch) | |
tree | 000792cf8d457628d3338ca8b570d5ebfc6dcaca | |
parent | ded0d1fc03a2f60e1bc90d362cf2754459c44fe8 (diff) | |
download | pkgsrc-31c37b444310e558e9335f73fd363196bd728512.tar.gz |
Use SUBST framework instead of FILES_SUBST_SED.
-rw-r--r-- | lang/perl5/Makefile | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/lang/perl5/Makefile b/lang/perl5/Makefile index 0c5c3523890..d6368d6ef1d 100644 --- a/lang/perl5/Makefile +++ b/lang/perl5/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.115 2006/01/15 07:40:30 jlam Exp $ +# $NetBSD: Makefile,v 1.116 2006/01/19 02:09:09 joerg Exp $ DISTNAME= perl-5.8.7 PKGREVISION= 8 @@ -251,10 +251,17 @@ SUBST_FILES.dirmode= installhtml installman installperl \ lib/ExtUtils/Install.pm SUBST_SED.dirmode= -e "s/755/${PKGDIRMODE}/g;/umask(/d" +SUBST_CLASSES+= paths +SUBST_FILES.paths= ${WRKDIR}/perllink +SUBST_SED.paths+= -e 's,@PERL5@,${PERL5},g' +SUBST_SED.paths+= -e 's,@SH@,${SH},g' +SUBST_STAGE.paths= post-patch + # Replace the base Sys-Syslog module with the fixed version. post-extract: ${RM} -fr ${WRKSRC}/ext/Sys/Syslog ${CP} -r ${WRKDIR}/${SYS_SYSLOG} ${WRKSRC}/ext/Sys/Syslog + ${CP} ${FILESDIR}/perllink.in ${WRKDIR}/perllink # It's tough to guess which hints file will be used, so add our modifications # to all of them: @@ -321,10 +328,6 @@ FILES_SUBST+= PERL5_COMMENT=\# FILES_SUBST+= PERL5_PACKLIST= PLIST_SRC= ${WRKDIR}/.PLIST_SRC -post-build: - @${SED} ${FILES_SUBST_SED} ${FILESDIR}/perllink.in \ - > ${WRKDIR}/perllink - post-install: perl5-post-install perl5-post-install: |