Date: Sat, 24 May 2008 16:13:55 GMT From: Ganael Laplanche <ganael.laplanche@martymac.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/123960: Port fix: archivers/linux-par2cmdline - better handling of NOPORTDOCS Message-ID: <200805241613.m4OGDt3d079085@www.freebsd.org> Resent-Message-ID: <200805241620.m4OGK1DY005763@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200805241613.m4OGDt3d079085>