aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2016-05-18 21:33:57 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2016-05-18 21:33:57 +0800
commit94776214869d5ad65097da218da08d89b367d071 (patch)
treea7f06350f6fc1c264bbe0d3a085fb786e7752f21 /games
parentce162914d64401092e2abc6af42ae31cb0d05f4b (diff)
downloadfreebsd-ports-gnome-94776214869d5ad65097da218da08d89b367d071.tar.gz
freebsd-ports-gnome-94776214869d5ad65097da218da08d89b367d071.tar.zst
freebsd-ports-gnome-94776214869d5ad65097da218da08d89b367d071.zip
- Simplify MASTER_SITES
- Switch to options helpers
Diffstat (limited to 'games')
-rw-r--r--games/mopesnake/Makefile13
1 files changed, 8 insertions, 5 deletions
diff --git a/games/mopesnake/Makefile b/games/mopesnake/Makefile
index 8b00618f5e49..e744cdf9ab63 100644
--- a/games/mopesnake/Makefile
+++ b/games/mopesnake/Makefile
@@ -5,7 +5,7 @@ PORTNAME= mopesnake
PORTVERSION= 0.5
PORTREVISION= 5
CATEGORIES= games python
-MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTVERSION} \
+MASTER_SITES= SF \
SF/nemysisfreebsdp/games/:icons
DISTFILES= ${PORTNAME}-pc-${DISTVERSION}${EXTRACT_SUFX} \
${PORTNAME}.png:icons
@@ -26,13 +26,13 @@ NO_ARCH= yes
PORTDOCS= index.html
-OPTIONS_DEFINE= DOCS
-
SUB_FILES= ${PORTNAME}
DESKTOP_ENTRIES="Master Of Pain (Eating) - Snake" "" "${PORTNAME}" \
"${PORTNAME}" "Game;ArcadeGame;" ""
+OPTIONS_DEFINE= DOCS
+
post-patch:
@${REINPLACE_CMD} -e 's|/usr/bin/python|${PYTHON_CMD}|' \
${WRKSRC}/*.py ${WRKSRC}/mopelib/*.py
@@ -42,9 +42,11 @@ do-build:
@${PYTHON_CMD} -m compileall ${WRKSRC}
@${PYTHON_CMD} -O -m compileall ${WRKSRC}
-do-install:
+pre-install:
@${REINPLACE_CMD} -e 's|%%PYTHON_CMD%%|${PYTHON_CMD}|' \
${WRKDIR}/${PORTNAME}
+
+do-install:
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
.for d in images mopelib music sounds
@@ -58,7 +60,8 @@ do-install:
${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png \
${STAGEDIR}${PREFIX}/share/pixmaps/
- ${MKDIR} ${STAGEDIR}${DOCSDIR}
+do-install-DOCS-on:
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/doc/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>