aboutsummaryrefslogtreecommitdiffstats
path: root/ports-mgmt/portlint
diff options
context:
space:
mode:
authormarcus <marcus@FreeBSD.org>2004-12-18 01:25:32 +0800
committermarcus <marcus@FreeBSD.org>2004-12-18 01:25:32 +0800
commit8fb77242bdaa9ecde8129619b5b920dc26e53d2c (patch)
tree02d3480eac211edb6af35e16b40916c976327eb4 /ports-mgmt/portlint
parent132fd7444fc711effed03e81dd5f9ab94f19b2d1 (diff)
downloadfreebsd-ports-gnome-8fb77242bdaa9ecde8129619b5b920dc26e53d2c.tar.gz
freebsd-ports-gnome-8fb77242bdaa9ecde8129619b5b920dc26e53d2c.tar.zst
freebsd-ports-gnome-8fb77242bdaa9ecde8129619b5b920dc26e53d2c.zip
Don't check for DISTVERSION as apart of %makevars since it will be set
internally when PORTVERSION is set. Instead, just scour the Makefile to see if both PORTVERSION and DISTVERSION are defined. Reported by: krion
Diffstat (limited to 'ports-mgmt/portlint')
-rw-r--r--ports-mgmt/portlint/Makefile1
-rw-r--r--ports-mgmt/portlint/src/portlint.pl12
2 files changed, 7 insertions, 6 deletions
diff --git a/ports-mgmt/portlint/Makefile b/ports-mgmt/portlint/Makefile
index 5351e3292714..0ebea5cb272e 100644
--- a/ports-mgmt/portlint/Makefile
+++ b/ports-mgmt/portlint/Makefile
@@ -9,6 +9,7 @@
PORTNAME= portlint
PORTVERSION= 2.6.10
+PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= # none
DISTFILES= # none
diff --git a/ports-mgmt/portlint/src/portlint.pl b/ports-mgmt/portlint/src/portlint.pl
index b10b0bb00d12..32d53e0578af 100644
--- a/ports-mgmt/portlint/src/portlint.pl
+++ b/ports-mgmt/portlint/src/portlint.pl
@@ -17,7 +17,7 @@
# OpenBSD and NetBSD will be accepted.
#
# $FreeBSD$
-# $Id: portlint.pl,v 1.70 2004/12/17 03:45:23 marcus Exp $
+# $Id: portlint.pl,v 1.71 2004/12/17 17:23:52 marcus Exp $
#
use vars qw/ $opt_a $opt_A $opt_b $opt_C $opt_c $opt_h $opt_t $opt_v $opt_M $opt_N $opt_B $opt_V /;
@@ -1466,7 +1466,7 @@ DIST_SUBDIR EXTRACT_ONLY
# check the items that has to be there.
$tmp = "\n" . $tmp;
- print "OK: checking PORTNAME/PORTVERSION.\n" if ($verbose);
+ print "OK: checking PORTNAME/PORTVERSION/DISTVERSION.\n" if ($verbose);
if ($tmp !~ /\nPORTNAME(.)?=/) {
&perror("FATAL: $file: PORTNAME has to be there.") unless ($slaveport && $makevar{PORTNAME} ne '');
} elsif ($1 ne '') {
@@ -1479,6 +1479,10 @@ DIST_SUBDIR EXTRACT_ONLY
&perror("WARN: $file: unless this is a master port, PORTVERSION has to be set by \"=\", ".
"not by \"$2=\".") unless ($masterport);
}
+ if ($tmp =~ /\nPORTVERSION.?=/ && $tmp =~ /\nDISTVERSION.?=/) {
+ &perror("FATAL: $file: either PORTVERSION or DISTVERSION must be ".
+ "specified, not both.");
+ }
if ($newport) {
print "OK: checking for existence of PORTREVISION in new port.\n"
if ($verbose);
@@ -1654,10 +1658,6 @@ DIST_SUBDIR EXTRACT_ONLY
if ($portversion eq '' && $distversion eq '') {
&perror("FATAL: $file: either PORTVERSION or DISTVERSION must be specified");
}
- if ($portversion ne '' && $distversion ne '') {
- &perror("FATAL: $file: either PORTVERSION or DISTVERSION must be ".
- "specified, not both");
- }
if ($portversion =~ /^pl[0-9]*$/
|| $portversion =~ /^[0-9]*[A-Za-z]?[0-9]*(\.[0-9]*[A-Za-z]?[0-9+]*)*$/) {
print "OK: PORTVERSION \"$portversion\" looks fine.\n" if ($verbose);