From 87e706ce7430b09238ee71b59619ffde8eafc73a Mon Sep 17 00:00:00 2001 From: wiz Date: Sun, 19 May 2002 15:41:36 +0000 Subject: Convert ${PORTNAME} to ${PKGNAME}, from YAMAMOTO Takashi in pkg/16772. Bump version to 1.11. --- pkgtools/port2pkg/files/port2pkg.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pkgtools/port2pkg/files') 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 |.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|; -- cgit v1.2.3