summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authorwiz <wiz>2001-05-12 15:19:14 +0000
committerwiz <wiz>2001-05-12 15:19:14 +0000
commit4fece715158b02bfdcfdde164c922bf594a1d7f5 (patch)
treeadacaac7e9fa6a66643425b744b6aad823d162aa /pkgtools
parent2b2f28f62995dba6b4e1372296d672b319dc39e4 (diff)
downloadpkgsrc-4fece715158b02bfdcfdde164c922bf594a1d7f5.tar.gz
Warn on finding USE_PERL (not USE_PERL5), and on DEPENDS with
continuation lines. Bump to 2.51.
Diffstat (limited to 'pkgtools')
-rw-r--r--pkgtools/pkglint/Makefile4
-rw-r--r--pkgtools/pkglint/files/pkglint.pl13
2 files changed, 14 insertions, 3 deletions
diff --git a/pkgtools/pkglint/Makefile b/pkgtools/pkglint/Makefile
index d8d2616a398..fc220eb8ae6 100644
--- a/pkgtools/pkglint/Makefile
+++ b/pkgtools/pkglint/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.92 2001/05/03 19:18:55 abs Exp $
+# $NetBSD: Makefile,v 1.93 2001/05/12 15:19:14 wiz Exp $
#
-DISTNAME= pkglint-2.50
+DISTNAME= pkglint-2.51
CATEGORIES= pkgtools devel
MASTER_SITES= # empty
DISTFILES= # empty
diff --git a/pkgtools/pkglint/files/pkglint.pl b/pkgtools/pkglint/files/pkglint.pl
index 5d3769714d5..530dd8345b0 100644
--- a/pkgtools/pkglint/files/pkglint.pl
+++ b/pkgtools/pkglint/files/pkglint.pl
@@ -12,7 +12,7 @@
# Freely redistributable. Absolutely no warranty.
#
# From Id: portlint.pl,v 1.64 1998/02/28 02:34:05 itojun Exp
-# $NetBSD: pkglint.pl,v 1.49 2001/05/03 19:18:55 abs Exp $
+# $NetBSD: pkglint.pl,v 1.50 2001/05/12 15:19:15 wiz Exp $
#
# This version contains some changes necessary for NetBSD packages
# done by Hubert Feyrer <hubertf@netbsd.org>,
@@ -738,6 +738,10 @@ sub checkmakefile {
if ($whole =~ /\nNO_CHECKSUM/) {
$seen_NO_CHECKSUM=1;
}
+ print "OK: checking USE_PERL usage.\n" if ($verbose);
+ if ($whole =~ /\nUSE_PERL[^5]/) {
+ &perror("WARN: USE_PERL found -- you probably mean USE_PERL5.");
+ }
print "OK: checking USE_PKGLIBTOOL.\n" if ($verbose);
if ($whole =~ /\nUSE_PKGLIBTOOL/) {
&perror("FATAL: USE_PKGLIBTOOL is deprecated, ".
@@ -834,6 +838,13 @@ EOF
&perror("WARN: possible use of \"\${MKDIR} -p\" ".
"found. \${MKDIR} includes \"-p\" by default.");
}
+ #
+ # whole file: continuation line in DEPENDS
+ #
+ if ($whole =~ /\n(BUILD_|)DEPENDS[^\n]*\\\n/) {
+ &perror("WARN: Please don't use continuation lines in".
+ " (BUILD_)DEPENDS, use (BUILD_)DEPENDS+= instead.");
+ }
#
# whole file: full path name