ports/170463: [MAINTAINER] games/mopesnake: Makefile changed, new Options, added files/mopesnake.in

nemysis nemysis at gmx.ch
Tue Aug 7 18:10:01 UTC 2012


>Number:         170463
>Category:       ports
>Synopsis:       [MAINTAINER] games/mopesnake: Makefile changed, new Options, added files/mopesnake.in
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Aug 07 18:10:01 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:

Changed in Makefile for all ${PORTNAME}


New Options for Makefile:

SUB_FILES=	${PORTNAME}

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MDOCS}


Removed unsafe Script

mopesnake.sh


Added file(s):
- files/mopesnake.in

Generated with FreeBSD Port Tools 0.99_6 (mode: change, diff: ports)
>How-To-Repeat:
>Fix:

--- mopesnake-0.5_1.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/games/mopesnake/Makefile ./Makefile
--- /usr/ports/games/mopesnake/Makefile	2012-07-18 14:39:16.000000000 +0200
+++ ./Makefile	2012-08-07 19:55:18.000000000 +0200
@@ -7,6 +7,7 @@
 
 PORTNAME=	mopesnake
 PORTVERSION=	0.5
+PORTREVISION=	1
 CATEGORIES=	games
 MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${PORTVERSION}
 DISTNAME=	${PORTNAME}-pc-${DISTVERSION}
@@ -18,16 +19,23 @@
 
 RUN_DEPENDS=	${PYTHON_SITELIBDIR}/pygame/__init__.py:${PORTSDIR}/devel/py-game
 
+OPTIONS_DEFINE=	DATA
+OPTIONS_DEFAULT=	DATA
+
 USE_ZIP=	yes
 USE_PYTHON=	yes
 NO_BUILD=	yes
 
-PLIST_FILES=	bin/mopesnake \
+PLIST_FILES=	bin/${PORTNAME} \
 		share/pixmaps/${PORTNAME}.png
 
 PORTDATA=	*
 PORTDOCS=	TODO.txt index.html
 
+SUB_FILES=	${PORTNAME}
+
+.include <bsd.port.options.mk>
+
 post-patch:
 # Fix path to python interpreter
 	@${REINPLACE_CMD} -e 's,/usr/bin/python,${PYTHON_CMD},' \
@@ -36,9 +44,7 @@
 
 do-install:
 # Scripts
-	@${PRINTF} "#!/bin/sh\n\ncd ${DATADIR} &&\
-		./${PORTNAME}.py\n" > ${WRKDIR}/${PORTNAME}.sh
-	${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.sh ${PREFIX}/bin/${PORTNAME}
+	${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin
 
 # Executable
 	${MKDIR} ${DATADIR}
@@ -52,7 +58,7 @@
 	${INSTALL_DATA} ${WRKSRC}/version ${DATADIR}
 
 # Documentation
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
 	${MKDIR} ${DOCSDIR}
 .  for f in ${PORTDOCS}
 	${INSTALL_DATA} ${WRKSRC}/doc/${f} ${DOCSDIR}
diff -ruN --exclude=CVS /usr/ports/games/mopesnake/files/mopesnake.in ./files/mopesnake.in
--- /usr/ports/games/mopesnake/files/mopesnake.in	1970-01-01 01:00:00.000000000 +0100
+++ ./files/mopesnake.in	2012-08-07 19:52:02.000000000 +0200
@@ -0,0 +1,7 @@
+#!/bin/sh
+#
+# $FreeBSD$
+
+echo "Master Of Pain (Eating) - Snake: Starting up..."
+cd "%%DATADIR%%"
+./mopesnake.py
--- mopesnake-0.5_1.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list