summaryrefslogtreecommitdiff
path: root/pkgtools/port2pkg/files
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>2013-11-19 10:46:06 +0000
committertron <tron@pkgsrc.org>2013-11-19 10:46:06 +0000
commit7484db737355968f8548ae11d52e1579d22c6a2b (patch)
treea98b0e9dceed8302ebdebf9f03d550c7c9bdb559 /pkgtools/port2pkg/files
parenteb2aaa57b057d38b5942b8b2006f94c60d299470 (diff)
downloadpkgsrc-7484db737355968f8548ae11d52e1579d22c6a2b.tar.gz
Update "port2pkg" package to version 1.14. It now works with modern
version of Perl, in particular the one distributed with "pkgsrc".
Diffstat (limited to 'pkgtools/port2pkg/files')
-rwxr-xr-xpkgtools/port2pkg/files/port2pkg.pl7
1 files changed, 4 insertions, 3 deletions
diff --git a/pkgtools/port2pkg/files/port2pkg.pl b/pkgtools/port2pkg/files/port2pkg.pl
index 6ea47fb0c29..a0a60ad92fd 100755
--- a/pkgtools/port2pkg/files/port2pkg.pl
+++ b/pkgtools/port2pkg/files/port2pkg.pl
@@ -1,9 +1,10 @@
#!/usr/bin/env perl
#
-# $NetBSD: port2pkg.pl,v 1.20 2012/01/02 12:15:48 joerg Exp $
+# $NetBSD: port2pkg.pl,v 1.21 2013/11/19 10:46:06 tron Exp $
#
-require 'getopts.pl';
+use Getopt::Std;
+
$^W=1;
use strict;
use vars qw($opt_m);
@@ -14,7 +15,7 @@ my($namespace, $portname, $portversion, $distname,
$pkgname, $pkgnameprefix, $pkgnamesuffix);
my(@man, @cat);
-&usage_and_exit() if (! &Getopts('m:'));
+&usage_and_exit() if (! &getopts('m:'));
$|=1;
$portsdir = shift;