Date: Fri, 14 Sep 2012 06:21:15 +0000 (UTC) From: Jason Helfman <jgh@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r304257 - in head/games/mopesnake: . files Message-ID: <201209140621.q8E6LF43058702@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jgh Date: Fri Sep 14 06:21:14 2012 New Revision: 304257 URL: http://svn.freebsd.org/changeset/ports/304257 Log: - add startup script - adopt optionsNG for DOCS - while here adjust run depends listing PR: 170738 Submitted by: maintainer, nemysis@gmx.ch Added: head/games/mopesnake/files/ head/games/mopesnake/files/mopesnake.in (contents, props changed) Modified: head/games/mopesnake/Makefile Modified: head/games/mopesnake/Makefile ============================================================================== --- head/games/mopesnake/Makefile Fri Sep 14 05:47:44 2012 (r304256) +++ head/games/mopesnake/Makefile Fri Sep 14 06:21:14 2012 (r304257) @@ -1,44 +1,42 @@ -# New Ports collection makefile for: mopesnake -# Date created: 2012-05-16 -# Whom: nemysis@gmx.ch -# # $FreeBSD$ -# PORTNAME= mopesnake PORTVERSION= 0.5 +PORTREVISION= 1 CATEGORIES= games MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTVERSION} DISTNAME= ${PORTNAME}-pc-${DISTVERSION} MAINTAINER= nemysis@gmx.ch -COMMENT= A classic snake game in which you attempt to eat all the pain +COMMENT= Classic snake game in which you attempt to eat all the pain LICENSE= GPLv2 -RUN_DEPENDS= ${PYTHON_SITELIBDIR}/pygame/__init__.py:${PORTSDIR}/devel/py-game +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}game>=0:${PORTSDIR}/devel/py-game 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} + post-patch: # Fix path to python interpreter @${REINPLACE_CMD} -e 's,/usr/bin/python,${PYTHON_CMD},' \ ${WRKSRC}/*.py ${WRKSRC}/mopelib/*.py @(cd ${WRKSRC} && ${RM} *.py.bak mopelib/*py.bak) +.include <bsd.port.options.mk> + 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 +50,7 @@ do-install: ${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} Added: head/games/mopesnake/files/mopesnake.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/mopesnake/files/mopesnake.in Fri Sep 14 06:21:14 2012 (r304257) @@ -0,0 +1,7 @@ +#!/bin/sh +# +# $FreeBSD$ + +echo "Master Of Pain (Eating) - Snake: Starting up..." +cd "%%DATADIR%%" +./mopesnake.py \ No newline at end of file
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201209140621.q8E6LF43058702>