Date: Wed, 18 May 2016 13:33:57 +0000 (UTC) From: Dmitry Marakasov <amdmi3@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r415448 - head/games/mopesnake Message-ID: <201605181333.u4IDXv5J090195@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: amdmi3 Date: Wed May 18 13:33:57 2016 New Revision: 415448 URL: https://svnweb.freebsd.org/changeset/ports/415448 Log: - Simplify MASTER_SITES - Switch to options helpers Modified: head/games/mopesnake/Makefile Modified: head/games/mopesnake/Makefile ============================================================================== --- head/games/mopesnake/Makefile Wed May 18 13:33:36 2016 (r415447) +++ head/games/mopesnake/Makefile Wed May 18 13:33:57 2016 (r415448) @@ -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>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201605181333.u4IDXv5J090195>