Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Mar 2013 02:28:37 +0100
From:      nemysis <nemysis@gmx.ch>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/177039: [PATCH] games/cre: OptionsNG, added license
Message-ID:  <20130317012841.0C346CCA@hub.freebsd.org>
Resent-Message-ID: <201303170130.r2H1U0GL066385@freefall.freebsd.org>

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

>Number:         177039
>Category:       ports
>Synopsis:       [PATCH] games/cre: OptionsNG, added license
>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 01:30: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:
+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

>Fix:

--- cre-1.2.b.r2_1.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/games/cre/Makefile ./Makefile
--- /usr/ports/games/cre/Makefile	2013-01-14 17:55:38.000000000 +0100
+++ ./Makefile	2013-03-17 02:23:17.000000000 +0100
@@ -1,12 +1,9 @@
-# New ports collection makefile for:	cre
-# Date created:				2008-01-15
-# Whom:					alepulver
-#
+# Created by: alepulver
 # $FreeBSD: head/games/cre/Makefile 300896 2012-07-14 13:54:48Z beat $
-#
 
 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 @@
 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>
diff -ruN --exclude=CVS /usr/ports/games/cre/pkg-descr ./pkg-descr
--- /usr/ports/games/cre/pkg-descr	2013-01-14 17:55:38.000000000 +0100
+++ ./pkg-descr	2013-03-17 00:56:58.000000000 +0100
@@ -9,4 +9,4 @@
 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/
diff -ruN --exclude=CVS /usr/ports/games/cre/pkg-plist ./pkg-plist
--- /usr/ports/games/cre/pkg-plist	2013-01-14 17:55:38.000000000 +0100
+++ ./pkg-plist	1970-01-01 01:00:00.000000000 +0100
@@ -1,4 +0,0 @@
-bin/cre
-%%PORTDOCS%%%%DOCSDIR%%/CRE Manual.txt
-%%PORTDOCS%%%%DOCSDIR%%/Exhaust README.txt
-%%PORTDOCS%%@dirrm %%DOCSDIR%%
--- cre-1.2.b.r2_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?20130317012841.0C346CCA>