From owner-freebsd-ports-bugs@FreeBSD.ORG Sat May 24 16:20:02 2008 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 352EA106567C for ; Sat, 24 May 2008 16:20:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 247268FC17 for ; Sat, 24 May 2008 16:20:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m4OGK1wX005764 for ; Sat, 24 May 2008 16:20:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m4OGK1DY005763; Sat, 24 May 2008 16:20:01 GMT (envelope-from gnats) Resent-Date: Sat, 24 May 2008 16:20:01 GMT Resent-Message-Id: <200805241620.m4OGK1DY005763@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Ganael Laplanche Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 05E54106567F for ; Sat, 24 May 2008 16:15:26 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 073A98FC1B for ; Sat, 24 May 2008 16:15:26 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m4OGDtbF079086 for ; Sat, 24 May 2008 16:13:55 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.2/8.14.1/Submit) id m4OGDt3d079085; Sat, 24 May 2008 16:13:55 GMT (envelope-from nobody) Message-Id: <200805241613.m4OGDt3d079085@www.freebsd.org> Date: Sat, 24 May 2008 16:13:55 GMT From: Ganael Laplanche To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/123960: Port fix: archivers/linux-par2cmdline - better handling of NOPORTDOCS X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 May 2008 16:20:02 -0000 >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 >Release-Note: >Audit-Trail: >Unformatted: