ports/177048: [PATCH] ports-mgmt/portlint: promo PORT_OPTIONS:MDOC rather than NOPORTDOCS
Po-Chien Lin
pclin at FreeBSD.org
Sun Mar 17 09:40:01 UTC 2013
>Number: 177048
>Category: ports
>Synopsis: [PATCH] ports-mgmt/portlint: promo PORT_OPTIONS:MDOC rather than NOPORTDOCS
>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: Sun Mar 17 09:40:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: Po-Chien Lin
>Release: FreeBSD 9.1-RELEASE amd64
>Organization:
>Environment:
System: FreeBSD dev.linpc.org 9.1-RELEASE FreeBSD 9.1-RELEASE #0: Sat Jan 5 22:32:49 CST
>Description:
- Use PORT_OPTIONS:MDOC variable insted of NOPORTDOCS in messages to warn user
that not wrap docs installation.
>How-To-Repeat:
>Fix:
--- portlint-2.14.2.patch begins here ---
diff -ruN /usr/ports/ports-mgmt/portlint/src/portlint.pl ./src/portlint.pl
--- /usr/ports/ports-mgmt/portlint/src/portlint.pl 2013-03-10 18:05:21.839950140 +0800
+++ ./src/portlint.pl 2013-03-17 17:26:00.186017587 +0800
@@ -1725,7 +1725,7 @@
if ($sharedocused && $whole !~ /defined\s*\(?NOPORTDOCS\)?/
&& $whole !~ /def\s*\(?NOPORTDOCS\)?/) {
if ($docsused == 0 && $whole !~ m#(\$[\{\(]PREFIX[\}\)]|$localbase)/share/doc#) {
- &perror("WARN", $file, -1, "use \".if !defined(NOPORTDOCS)\" to wrap ".
+ &perror("WARN", $file, -1, "use \".if \${PORT_OPTIONS:MDOCS}\" to wrap ".
"installation of files into $localbase/share/doc.");
}
} else {
--- portlint-2.14.2.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list