Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 Sep 2012 21:51:48 +0200
From:      nemysis <nemysis@gmx.ch>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/172192: [PATCH] games/empire: Changed all to ${PORTNAME} and pkg-descr, OptionsNG , take maintainership
Message-ID:  <20120930195152.685D7106566B@hub.freebsd.org>
Resent-Message-ID: <201209302000.q8UK085M080049@freefall.freebsd.org>

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

>Number:         172192
>Category:       ports
>Synopsis:       [PATCH] games/empire: Changed all to ${PORTNAME} and pkg-descr, OptionsNG , take maintainership
>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 Sep 30 20:00:07 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     nemysis
>Release:        FreeBSD 9.0-RELEASE amd64
>Organization:
>Environment:
System: FreeBSD FreeBSD_Ports 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan  3 07:46:30 UTC
>Description:

Makefile changed

+DISTNAME=	vms-${PORTNAME}-${DISTVERSION}

+PORTDOCS=	AUTHORS BUGS NEWS README

Added Pixmaps, OptionsNG

Changed all to ${PORTNAME}

Changed pkg-descr

- Take maintainership

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

portlint -A
WARN: Makefile: for new port, make $FreeBSD$ tag in comment section empty, to make SVN happy.
WARN: Makefile: only one MASTER_SITE configured.  Consider adding additional mirrors.
0 fatal errors and 2 warnings found.


Build log RedPorts

https://redports.org/buildarchive/20120930190115-64522/

>Fix:

--- empire-1.9.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/games/empire/Makefile ./Makefile
--- /usr/ports/games/empire/Makefile	2012-03-24 17:25:41.000000000 +0100
+++ ./Makefile	2012-09-30 21:00:03.000000000 +0200
@@ -9,19 +9,23 @@
 PORTVERSION=	1.9
 CATEGORIES=	games
 MASTER_SITES=	http://www.catb.org/~esr/vms-empire/
-DISTNAME=	vms-${PORTNAME}-${PORTVERSION}
+DISTNAME=	vms-${PORTNAME}-${DISTVERSION}
 
-MAINTAINER=	ports@FreeBSD.org
-COMMENT=	Solitaire empire game "VMS Empire"
+MAINTAINER=	nemysis@gmx.ch
+COMMENT=	Simulation of a full-scale war between two emperors
 
 LICENSE=	GPLv2
-LICENSE_FILE=	${WRKSRC}/COPYING
 
 MAKE_JOBS_SAFE=	yes
 
-MAN6=		empire.6
-PORTDOCS=	BUGS README
-PLIST_FILES=	bin/empire
+MAN6=		${PORTNAME}.6
+
+PORTDOCS=	AUTHORS BUGS NEWS README
+
+PLIST_FILES=	bin/${PORTNAME} \
+		share/pixmaps/${PORTNAME}.png
+
+.include <bsd.port.options.mk>
 
 post-patch:
 	@${REINPLACE_CMD} -e 's/^CFLAGS/#CFLAGS/ ; \
@@ -29,13 +33,16 @@
 	@${REINPLACE_CMD} -e 's/static void/void/g' ${WRKSRC}/game.c
 
 do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/vms-empire ${PREFIX}/bin/empire
-	${INSTALL_MAN} ${WRKSRC}/empire.6 ${MAN6PREFIX}/man/man6/empire.6
-.if !defined(NOPORTDOCS)
-.for file in ${PORTDOCS}
-	@${MKDIR} ${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
-.endfor
+	${INSTALL_PROGRAM} ${WRKSRC}/vms-empire ${PREFIX}/bin/${PORTNAME}
+	${INSTALL_MAN} ${WRKSRC}/${MAN6} ${MAN6PREFIX}/man/man6
+
+# Pixmaps
+	${INSTALL_DATA} ${WRKSRC}/empire-logo.png ${PREFIX}/share/pixmaps/${PORTNAME}.png
+
+# Documentation
+.if ${PORT_OPTIONS:MDOCS}
+	${MKDIR} ${DOCSDIR}
+	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
 .endif
 
 .include <bsd.port.mk>
diff -ruN --exclude=CVS /usr/ports/games/empire/pkg-descr ./pkg-descr
--- /usr/ports/games/empire/pkg-descr	2003-02-09 20:39:16.000000000 +0100
+++ ./pkg-descr	2012-09-30 20:34:08.000000000 +0200
@@ -1,3 +1,9 @@
+VMS-Empire is a simulation of a full-scale war between two emperors,
+the computer and you.  Naturally, there is only room for one, so the object
+of the game is to destroy the other.  The computer plays by the same rules that
+you do. This game is the ancestor of all the multiplayer 4X simulations out
+there, including Civilization and Master of Orion.
+
 Apparently, this game was originally written outside of Digital,
 probably at a university.  The game was ported to DEC's VAX/VMS
 from the TOPS-10/20 FORTRAN sources available around fall 1979.
--- empire-1.9.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?20120930195152.685D7106566B>