diff options
author | tsarna <tsarna@pkgsrc.org> | 1998-08-20 15:16:34 +0000 |
---|---|---|
committer | tsarna <tsarna@pkgsrc.org> | 1998-08-20 15:16:34 +0000 |
commit | 6bd0d65c650273bf304f345910aeaa6dbb0d1904 (patch) | |
tree | 02014b09f0272e3c01f055156a42a91ab10cda59 /pkgtools/pkglint/files/pkglint.pl | |
parent | 6cec9af390b5f47cca2d200755c03518c99f033b (diff) | |
download | pkgsrc-6bd0d65c650273bf304f345910aeaa6dbb0d1904.tar.gz |
The Grand Homepagification:
- New, optional Makefile variable HOMEPAGE, specifies a URL for
the home page of the software if it has one.
- The value of HOMEPAGE is used to add a link from the
README.html files.
- pkglint updated to know about it. The "correct" location for
HOMEPAGE in the Makefile is after MAINTAINER, in that same
section.
Diffstat (limited to 'pkgtools/pkglint/files/pkglint.pl')
-rw-r--r-- | pkgtools/pkglint/files/pkglint.pl | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/pkgtools/pkglint/files/pkglint.pl b/pkgtools/pkglint/files/pkglint.pl index 3da98c4f9c7..e38900559e0 100644 --- a/pkgtools/pkglint/files/pkglint.pl +++ b/pkgtools/pkglint/files/pkglint.pl @@ -11,7 +11,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.1 1998/08/07 22:13:44 tsarna Exp $ +# $NetBSD: pkglint.pl,v 1.2 1998/08/20 15:16:50 tsarna Exp $ # # This version contains some changes necessary for NetBSD packages # done by Hubert Feyrer <hubertf@netbsd.org> and @@ -878,6 +878,21 @@ EOF if ($verbose); $tmp = $sections[$idx++]; + # check the order of items. + @tocheck=split(/\s+/, <<EOF); +MAINTAINER +EOF + if ($osname eq "NetBSD") { + push(@tocheck,"HOMEPAGE"); + } + &checkorder('MAINTAINER', $tmp, @tocheck); + + # warnings for missing HOMEPAGE + $tmp = "\n" . $tmp; + if ($tmp !~ /\nHOMEPAGE=/) { + &perror("WARN: please add HOMEPAGE if the package has one."); + } + &checkearlier($tmp, @varnames); $tmp = "\n" . $tmp; if ($tmp =~ /\nMAINTAINER=[^\n]+/) { @@ -888,9 +903,9 @@ EOF } $tmp =~ s/\n\n+/\n/g; - &checkextra($tmp, 'MAINTAINER'); - - push(@varnames, 'MAINTAINER'); + push(@varnames, split(/\s+/, <<EOF)); +MAINTAINER HOMEPAGE +EOF # # section 5: *_DEPENDS (may not be there) |