Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Aug 2012 12:01:20 +0000 (UTC)
From:      Michael Scheidell <scheidell@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r302338 - in head/games/blockrage: . files
Message-ID:  <201208091201.q79C1K8I006606@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: scheidell
Date: Thu Aug  9 12:01:19 2012
New Revision: 302338
URL: http://svn.freebsd.org/changeset/ports/302338

Log:
  - Replace unsafe blockrage.sh script
  - Update to OptionsNG
  - Bump PORTREVISION
  
  PR:		ports/170455
  Submitted by:	nemysis <nemysis@gmx.ch> (maintainer)

Added:
  head/games/blockrage/files/blockrage.in   (contents, props changed)
Modified:
  head/games/blockrage/Makefile   (contents, props changed)

Modified: head/games/blockrage/Makefile
==============================================================================
--- head/games/blockrage/Makefile	Thu Aug  9 11:38:19 2012	(r302337)
+++ head/games/blockrage/Makefile	Thu Aug  9 12:01:19 2012	(r302338)
@@ -7,6 +7,7 @@
 
 PORTNAME=	blockrage
 PORTVERSION=	0.2.3
+PORTREVISION=	1
 CATEGORIES=	games
 MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${PORTVERSION}
 
@@ -15,36 +16,45 @@ COMMENT=	Block Rage is falling blocks ga
 
 LICENSE=	GPLv2
 
+OPTIONS_DEFINE=	DATA
+OPTIONS_DEFAULT=	DATA
+
 GNU_CONFIGURE=	yes
 ALL_TARGET=	${PORTNAME}
 USE_SDL=	sdl image mixer
 MAKE_JOBS_SAFE=	yes
 
-PLIST_FILES=	bin/blockrage
+PLIST_FILES=	bin/${PORTNAME}
 
-MAN6=		blockrage.6
+MAN6=		${PORTNAME}.6
 
 PORTDATA=	*
 PORTDOCS=	ChangeLog KNOWN_BUGS README TODO
 
+SUB_FILES=	${PORTNAME}
+
+.include <bsd.port.options.mk>
+
 do-install:
 # Scripts
-	@${PRINTF} "#!/bin/sh\n\ncd ${DATADIR} &&\
-		./blockrage\n" > ${WRKDIR}/blockrage.sh
-	@${INSTALL_SCRIPT} ${WRKDIR}/blockrage.sh ${PREFIX}/bin/blockrage
+	${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin
+
 # Executable
 	${MKDIR} ${DATADIR}
-	${INSTALL_PROGRAM} ${WRKSRC}/blockrage ${DATADIR}
+	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${DATADIR}
 
 post-install:
 	${INSTALL_MAN} ${WRKSRC}/${MAN6} ${MAN6PREFIX}/man/man6
+
 # Data
-.for d in data blockrage-fhs.rc blockrage.cfg blockrage.rc
+.if ${PORT_OPTIONS:MDATA}
+.  for d in data blockrage-fhs.rc blockrage.cfg blockrage.rc
 	@(cd ${WRKSRC} && ${COPYTREE_SHARE} ${d} ${DATADIR})
-.endfor
+.  endfor
+.endif
 
 # Documentations
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
 	${MKDIR} ${DOCSDIR}
 .  for f in ${PORTDOCS}
 	${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}

Added: head/games/blockrage/files/blockrage.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/blockrage/files/blockrage.in	Thu Aug  9 12:01:19 2012	(r302338)
@@ -0,0 +1,7 @@
+#!/bin/sh
+#
+# $FreeBSD$
+
+echo "Block Rage: Starting up..."
+cd "%%DATADIR%%"
+./blockrage
\ No newline at end of file



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201208091201.q79C1K8I006606>