pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/perl5 Use SUBST framework instead of FILES_SUBST_...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0195cb6d739e
branches:  trunk
changeset: 506568:0195cb6d739e
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Thu Jan 19 02:09:09 2006 +0000

description:
Use SUBST framework instead of FILES_SUBST_SED.

diffstat:

 lang/perl5/Makefile |  13 ++++++++-----
 1 files changed, 8 insertions(+), 5 deletions(-)

diffs (38 lines):

diff -r 75787885cd02 -r 0195cb6d739e lang/perl5/Makefile
--- a/lang/perl5/Makefile       Thu Jan 19 02:01:18 2006 +0000
+++ b/lang/perl5/Makefile       Thu Jan 19 02:09:09 2006 +0000
@@ -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 @@
                        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_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:



Home | Main Index | Thread Index | Old Index