Bug 177044 - [PATCH] graphics/sam2p: OptionsNG
Summary: [PATCH] graphics/sam2p: OptionsNG
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Beech Rintoul
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-17 06:00 UTC by nemysis
Modified: 2013-03-17 21:00 UTC (History)
0 users

See Also:


Attachments
sam2p-0.49.1_1,1.patch (1.27 KB, patch)
2013-03-17 06:00 UTC, nemysis
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description nemysis 2013-03-17 06:00:00 UTC
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
Comment 1 Edwin Groothuis freebsd_committer 2013-03-17 06:00:08 UTC
Responsible Changed
From-To: freebsd-ports-bugs->beech

beech@ wants this submitter's PRs (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer 2013-03-17 20:49:35 UTC
Author: beech
Date: Sun Mar 17 20:49:20 2013
New Revision: 314491
URL: http://svnweb.freebsd.org/changeset/ports/314491

Log:
  - Convert to OptionsNG
  - Bump portrevision
  
  PR:		ports/177044
  Submitted by:	nemysis <nemysis@gmx.ch>

Modified:
  head/graphics/sam2p/Makefile   (contents, props changed)

Modified: head/graphics/sam2p/Makefile
==============================================================================
--- head/graphics/sam2p/Makefile	Sun Mar 17 20:39:10 2013	(r314490)
+++ head/graphics/sam2p/Makefile	Sun Mar 17 20:49:20 2013	(r314491)
@@ -3,6 +3,7 @@
 
 PORTNAME=	sam2p
 PORTVERSION=	0.49.1
+PORTREVISION=	1
 PORTEPOCH=	1
 CATEGORIES=	graphics
 MASTER_SITES=	GOOGLE_CODE
@@ -11,7 +12,6 @@ MAINTAINER=	ports@FreeBSD.org
 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 @@ MAKE_ARGS=	CXXX="${CXX}" LDALL="${CXX}" 
 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>
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 3 Beech Rintoul freebsd_committer 2013-03-17 20:49:44 UTC
State Changed
From-To: open->closed

Committed, Thanks!