summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authorcheusov <cheusov@pkgsrc.org>2011-05-23 08:28:42 +0000
committercheusov <cheusov@pkgsrc.org>2011-05-23 08:28:42 +0000
commitce8b2f2251c43a0692f5faa23d12774cbf86593b (patch)
tree941f1187f0f5d797e01c80a2869dcd36d4f4a46c /pkgtools
parent6975d9b7f98ff7ab5cab927341c88275e2446167 (diff)
downloadpkgsrc-ce8b2f2251c43a0692f5faa23d12774cbf86593b.tar.gz
fix #!/usr/bin/env issue, oked by wiz@
Diffstat (limited to 'pkgtools')
-rw-r--r--pkgtools/pkgdep/Makefile14
-rw-r--r--pkgtools/pkgdep/files/pkgdep.pl4
2 files changed, 10 insertions, 8 deletions
diff --git a/pkgtools/pkgdep/Makefile b/pkgtools/pkgdep/Makefile
index 82fe7911066..0498ab6d65e 100644
--- a/pkgtools/pkgdep/Makefile
+++ b/pkgtools/pkgdep/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.14 2009/04/09 00:48:13 joerg Exp $
+# $NetBSD: Makefile,v 1.15 2011/05/23 08:28:42 cheusov Exp $
#
DISTNAME= pkgdep-1.0
@@ -11,17 +11,19 @@ COMMENT= Script for displaying dependence information on software packages
PKG_DESTDIR_SUPPORT= user-destdir
-WRKSRC= ${WRKDIR}
+WRKSRC= ${WRKDIR}/files
USE_TOOLS+= perl:run
-NO_CONFIGURE= yes
+REPLACE_PERL= pkgdep.pl
INSTALLATION_DIRS= bin
+do-extract:
+ ${CP} -Rp ${FILESDIR} ${WRKSRC}
+
do-build:
- ${CP} ${FILESDIR}/pkgdep.pl ${WRKDIR}/pkgdep
-# ${SED} -e 's|/usr/pkgsrc|${PKGSRCDIR}|' \
-# ${FILESDIR}/pkgdep.pl > ${WRKDIR}/pkgdep
+ ${SED} -e 's|@PKGSRCDIR@|${PKGSRCDIR}|' \
+ ${WRKSRC}/pkgdep.pl > ${WRKDIR}/pkgdep
do-install:
${INSTALL_SCRIPT} ${WRKDIR}/pkgdep ${DESTDIR}${PREFIX}/bin
diff --git a/pkgtools/pkgdep/files/pkgdep.pl b/pkgtools/pkgdep/files/pkgdep.pl
index 44ebd2171b0..aa1436d6a84 100644
--- a/pkgtools/pkgdep/files/pkgdep.pl
+++ b/pkgtools/pkgdep/files/pkgdep.pl
@@ -1,5 +1,5 @@
#!/usr/bin/env perl
-# $NetBSD: pkgdep.pl,v 1.2 2000/11/27 04:42:48 sakamoto Exp $
+# $NetBSD: pkgdep.pl,v 1.3 2011/05/23 08:28:42 cheusov Exp $
require 'getopts.pl';
use strict;
@@ -8,7 +8,7 @@ $|=1;
use vars qw($opt_I $opt_h $opt_e $opt_r $opt_v);
my (%pkgdir, %builddeps, %rundeps, %buildreqd, %runreqd, %printed);
-my ($indexfile) = "/usr/pkgsrc/INDEX";
+my ($indexfile) = "@PKGSRCDIR@/INDEX";
my ($package, $match_pkgs);
my (%node, %arrow, $home_level);
my(%color);