ports/151334: [PATCH] sysutils/parallel: add NOPORTDOCS handling
Sunpoet Po-Chuan Hsieh
sunpoet at FreeBSD.org
Sat Oct 9 10:10:02 UTC 2010
>Number: 151334
>Category: ports
>Synopsis: [PATCH] sysutils/parallel: add NOPORTDOCS handling
>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: Sat Oct 09 10:10:01 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator: Sunpoet Po-Chuan Hsieh
>Release: FreeBSD 8.1-STABLE amd64
>Organization:
>Environment:
System: FreeBSD bonjour.sunpoet.net 8.1-STABLE FreeBSD 8.1-STABLE #0: Fri Jul 30 00:11:08 CST 2010
>Description:
- Add NOPORTDOCS handling (reported by QAT@)
- Respect PREFIX
- Use DOCSDIR
Port maintainer (howeyc at gmail.com) is cc'd.
Generated with FreeBSD Port Tools 0.99
>How-To-Repeat:
Build this port with non-default PREFIX and NOPORTDOCS=yes
ex: port test NOPORTDOCS=yes
>Fix:
--- parallel-20100922.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/sysutils/parallel/Makefile,v
retrieving revision 1.2
diff -u -u -r1.2 Makefile
--- Makefile 9 Oct 2010 07:35:04 -0000 1.2
+++ Makefile 9 Oct 2010 09:56:07 -0000
@@ -15,19 +15,18 @@
CONFLICTS= moreutils-[0-9]*
-HAS_CONFIGURE= yes
-CONFIGURE_ARGS= --datarootdir="${PREFIX}"\
- --docdir="${PREFIX}/share/doc/${PORTNAME}"
-
-MAN1= parallel.1 sem.1 sql.1
-MANCOMPRESSED= no
+CONFIGURE_ARGS= --docdir="${DOCSDIR}"
+GNU_CONFIGURE= yes
USE_BZIP2= yes
USE_PERL5= yes
+MAN1= parallel.1 sem.1 sql.1
+PLIST_FILES= bin/parallel bin/sem bin/sql
PORTDOCS= parallel.html sem.html sql.html
-PLIST_FILES= bin/parallel \
- bin/sem \
- bin/sql
+post-patch:
+.if defined(NOPORTDOCS)
+ @${REINPLACE_CMD} -e '/^install-data-am:/ s|install-docDATA||' ${WRKSRC}/src/Makefile.in
+.endif
.include <bsd.port.mk>
--- parallel-20100922.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list