Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Mar 2013 06:50:16 +0100
From:      nemysis <nemysis@gmx.ch>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/177044: [PATCH] graphics/sam2p: OptionsNG
Message-ID:  <20130317055024.80D79789@hub.freebsd.org>
Resent-Message-ID: <201303170600.r2H600wn025593@freefall.freebsd.org>

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

>Number:         177044
>Category:       ports
>Synopsis:       [PATCH] graphics/sam2p: OptionsNG
>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:   Sun Mar 17 06:00: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:
+PORTDOCS=	README
+.include <bsd.port.options.mk>

Changed and refined:
 do-install:

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

portlint -A
looks fine.

port test: clean

>Fix:

--- sam2p-0.49.1_1,1.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/graphics/sam2p/Makefile ./Makefile
--- /usr/ports/graphics/sam2p/Makefile	2013-01-14 17:57:06.000000000 +0100
+++ ./Makefile	2013-03-17 06:46:00.000000000 +0100
@@ -3,6 +3,7 @@
 
 PORTNAME=	sam2p
 PORTVERSION=	0.49.1
+PORTREVISION=	1
 PORTEPOCH=	1
 CATEGORIES=	graphics
 MASTER_SITES=	GOOGLE_CODE
@@ -11,7 +12,6 @@
 COMMENT=	Converts raster (bitmap) image formats into PS or PDF files
 
 LICENSE=	GPLv2
-LICENSE_FILE=	${WRKSRC}/COPYING
 
 RUN_DEPENDS=	zip:${PORTSDIR}/archivers/zip \
 		cjpeg:${PORTSDIR}/graphics/jpeg \
@@ -26,19 +26,21 @@
 ALL_TARGET=	${PORTNAME}
 MAKE_JOBS_SAFE=	yes
 
-PORTDOCS=	*
+PORTDOCS=	README
 PORTEXAMPLES=	*
 PLIST_FILES=	bin/${PORTNAME}
 
+.include <bsd.port.options.mk>
+
 do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
-.if !defined(NOPORTDOCS)
+	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/
+.if ${PORT_OPTIONS:MDOCS}
 	@${MKDIR} ${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
+	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
 .endif
-.if !defined(NOPORTEXAMPLES)
+.if ${PORT_OPTIONS:MEXAMPLES}
 	@${MKDIR} ${EXAMPLESDIR}
-	@(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${EXAMPLESDIR})
+	@cd ${WRKSRC}/examples && ${COPYTREE_SHARE} \* ${EXAMPLESDIR}
 .endif
 
 .include <bsd.port.mk>
--- sam2p-0.49.1_1,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?20130317055024.80D79789>