From owner-svn-ports-all@freebsd.org Wed May 18 13:33:58 2016 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 499B4B41E5D; Wed, 18 May 2016 13:33:58 +0000 (UTC) (envelope-from amdmi3@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 19D8A17B2; Wed, 18 May 2016 13:33:58 +0000 (UTC) (envelope-from amdmi3@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u4IDXvWx090196; Wed, 18 May 2016 13:33:57 GMT (envelope-from amdmi3@FreeBSD.org) Received: (from amdmi3@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u4IDXv5J090195; Wed, 18 May 2016 13:33:57 GMT (envelope-from amdmi3@FreeBSD.org) Message-Id: <201605181333.u4IDXv5J090195@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: amdmi3 set sender to amdmi3@FreeBSD.org using -f From: Dmitry Marakasov Date: Wed, 18 May 2016 13:33:57 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r415448 - head/games/mopesnake X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 May 2016 13:33:58 -0000 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