summaryrefslogtreecommitdiff
path: root/pkgtools/port2pkg
diff options
context:
space:
mode:
authorrillig <rillig>2005-11-05 17:23:35 +0000
committerrillig <rillig>2005-11-05 17:23:35 +0000
commitf3d51a5f16e9d6295843f1ec53e8076fc0e3fd96 (patch)
tree0a4d9a44b73d183972866057c7e29603687338a6 /pkgtools/port2pkg
parent4023418383a2fd4b4f9e9f1052316d980daf30d5 (diff)
downloadpkgsrc-f3d51a5f16e9d6295843f1ec53e8076fc0e3fd96.tar.gz
Replaced ${PKGNAME:C...} with the equivalent ${PKGBASE}.
Diffstat (limited to 'pkgtools/port2pkg')
-rwxr-xr-xpkgtools/port2pkg/files/port2pkg.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgtools/port2pkg/files/port2pkg.pl b/pkgtools/port2pkg/files/port2pkg.pl
index 98b7a0dd970..8d0e84a8aa8 100755
--- a/pkgtools/port2pkg/files/port2pkg.pl
+++ b/pkgtools/port2pkg/files/port2pkg.pl
@@ -1,6 +1,6 @@
#!/usr/bin/env perl
#
-# $NetBSD: port2pkg.pl,v 1.13 2004/01/10 16:27:06 cjep Exp $
+# $NetBSD: port2pkg.pl,v 1.14 2005/11/05 17:23:35 rillig Exp $
#
require 'getopts.pl';
@@ -180,7 +180,7 @@ sub conv_Makefile {
s|^\.include <bsd.port.mk>|.include \"../../mk/bsd.pkg.mk\"|;
s|^FETCH_(DEPENDS)|BUILD_$1|;
s|^LIB_(DEPENDS)|$1|;
- s|\$\{PORTNAME\}|\${PKGNAME:C/-[^-]*\$//}|g;
+ s|\$\{PORTNAME\}|\${PKGBASE}|g;
s|\$\{PORTSDIR\}|../..|g;
s|PLIST_SUB|PLIST_SUBST|;