aboutsummaryrefslogtreecommitdiff
path: root/games/mopesnake/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'games/mopesnake/Makefile')
-rw-r--r--games/mopesnake/Makefile19
1 files changed, 8 insertions, 11 deletions
diff --git a/games/mopesnake/Makefile b/games/mopesnake/Makefile
index 1c8d4b3354b1..0d098861e6a8 100644
--- a/games/mopesnake/Makefile
+++ b/games/mopesnake/Makefile
@@ -1,4 +1,4 @@
-# Created by: nemysis <nemysis@gmx.ch>
+# Created by: Rusmir Dusko <nemysis@FreeBSD.org>
# $FreeBSD$
PORTNAME= mopesnake
@@ -11,7 +11,7 @@ DISTFILES= ${PORTNAME}-pc-${DISTVERSION}${EXTRACT_SUFX} \
${PORTNAME}.png:icons
EXTRACT_ONLY= ${PORTNAME}-pc-${DISTVERSION}${EXTRACT_SUFX}
-MAINTAINER= nemysis@FreeBSD.org
+MAINTAINER= games@FreeBSD.org
COMMENT= Classic snake game in which you attempt to eat all the pain
LICENSE= GPLv2
@@ -23,8 +23,7 @@ WRKSRC= ${WRKDIR}/${PORTNAME}-pc-${DISTVERSION}
USES= zip
USE_PYTHON= yes
-PORTDOCS= TODO.txt index.html
-
+PORTDOCS= index.html
OPTIONS_DEFINE= DOCS
SUB_FILES= ${PORTNAME}
@@ -33,7 +32,7 @@ DESKTOP_ENTRIES="Master Of Pain (Eating) - Snake" "" "${PORTNAME}" \
"${PORTNAME}" "Game;ArcadeGame;" ""
post-patch:
- @${REINPLACE_CMD} -e 's,/usr/bin/python,${PYTHON_CMD},' \
+ @${REINPLACE_CMD} -e 's|/usr/bin/python|${PYTHON_CMD}|' \
${WRKSRC}/*.py ${WRKSRC}/mopelib/*.py
@${FIND} ${WRKSRC} -name "*.bak" -delete
@@ -46,19 +45,17 @@ do-install:
${WRKDIR}/${PORTNAME}
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
-.for d in *.py *.pyc *.pyo
- @(cd ${WRKSRC} && ${COPYTREE_SHARE} ${d} ${STAGEDIR}${DATADIR})
-.endfor
-
.for d in images mopelib music sounds
@(cd ${WRKSRC} && ${COPYTREE_SHARE} ${d} ${STAGEDIR}${DATADIR})
.endfor
+.for f in *.py *.pyc *.pyo
+ ${INSTALL_SCRIPT} ${WRKSRC}/${f} ${STAGEDIR}${DATADIR}
+.endfor
+ ${INSTALL_DATA} ${WRKSRC}/version ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png \
${STAGEDIR}${PREFIX}/share/pixmaps/
- ${INSTALL_DATA} ${WRKSRC}/version ${STAGEDIR}${DATADIR}
-
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/doc/|} ${STAGEDIR}${DOCSDIR}