Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 05 Jun 2013 22:05:16 +0200
From:      nemysis <nemysis@gmx.ch>
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        gnome@FreeBSD.org
Subject:   ports/179348: [PATCH] graphics/passepartout: Trim docs, add FAM option
Message-ID:  <20130605200520.022302DB@hub.freebsd.org>
Resent-Message-ID: <201306052010.r55KA056019626@freefall.freebsd.org>

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

>Number:         179348
>Category:       ports
>Synopsis:       [PATCH] graphics/passepartout: Trim docs, add FAM option
>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:   Wed Jun 05 20:10:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     nemysis
>Release:        FreeBSD 9.1-RELEASE-p3 amd64
>Organization:
>Environment:
System: FreeBSD FreeBSD_Ports 9.1-RELEASE-p3 FreeBSD 9.1-RELEASE-p3 #0: Mon Apr 29 18:27:25 UTC 2013
>Description:

- Shorten header
- Trim docs
- Add FAM Options
- Comply with OptionsNG
- Trim pkg-plist, remove docs

Port maintainer (gnome@FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.99_7 (mode: change, diff: ports)
>How-To-Repeat:
>Fix:

--- passepartout-0.7.1_4.patch begins here ---
diff -ruN /usr/ports/graphics/passepartout/Makefile ./Makefile
--- /usr/ports/graphics/passepartout/Makefile	2013-06-02 18:53:03.000000000 +0200
+++ ./Makefile	2013-06-05 21:52:31.000000000 +0200
@@ -1,10 +1,6 @@
-# New ports collection makefile for:	passepartout
-# Date created:				11st Sep 2003
-# Whom:					Alexander Nedotsukov <bland@FreeBSD.org>
-#
+# Created by: Alexander Nedotsukov <bland@FreeBSD.org>
 # $FreeBSD: head/graphics/passepartout/Makefile 314640 2013-03-19 13:04:30Z eadler $
 #    $MCom: ports/graphics/passepartout/Makefile,v 1.4 2006/09/30 15:31:05 ahze Exp $
-#
 
 PORTNAME=	passepartout
 PORTVERSION=	0.7.1
@@ -18,28 +14,36 @@
 
 BUILD_DEPENDS=	xsltproc:${PORTSDIR}/textproc/libxslt \
 		docbook2html:${PORTSDIR}/textproc/docbook-utils \
-    		${LOCALBASE}/share/sgml/docbook/4.1/dtd/catalog:${PORTSDIR}/textproc/docbook-410
-LIB_DEPENDS=	xml\\+\\+-2.6.2:${PORTSDIR}/textproc/libxml++26 \
+		${LOCALBASE}/share/sgml/docbook/4.1/dtd/catalog:${PORTSDIR}/textproc/docbook-410
+LIB_DEPENDS=	xml++-2.6:${PORTSDIR}/textproc/libxml++26 \
 		gnomecanvasmm-2.6:${PORTSDIR}/graphics/libgnomecanvasmm26
 RUN_DEPENDS=	xsltproc:${PORTSDIR}/textproc/libxslt
 
 USE_BZIP2=	yes
-USE_GMAKE=	yes
-USES=	pathfix
+USES=		pathfix
 GNU_CONFIGURE=	yes
+USE_GMAKE=	yes
+
 CFLAGS+=	-I${LOCALBASE}/include
 LDFLAGS+=	-L${LOCALBASE}/lib
 
-MAN1=		xml2ps.1 passepartout.1x
+PORTDOCS=	*
 
-.include <bsd.port.pre.mk>
+OPTIONS_DEFINE=	FAM
 
-.if exists(${LOCALBASE}/lib/libfam.a)
-WITH_FAM=	yes
-.endif
+.include <bsd.port.options.mk>
 
-.if defined(WITH_FAM)
+.if ${PORT_OPTIONS:MFAM}
 USE_FAM=	yes
 .endif
 
-.include <bsd.port.post.mk>
+.if ${PORT_OPTIONS:MDOCS}
+MAN1=		xml2ps.1 passepartout.1x
+.endif
+
+post-patch:
+.if ! ${PORT_OPTIONS:MDOCS}
+	@${REINPLACE_CMD} -e '/^SUBDIRS/s|doc||g' ${WRKSRC}/Makefile.in
+.endif
+
+.include <bsd.port.mk>
diff -ruN /usr/ports/graphics/passepartout/pkg-plist ./pkg-plist
--- /usr/ports/graphics/passepartout/pkg-plist	2013-06-02 18:53:03.000000000 +0200
+++ ./pkg-plist	2013-04-09 20:20:20.000000000 +0200
@@ -1,37 +1,7 @@
 bin/examinepdf
 bin/passepartout
 bin/xml2ps
-%%DOCSDIR%%/README
-%%DOCSDIR%%/docbook.xslt
-%%DOCSDIR%%/examples/docbook.xslt
-%%DOCSDIR%%/examples/example1.html
-%%DOCSDIR%%/examples/example1.pp
-%%DOCSDIR%%/examples/gradient.eps
-%%DOCSDIR%%/examples/hippie.jpg
-%%DOCSDIR%%/examples/hline.eps
-%%DOCSDIR%%/examples/multilingual-head.xml
-%%DOCSDIR%%/examples/multilingual.html
-%%DOCSDIR%%/examples/multilingual.pp
-%%DOCSDIR%%/examples/snowflake.eps
-%%DOCSDIR%%/examples/snowflake.xml
-%%DOCSDIR%%/examples/vline.eps
-%%DOCSDIR%%/examples/xhtml.xslt
-%%DOCSDIR%%/examples/xml2ps-example.xml
-%%DOCSDIR%%/faq.html
-%%DOCSDIR%%/faq.txt
-%%DOCSDIR%%/faq.xml
-%%DOCSDIR%%/nsfaq.html
-%%DOCSDIR%%/nsfaq.txt
-%%DOCSDIR%%/nsfaq.xml
-%%DOCSDIR%%/pptout-sv.eps
-%%DOCSDIR%%/users_guide.html
-%%DOCSDIR%%/users_guide.pp
-%%DOCSDIR%%/users_guide.txt
-%%DOCSDIR%%/users_guide.xml
-%%DOCSDIR%%/xhtml.xslt
 share/xml/passepartout/docbook.xslt
 share/xml/passepartout/xhtml.xslt
 share/xml/passepartout/xml2ps.dtd
 @dirrm share/xml/passepartout
-@dirrm %%DOCSDIR%%/examples
-@dirrm %%DOCSDIR%%
--- passepartout-0.7.1_4.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?20130605200520.022302DB>