ports/123960: Port fix: archivers/linux-par2cmdline - better handling of NOPORTDOCS
Ganael Laplanche
ganael.laplanche at martymac.com
Sat May 24 16:20:02 UTC 2008
>Number: 123960
>Category: ports
>Synopsis: Port fix: archivers/linux-par2cmdline - better handling of NOPORTDOCS
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Sat May 24 16:20:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator: Ganael Laplanche
>Release: 8.0-CURRENT
>Organization:
http://contribs.martymac.com
>Environment:
FreeBSD home.martymac.com 8.0-CURRENT FreeBSD 8.0-CURRENT #17: Sun May 18 23:44:45 CEST 2008 root@:/usr/obj/usr/src/sys/MYKERNEL amd64
>Description:
As discussed on ports@ :
http://lists.freebsd.org/pipermail/freebsd-ports/2008-May/048724.html
here is a fix for archivers/par2cmdline to make it handle NOPORTDOCS correctly. Before this fix, documentation was always installed. Now the patch removes PORTDOCS from WRKDIR at post-extract target to avoid installing them if NOPORTDOCS is defined.
>How-To-Repeat:
>Fix:
Patch attached with submission follows:
diff -aurN linux-par2cmdline.orig/Makefile linux-par2cmdline/Makefile
--- linux-par2cmdline.orig/Makefile 2008-05-24 18:07:11.623634710 +0200
+++ linux-par2cmdline/Makefile 2008-05-24 18:01:30.221528018 +0200
@@ -26,4 +26,12 @@
DOCSDIR= ${PREFIX}/usr/share/doc/${PORTNAME}-${PORTVERSION}
PORTDOCS= AUTHORS COPYING ChangeLog README
+.if defined(NOPORTDOCS)
+post-extract:
+.for x in ${PORTDOCS}
+ @${RM} ${WRKDIR}/${DOCSDIR_REL}/${x}
+.endfor
+ @${RMDIR} ${WRKDIR}/${DOCSDIR_REL}/
+.endif
+
.include <bsd.port.mk>
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list