pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/pkgtools/pkg_filecheck Use SUBST framework. Use PERL5 ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5f3f7dfb1393
branches:  trunk
changeset: 505720:5f3f7dfb1393
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Fri Jan 06 17:10:58 2006 +0000

description:
Use SUBST framework. Use PERL5 instead of ${PREFIX}/bin/perl to get
the location of the interpreter.

diffstat:

 pkgtools/pkg_filecheck/Makefile         |  18 +++++++++++++++---
 pkgtools/pkg_filecheck/files/builddb.pl |   4 ++--
 2 files changed, 17 insertions(+), 5 deletions(-)

diffs (47 lines):

diff -r 3a0f5fe5c627 -r 5f3f7dfb1393 pkgtools/pkg_filecheck/Makefile
--- a/pkgtools/pkg_filecheck/Makefile   Fri Jan 06 17:01:40 2006 +0000
+++ b/pkgtools/pkg_filecheck/Makefile   Fri Jan 06 17:10:58 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.20 2005/12/29 06:22:06 jlam Exp $
+# $NetBSD: Makefile,v 1.21 2006/01/06 17:10:58 joerg Exp $
 #
 
 DISTNAME=              pkg_filecheck-0.1
@@ -27,11 +27,23 @@
 
 .include "../../mk/bdb.buildlink3.mk"
 
-do-build:
+SUBST_CLASSES+=                paths
+SUBST_FILES.paths=     builddb.pl builddb.1 pkg_filecheck.conf
+SUBST_FILES.paths+=    pkg_filecheck.conf.5 pkg_filecheck.c pkg_filecheck.1
+SUBST_SED.paths+=      -e 's,@PREFIX@,${PREFIX},g'
+SUBST_SED.paths+=      -e 's,@PERL5@,${PERL5},g'
+SUBST_SED.paths+=      -e 's,@X11PREFIX@,${X11PREFIX},g'
+SUBST_SED.paths+=      -e 's,@PKG_DBDIR@,${PKG_DBDIR},g'
+SUBST_SED.paths+=      -e 's,@PKG_SYSCONFDIR@,${PKG_SYSCONFDIR},g'
+SUBST_STAGE.paths=     post-patch
+
+post-extract:
 .for f in builddb.pl builddb.1 pkg_filecheck.conf pkg_filecheck.conf.5 \
        pkg_filecheck.c pkg_filecheck.1
-       ${SED} ${FILES_SUBST_SED} ${FILESDIR}/${f} > ${WRKSRC}/${f}
+       ${CP} ${FILESDIR}/${f} ${WRKSRC}/${f}
 .endfor
+
+do-build:
        cd ${WRKSRC} \
            && ${CC} ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} ${BDB_LIBS} \
                -o pkg_filecheck pkg_filecheck.c \
diff -r 3a0f5fe5c627 -r 5f3f7dfb1393 pkgtools/pkg_filecheck/files/builddb.pl
--- a/pkgtools/pkg_filecheck/files/builddb.pl   Fri Jan 06 17:01:40 2006 +0000
+++ b/pkgtools/pkg_filecheck/files/builddb.pl   Fri Jan 06 17:10:58 2006 +0000
@@ -1,6 +1,6 @@
-#!@PREFIX@/bin/perl
+#!@PERL5@
 
-#  $NetBSD: builddb.pl,v 1.1.1.1 2003/07/13 16:15:34 wiz Exp $
+#  $NetBSD: builddb.pl,v 1.2 2006/01/06 17:10:58 joerg Exp $
 #
 #  builddb -- build .byfile.db from tgz files or directory hierarchies.
 #  Copyright (C) 2000, 2003 Dieter Baron



Home | Main Index | Thread Index | Old Index