ports/53371: [PATCH] devel/portlint: suggest using {DOCS,EXAMPLES}DIR macros in pkg-plist
Sergei Kolobov
sergei at kolobov.com
Mon Jun 16 12:30:15 UTC 2003
>Number: 53371
>Category: ports
>Synopsis: [PATCH] devel/portlint: suggest using {DOCS,EXAMPLES}DIR macros in pkg-plist
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Mon Jun 16 05:30:12 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator: Sergei Kolobov
>Release: FreeBSD 4.7-STABLE i386
>Organization:
>Environment:
System: FreeBSD outpost.globcon.net 4.7-STABLE FreeBSD 4.7-STABLE #0: Thu Jan 2 03:13:48 MSK
>Description:
- When checking pkg-plist, suggest using DOCSDIR and EXAMPLESDIR instead of
explicit share/doc/${PORTNAME} and share/examples/${PORTNAME}
- Bump PORTREVISION
Port maintainer - mharo at FreeBSD.org - has been copied.
>How-To-Repeat:
>Fix:
--- portlint-2.3.3_6.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/devel/portlint/Makefile,v
retrieving revision 1.51
diff -u -r1.51 Makefile
--- Makefile 7 Mar 2003 17:00:43 -0000 1.51
+++ Makefile 16 Jun 2003 12:20:21 -0000
@@ -9,7 +9,7 @@
PORTNAME= portlint
PORTVERSION= 2.3.3
-PORTREVISION= 5
+PORTREVISION= 6
CATEGORIES= devel
MASTER_SITES= # none
DISTFILES= # none
Index: src/portlint.pl
===================================================================
RCS file: /home/ncvs/ports/devel/portlint/src/portlint.pl,v
retrieving revision 1.35
diff -u -r1.35 portlint.pl
--- src/portlint.pl 7 Mar 2003 17:00:43 -0000 1.35
+++ src/portlint.pl 16 Jun 2003 12:20:21 -0000
@@ -489,6 +489,14 @@
$infooverwrite++;
}
+ if ($_ =~ /^(%%PORTDOCS%%)?share\/doc\//) {
+ &perror("WARN: $file $.: consider using DOCSDIR macro");
+ }
+
+ if ($_ =~ /^share\/examples\//) {
+ &perror("WARN: $file $.: consider using EXAMPLESDIR macro");
+ }
+
if ($_ =~ m#man/([^/]+/)?man([$manchapters])/([^\.]+\.[$manchapters])(\.gz)?$#) {
if ($4 eq '') {
$plistman{$2} .= ' ' . $3;
--- portlint-2.3.3_6.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list