Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Mar 2013 22:49:45 +0100
From:      nemysis <nemysis@gmx.ch>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/177004: [MAINTAINER] devel/allegro-devel: OptionsNG, Port is now safe with NOPORTDOCS=yes
Message-ID:  <20130315214951.D342EDAE@hub.freebsd.org>
Resent-Message-ID: <201303152150.r2FLo0wt032583@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         177004
>Category:       ports
>Synopsis:       [MAINTAINER] devel/allegro-devel: OptionsNG, Port is now safe with NOPORTDOCS=yes
>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:   Fri Mar 15 21:50:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     nemysis
>Release:        FreeBSD 9.1-RELEASE amd64
>Organization:
>Environment:
System: FreeBSD FreeBSD_Ports 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243825: Tue Dec  4 09:23:10
>Description:

Makefile changed:

+.include <bsd.port.options.mk>
+.if ${PORT_OPTIONS:MDOCS}
+.include "Makefile.man"
+PORTDOCS=	*
+INFO=		allegro
+.endif

+post-patch: <-- to not install DOCS, Man, info
+.if ! ${PORT_OPTIONS:MDOCS}
+	 @${REINPLACE_CMD} -e 's|add_subdirectory(docs)|#add_subdirectory(docs)|' ${WRKSRC}/CMakeLists.txt
+.endif

Changed and refined:
 pkg-plist <-- clean, not more PORTDOCS

Generated and tested manually, tested with port test, sent with FreeBSD Port Tools 0.99_6 (mode: change, diff: ports)
>How-To-Repeat:

portlint -A
looks fine.

Port is now safe with NOPORTDOCS=yes in /etc/make.conf

port test: clean

>Fix:

--- allegro-devel-4.4.2_1.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/devel/allegro-devel/Makefile ./Makefile
--- /usr/ports/devel/allegro-devel/Makefile	2013-01-14 17:54:06.000000000 +0100
+++ ./Makefile	2013-03-15 22:35:17.000000000 +0100
@@ -2,6 +2,7 @@
 
 PORTNAME=	allegro
 DISTVERSION=	4.4.2
+PORTREVISION=	1
 CATEGORIES=	devel
 MASTER_SITES=	SF/alleg/allegro/${PORTVERSION}
 PKGNAMESUFFIX=	-devel
@@ -19,9 +20,6 @@
 
 MAKE_JOBS_UNSAFE=	yes
 
-.include "Makefile.man"
-INFO=		allegro
-
 CONFLICTS=	allegro-[0-9]*
 LATEST_LINK=	${PORTNAME}${PKGNAMESUFFIX}
 PLIST_SUB=	SHLIB_VER="${SHLIB_VER}"
@@ -36,8 +34,23 @@
 		jack.0:${PORTSDIR}/audio/jack \
 		png15:${PORTSDIR}/graphics/png
 
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MDOCS}
+.include "Makefile.man"
+PORTDOCS=	*
+INFO=		allegro
+.endif
+
+post-patch:
+.if ! ${PORT_OPTIONS:MDOCS}
+	 @${REINPLACE_CMD} -e 's|add_subdirectory(docs)|#add_subdirectory(docs)|' ${WRKSRC}/CMakeLists.txt
+.endif
+
 post-install:
+.if ${PORT_OPTIONS:MDOCS}
 	@cd ${WRKSRC}/docs/man/ && \
 		${FIND} . -type f -and -name "*.3" -exec ${INSTALL_MAN} {} ${PREFIX}/man/man3/{} \;
+.endif
 
 .include <bsd.port.mk>
diff -ruN --exclude=CVS /usr/ports/devel/allegro-devel/pkg-plist ./pkg-plist
--- /usr/ports/devel/allegro-devel/pkg-plist	2013-01-14 17:54:06.000000000 +0100
+++ ./pkg-plist	2013-03-15 21:57:15.000000000 +0100
@@ -132,28 +132,6 @@
 libdata/pkgconfig/jpgalleg.pc
 libdata/pkgconfig/loadpng.pc
 libdata/pkgconfig/logg.pc
-%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
-%%PORTDOCS%%%%DOCSDIR%%/CHANGES
-%%PORTDOCS%%%%DOCSDIR%%/THANKS
-%%PORTDOCS%%%%DOCSDIR%%/abi.txt
-%%PORTDOCS%%%%DOCSDIR%%/addons.txt
-%%PORTDOCS%%%%DOCSDIR%%/ahack.txt
-%%PORTDOCS%%%%DOCSDIR%%/allegro.txt
-%%PORTDOCS%%%%DOCSDIR%%/api.txt
-%%PORTDOCS%%%%DOCSDIR%%/const.txt
-%%PORTDOCS%%%%DOCSDIR%%/dat.txt
-%%PORTDOCS%%%%DOCSDIR%%/dat2c.txt
-%%PORTDOCS%%%%DOCSDIR%%/dat2s.txt
-%%PORTDOCS%%%%DOCSDIR%%/datafile.txt
-%%PORTDOCS%%%%DOCSDIR%%/faq.txt
-%%PORTDOCS%%%%DOCSDIR%%/grabber.txt
-%%PORTDOCS%%%%DOCSDIR%%/help.txt
-%%PORTDOCS%%%%DOCSDIR%%/license.txt
-%%PORTDOCS%%%%DOCSDIR%%/makedoc.txt
-%%PORTDOCS%%%%DOCSDIR%%/mistakes.txt
-%%PORTDOCS%%%%DOCSDIR%%/packfile.txt
-%%PORTDOCS%%%%DOCSDIR%%/readme.txt
-%%PORTDOCS%%@dirrm %%DOCSDIR%%
 @dirrm lib/allegro/%%SHLIB_VER%%
 @dirrm lib/allegro
 @dirrm include/allegrogl/GLext
--- allegro-devel-4.4.2_1.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130315214951.D342EDAE>