Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Nov 2012 21:01:15 +0100
From:      nemysis <nemysis@gmx.ch>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/173873: [PATCH] games/barrage: Added license, OptionsNG, Portdocs, take maintainership
Message-ID:  <20121123200120.6788DFA8@hub.freebsd.org>
Resent-Message-ID: <201211232010.qANKA0r4093676@freefall.freebsd.org>

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

>Number:         173873
>Category:       ports
>Synopsis:       [PATCH] games/barrage: Added license, OptionsNG, Portdocs, 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:   Fri Nov 23 20:10:00 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:

- Take maintainership

Makefile changed:
+LICENSE=	GPLv2
-CONFIGURE_ARGS=	--with-profile-path=/var/games
+PORTDOCS=	AUTHORS BUGS ChangeLog README
+INSTALLS_ICONS=	yes
+.include <bsd.port.options.mk>
+post-install:
+.if ${PORT_OPTIONS:MDOCS}

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

Can't give build log, because RedPorts not works at the time.

>Fix:

--- barrage-1.0.4_2.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/games/barrage/Makefile ./Makefile
--- /usr/ports/games/barrage/Makefile	2012-11-16 09:01:41.000000000 +0100
+++ ./Makefile	2012-11-16 03:51:34.000000000 +0100
@@ -2,24 +2,40 @@
 # Date created:       	23 April 2003
 # Whom:  	Kirill Ponomarew <ponomarew@oberon.net>
 #
-# $FreeBSD: head/games/barrage/Makefile 300896 2012-07-14 13:54:48Z beat $
+# $FreeBSD: ports/games/barrage/Makefile,v 1.25 2012/02/18 10:17:38 mva Exp $
 #
 
 PORTNAME=	barrage
 PORTVERSION=	1.0.4
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	games
 MASTER_SITES=	SF/lgames/${PORTNAME}
 
-MAINTAINER=	ports@FreeBSD.org
+MAINTAINER=	nemysis@gmx.ch
 COMMENT=	Destroy as many targets as possible
 
+LICENSE=	GPLv2
+
 USE_SDL=	sdl mixer
-USE_GMAKE=	yes
 GNU_CONFIGURE=	yes
-CONFIGURE_ARGS=	--with-profile-path=/var/games
+USE_GMAKE=	yes
+
+PORTDOCS=	AUTHORS BUGS ChangeLog README
+
+INSTALLS_ICONS=	yes
+
+.include <bsd.port.options.mk>
 
 post-patch:
 	@${REINPLACE_CMD} -e 's|/games/|/|g' ${WRKSRC}/configure
+	@${REINPLACE_CMD} -e 's|barrage.png|barrage|' ${WRKSRC}/barrage.desktop
+
+post-install:
+	${LN} -sf ${PREFIX}/share/icons/hicolor/48x48/apps/${PORTNAME}.png ${PREFIX}/share/pixmaps
+
+.if ${PORT_OPTIONS:MDOCS}
+	${MKDIR} ${DOCSDIR}
+	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
+.endif
 
 .include <bsd.port.mk>
diff -ruN --exclude=CVS /usr/ports/games/barrage/pkg-plist ./pkg-plist
--- /usr/ports/games/barrage/pkg-plist	2012-11-16 09:01:41.000000000 +0100
+++ ./pkg-plist	2012-11-16 03:40:53.000000000 +0100
@@ -1,5 +1,6 @@
 bin/barrage
 share/applications/barrage.desktop
+share/pixmaps/barrage.png
 %%DATADIR%%/gfx/ammo.bmp
 %%DATADIR%%/gfx/crater.bmp
 %%DATADIR%%/gfx/cursors.bmp
--- barrage-1.0.4_2.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?20121123200120.6788DFA8>