Index: head/games/mopesnake/Makefile =================================================================== --- head/games/mopesnake/Makefile (revision 304256) +++ head/games/mopesnake/Makefile (revision 304257) @@ -1,62 +1,60 @@ -# 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 + 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} ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}.py ${DATADIR} # Data @(cd ${WRKSRC} && ${COPYTREE_SHARE} "images mopelib music sounds" ${DATADIR}) # Pixmaps and version ${INSTALL_DATA} ${WRKSRC}/doc/screenshot1.png ${PREFIX}/share/pixmaps/${PORTNAME}.png ${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} . endfor .endif .include Index: head/games/mopesnake/files/mopesnake.in =================================================================== --- head/games/mopesnake/files/mopesnake.in (nonexistent) +++ head/games/mopesnake/files/mopesnake.in (revision 304257) @@ -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 Property changes on: head/games/mopesnake/files/mopesnake.in ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +FreeBSD=%H \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property