diff options
author | marcus <marcus@FreeBSD.org> | 2014-06-22 03:24:50 +0800 |
---|---|---|
committer | marcus <marcus@FreeBSD.org> | 2014-06-22 03:24:50 +0800 |
commit | 899283448c53d137795ae449876d23dbb2dc63aa (patch) | |
tree | f8c3f5d195ae88a409f3df19d3ffca85440beb87 /ports-mgmt | |
parent | 3200b41a8f58a93de458a89413f548f921dd97dc (diff) | |
download | freebsd-ports-gnome-899283448c53d137795ae449876d23dbb2dc63aa.tar.gz freebsd-ports-gnome-899283448c53d137795ae449876d23dbb2dc63aa.tar.zst freebsd-ports-gnome-899283448c53d137795ae449876d23dbb2dc63aa.zip |
Update to 2.15.2.
* Add s3.amazonaws.com to the list of whitelist master sites. [1]
* Correct a typo. [2]
* Add support for the @sample directive. [3]
* Check for USE_AUTOTOOLS=libtool and suggest USES=libtool instead.
PR: 183864 [3]
Submitted by: skreuzer [1]
culot [2]
Diffstat (limited to 'ports-mgmt')
-rw-r--r-- | ports-mgmt/portlint/Makefile | 2 | ||||
-rw-r--r-- | ports-mgmt/portlint/src/portlint.pl | 26 |
2 files changed, 20 insertions, 8 deletions
diff --git a/ports-mgmt/portlint/Makefile b/ports-mgmt/portlint/Makefile index 8bee4a375f4e..a0f5c3e85198 100644 --- a/ports-mgmt/portlint/Makefile +++ b/ports-mgmt/portlint/Makefile @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= portlint -PORTVERSION= 2.15.1 +PORTVERSION= 2.15.2 CATEGORIES= ports-mgmt MASTER_SITES= # none DISTFILES= # none diff --git a/ports-mgmt/portlint/src/portlint.pl b/ports-mgmt/portlint/src/portlint.pl index 640c40c4e580..2d35e85266a3 100644 --- a/ports-mgmt/portlint/src/portlint.pl +++ b/ports-mgmt/portlint/src/portlint.pl @@ -15,7 +15,7 @@ # was removed. # # $FreeBSD$ -# $MCom: portlint/portlint.pl,v 1.314 2014/04/19 18:36:43 marcus Exp $ +# $MCom: portlint/portlint.pl,v 1.319 2014/06/21 19:21:54 marcus Exp $ # use strict; @@ -45,12 +45,12 @@ $contblank = 1; $portdir = '.'; @ALLOWED_FULL_PATHS = qw(/boot/loader.conf /compat/ /dev/null /etc/inetd.conf); -@MASTERSITES_WHITELIST = qw(googlecode.com nodeload.github.com); +@MASTERSITES_WHITELIST = qw(googlecode.com nodeload.github.com s3.amazonaws.com); # version variables my $major = 2; my $minor = 15; -my $micro = 1; +my $micro = 2; sub l { '[{(]'; } sub r { '[)}]'; } @@ -700,6 +700,13 @@ sub checkplist { } elsif ($_ eq "\@cwd") { ; # @cwd by itself means change directory back to the original # PREFIX. + } elsif ($_ =~ /^\@sample\s+(\S*)/) { + my $sl = $.; + if ($1 !~ /\.sample$/) { + &perror("WARN", $file, $sl, "\@sample directive references". + " file that does not end in ``.sample''. Sample". + " files must end in ``.sample''."); + } } else { &perror("WARN", $file, $., "unknown pkg-plist directive \"$_\""); @@ -1578,8 +1585,8 @@ sub checkmakefile { if (!grep(/^$i$/, @opt, @aopt)) { # skip global options next if ($i eq 'DOCS' or $i eq 'NLS' or $i eq 'EXAMPLES' or $i eq 'IPV6' or $i eq 'X11'); - &perror("WARN", $file, -1, "$i is appears in PORT_OPTIONS:M, ". - "but not listed in OPTIONS_DEFINE."); + &perror("WARN", $file, -1, "$i appears in PORT_OPTIONS:M, ". + "but is not listed in OPTIONS_DEFINE."); } } @@ -1857,8 +1864,8 @@ ruby sed sdl-config sh sort sysctl touch tr which xargs xmkmf $cmdnames{'strip'} = '${STRIP_CMD}'; $cmdnames{'unzip'} = '${UNZIP_CMD}'; $cmdnames{'pkg_create'} = '${PKG_CMD}'; - foreach my $i (qw(aclocal autoconf autoheader automake autoreconf autoupdate autoscan ifnames libtool libtoolize)) { - $autocmdnames{$i} = "\$\{" . ( ( $i !~ /auto|aclocal|libtool/ ) ? "AUTO" : "" ) . "\U$i\E\}"; + foreach my $i (qw(aclocal autoconf autoheader automake autoreconf autoupdate autoscan ifnames libtoolize)) { + $autocmdnames{$i} = "\$\{" . ( ( $i !~ /auto|aclocal/ ) ? "AUTO" : "" ) . "\U$i\E\}"; } # # ignore parameter string to echo command. @@ -1930,6 +1937,11 @@ ruby sed sdl-config sh sort sysctl touch tr which xargs xmkmf } } + if ($makevar{'USE_AUTOTOOLS'} =~ /\blibtool\b/) { + &perror("WARN", $file, -1, "USE_AUTOTOOLS=libtool is deprecated. ". + "Use USES=libtool instead."); + } + # # whole file: check for use of paths that have macro replacements # |