Bug 177039 - [PATCH] games/cre: OptionsNG, added license
Summary: [PATCH] games/cre: OptionsNG, added license
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 01:30 UTC by nemysis
Modified: 2013-03-17 17:10 UTC (History)
0 users

See Also:


Attachments
cre-1.2.b.r2_1.patch (2.34 KB, patch)
2013-03-17 01:30 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 01:30:00 UTC
Makefile changed:
+LICENSE=	GPLv2
+PLIST_FILES=	bin/${PORTNAME}
+PORTDOCS=	*.txt
+.include <bsd.port.options.mk>

Changed and refined:
 post-extract:
 do-install:
 pkg-descr

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)

How-To-Repeat: 
portlint -A
looks fine.

port test: clean
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-03-17 01:30:07 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 freebsd_triage 2013-03-17 07:35:53 UTC
Author: beech
Date: Sun Mar 17 07:35:44 2013
New Revision: 314400
URL: http://svnweb.freebsd.org/changeset/ports/314400

Log:
  - Convert to OptionsNG
  - Add license
  
  PR:		ports/177039
  Submitted by:	nemysis <nemysis@gmx.ch> (maintainer)

Modified:
  head/games/cre/Makefile   (contents, props changed)
  head/games/cre/pkg-descr   (contents, props changed)
  head/games/cre/pkg-plist   (contents, props changed)

Modified: head/games/cre/Makefile
==============================================================================
--- head/games/cre/Makefile	Sun Mar 17 06:56:53 2013	(r314399)
+++ head/games/cre/Makefile	Sun Mar 17 07:35:44 2013	(r314400)
@@ -1,12 +1,9 @@
-# New ports collection makefile for:	cre
-# Date created:				2008-01-15
-# Whom:					alepulver
-#
+# Created by: alepulver
 # $FreeBSD$
-#
 
 PORTNAME=	cre
 DISTVERSION=	1.2beta_r2
+PORTREVISION=	1
 CATEGORIES=	games
 MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}-dev/1.2%20BETA%2C%20Release%202
 DISTNAME=	${PORTNAME}_${DISTVERSION}_src
@@ -14,24 +11,35 @@ DISTNAME=	${PORTNAME}_${DISTVERSION}_src
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Corewars Redcode Evolver
 
+LICENSE=	GPLv2
+
 USE_DOS2UNIX=	../*.txt
 WRKSRC=		${WRKDIR}/src
 
+PLIST_FILES=	bin/${PORTNAME}
+
+PORTDOCS=	*.txt
+
+.include <bsd.port.options.mk>
+
 post-extract:
 	@${CP} ${FILESDIR}/${MAKEFILE} ${WRKSRC}
+	@cd ${WRKDIR} && ${MV} "CRE Manual.txt" CRE_Manual.txt && \
+		${MV} "Exhaust README.txt" Exhaust_README.txt
 
 post-patch:
 	@cd ${WRKSRC} && ${REINPLACE_CMD} -e '/memwatch\.h/d' \
 		asm.c pspace.c sim.c
-	@cd ${WRKSRC} && ${REINPLACE_CMD} -e \
-		's|random[[:blank:]]*(|myrandom(|' \
+	@cd ${WRKSRC} && ${REINPLACE_CMD} \
+		-e 's|random[[:blank:]]*(|myrandom(|' \
 		battler.c generator.c globals.h Main.c
 
 do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
-.if !defined(NOPORTDOCS)
-	${MKDIR} ${DOCSDIR}
-	${INSTALL_DATA} ${WRKDIR}/*.txt ${DOCSDIR}
+	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/
+
+.if ${PORT_OPTIONS:MDOCS}
+	@${MKDIR} ${DOCSDIR}
+	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKDIR}/|} ${DOCSDIR}
 .endif
 
 .include <bsd.port.mk>

Modified: head/games/cre/pkg-descr
==============================================================================
--- head/games/cre/pkg-descr	Sun Mar 17 06:56:53 2013	(r314399)
+++ head/games/cre/pkg-descr	Sun Mar 17 07:35:44 2013	(r314400)
@@ -9,4 +9,4 @@ happens:
 3. The fittest warriors reproduce and replace less fit warriors.
 4. The previous two steps are repeated indefinitely.
 
-WWW:	http://cre.sourceforge.net/
+WWW: http://cre.sourceforge.net/

Modified: head/games/cre/pkg-plist
==============================================================================
--- head/games/cre/pkg-plist	Sun Mar 17 06:56:53 2013	(r314399)
+++ head/games/cre/pkg-plist	Sun Mar 17 07:35:44 2013	(r314400)
@@ -1,4 +0,0 @@
-bin/cre
-%%PORTDOCS%%%%DOCSDIR%%/CRE Manual.txt
-%%PORTDOCS%%%%DOCSDIR%%/Exhaust README.txt
-%%PORTDOCS%%@dirrm %%DOCSDIR%%
_______________________________________________
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 freebsd_triage 2013-03-17 07:36:13 UTC
State Changed
From-To: open->closed

Committed, Thanks!
Comment 4 dfilter service freebsd_committer freebsd_triage 2013-03-17 17:07:04 UTC
Author: beech
Date: Sun Mar 17 17:06:50 2013
New Revision: 314466
URL: http://svnweb.freebsd.org/changeset/ports/314466

Log:
  Remove pkg-plist
  
  PR:		ports/177039
  Submitted by:	nemysis <nemysis@gmx.ch> (maintainer)

Deleted:
  head/games/cre/pkg-plist
_______________________________________________
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"