summaryrefslogtreecommitdiff
path: root/pkgtools/port2pkg/files
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2002-05-19 15:41:36 +0000
committerwiz <wiz@pkgsrc.org>2002-05-19 15:41:36 +0000
commit87e706ce7430b09238ee71b59619ffde8eafc73a (patch)
tree8a0b8da8328285c333c86093312e8a477aec6d50 /pkgtools/port2pkg/files
parente9f268e31ebe72bccb6e6223905678e49ffca430 (diff)
downloadpkgsrc-87e706ce7430b09238ee71b59619ffde8eafc73a.tar.gz
Convert ${PORTNAME} to ${PKGNAME}, from YAMAMOTO Takashi in pkg/16772.
Bump version to 1.11.
Diffstat (limited to 'pkgtools/port2pkg/files')
-rwxr-xr-xpkgtools/port2pkg/files/port2pkg.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgtools/port2pkg/files/port2pkg.pl b/pkgtools/port2pkg/files/port2pkg.pl
index d22215007a5..e5a690be63c 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.10 2002/01/01 17:01:01 wiz Exp $
+# $NetBSD: port2pkg.pl,v 1.11 2002/05/19 15:41:37 wiz Exp $
#
require 'getopts.pl';
@@ -180,6 +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|\$\{PORTSDIR\}|../..|g;
s|PLIST_SUB|PLIST_SUBST|;