Bug 177308 - [PATCH] graphics/imc: Convert to OptionsNG
Summary: [PATCH] graphics/imc: Convert to 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-23 11:40 UTC by nemysis
Modified: 2013-03-24 20:00 UTC (History)
1 user (show)

See Also:


Attachments
imc-4.3_7.patch (4.65 KB, patch)
2013-03-23 11:40 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-23 11:40:00 UTC
- Convert to OptionsNG
- Makefile tweaks
- Add license
- Bump portrevision

Removed file(s):
- pkg-plist

Generated and tested manually, tested with port test, sent with FreeBSD Port Tools 0.99_6 (mode: change, diff: ports)
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-03-23 11:40:08 UTC
Responsible Changed
From-To: freebsd-ports-bugs->beech

beech@ wants this submitter's PRs (via the GNATS Auto Assign Tool)
Comment 2 Beech Rintoul freebsd_committer freebsd_triage 2013-03-24 18:58:05 UTC
State Changed
From-To: open->feedback

In progress
Comment 3 dfilter service freebsd_committer freebsd_triage 2013-03-24 19:58:16 UTC
Author: beech
Date: Sun Mar 24 19:58:04 2013
New Revision: 315155
URL: http://svnweb.freebsd.org/changeset/ports/315155

Log:
  - Convert to OptionsNG
  - Makefile tweaks
  - Add license
  - Bump portrevision
  
  PR:		ports/177308
  Submitted by:	nemysis <nemysis@gmx.ch>

Deleted:
  head/graphics/imc/pkg-plist
Modified:
  head/graphics/imc/Makefile   (contents, props changed)

Modified: head/graphics/imc/Makefile
==============================================================================
--- head/graphics/imc/Makefile	Sun Mar 24 19:49:13 2013	(r315154)
+++ head/graphics/imc/Makefile	Sun Mar 24 19:58:04 2013	(r315155)
@@ -1,20 +1,17 @@
-# ex:ts=8
-# New ports collection makefile for:	imc
-# Date created:				Apr 30, 2002
-# Whom:					Ying-Chieh Liao <ijliao@FreeBSD.org>
-#
+# Created by: Ying-Chieh Liao <ijliao@FreeBSD.org>
 # $FreeBSD$
-#
 
 PORTNAME=	imc
 PORTVERSION=	4.3
-PORTREVISION=	6
+PORTREVISION=	7
 CATEGORIES=	graphics
-MASTER_SITES=	http://users.skynet.be/Peter.Verthez/projects/imc/
+MASTER_SITES=	http://www.peterverthez.net/projects/imc/
 
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Image Compiler
 
+LICENSE=	GPLv2
+
 BUILD_DEPENDS=	p5-GD>=0:${PORTSDIR}/graphics/p5-GD \
 		p5-CGI.pm>=0:${PORTSDIR}/www/p5-CGI.pm
 RUN_DEPENDS:=	${BUILD_DEPENDS}
@@ -23,16 +20,32 @@ GNU_CONFIGURE=	yes
 USE_GMAKE=	yes
 USE_PERL5=	yes
 
-MAN1=		imc.1
+PLIST_FILES=	bin/${PORTNAME}
+MAN1=		${PORTNAME}.1
+
+PORTDOCS=	*
+
+DOCSRCDIR1=	${WRKSRC}
+DOC_FILES1=	AUTHORS ChangeLog NEWS README THANKS Todo
+
+DOCSRCDIR2=	${WRKSRC}/doc
+DOCSDIR2=	${DOCSDIR}/doc
+DOC_FILES2=	*.html *.ref *.txt
+
+PORTEXAMPLES=	*
+
+.include <bsd.port.options.mk>
 
 post-install:
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
 	@${MKDIR} ${DOCSDIR}
-	${CP} -R ${WRKSRC}/doc/* ${DOCSDIR}
+	${INSTALL_DATA} ${DOC_FILES1:S|^|${DOCSRCDIR1}/|} ${DOCSDIR}
+	${MKDIR} ${DOCSDIR2}
+	${INSTALL_DATA} ${DOC_FILES2:S|^|${DOCSRCDIR2}/|} ${DOCSDIR2}
 .endif
-.if !defined(NOPORTEXAMPLES)
+.if ${PORT_OPTIONS:MEXAMPLES}
 	@${MKDIR} ${EXAMPLESDIR}
-	${CP} -R ${WRKSRC}/examples/* ${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 4 Beech Rintoul freebsd_committer freebsd_triage 2013-03-24 19:58:55 UTC
State Changed
From-To: feedback->closed

Committed, Thanks!