From owner-svn-ports-all@FreeBSD.ORG Tue Dec 10 06:33:47 2013 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 489819A6; Tue, 10 Dec 2013 06:33:47 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 285E017B2; Tue, 10 Dec 2013 06:33:47 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id rBA6XlSA099292; Tue, 10 Dec 2013 06:33:47 GMT (envelope-from nemysis@svn.freebsd.org) Received: (from nemysis@localhost) by svn.freebsd.org (8.14.7/8.14.7/Submit) id rBA6XkFJ099287; Tue, 10 Dec 2013 06:33:46 GMT (envelope-from nemysis@svn.freebsd.org) Message-Id: <201312100633.rBA6XkFJ099287@svn.freebsd.org> From: Rusmir Dusko Date: Tue, 10 Dec 2013 06:33:46 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r336048 - in head/games/mopesnake: . files 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.17 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: Tue, 10 Dec 2013 06:33:47 -0000 Author: nemysis Date: Tue Dec 10 06:33:45 2013 New Revision: 336048 URL: http://svnweb.freebsd.org/changeset/ports/336048 Log: - Change master sites, icon(s) - Change maintainer email to @FreeBSD.org - Add DOCS Option - Change desktop entry - Support STAGEDIR - Remove NO_BUILD=yes, change pkg-plist - Change files/mopesnake.in - Change pkg-message Approved by: pawel / wg (mentors, implicit) Modified: head/games/mopesnake/Makefile head/games/mopesnake/distinfo (contents, props changed) head/games/mopesnake/files/mopesnake.in head/games/mopesnake/pkg-descr (contents, props changed) head/games/mopesnake/pkg-plist Modified: head/games/mopesnake/Makefile ============================================================================== --- head/games/mopesnake/Makefile Tue Dec 10 04:57:35 2013 (r336047) +++ head/games/mopesnake/Makefile Tue Dec 10 06:33:45 2013 (r336048) @@ -5,47 +5,61 @@ PORTNAME= mopesnake PORTVERSION= 0.5 PORTREVISION= 3 CATEGORIES= games python -MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTVERSION} -DISTNAME= ${PORTNAME}-pc-${DISTVERSION} +MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTVERSION} \ + SF/nemysisfreebsdp/games/:icons +DISTFILES= ${PORTNAME}-pc-${DISTVERSION}${EXTRACT_SUFX} \ + ${PORTNAME}.png:icons +EXTRACT_ONLY= ${PORTNAME}-pc-${DISTVERSION}${EXTRACT_SUFX} -MAINTAINER= nemysis@gmx.ch +MAINTAINER= nemysis@FreeBSD.org COMMENT= Classic snake game in which you attempt to eat all the pain LICENSE= GPLv2 RUN_DEPENDS= ${PYGAME} +WRKSRC= ${WRKDIR}/${PORTNAME}-pc-${DISTVERSION} + USE_ZIP= yes USE_PYTHON= yes -NO_BUILD= yes PORTDOCS= TODO.txt index.html -SUB_FILES= ${PORTNAME} +OPTIONS_DEFINE= DOCS -DESKTOP_ENTRIES="Master Of Pain (Eating) - Snake" "${COMMENT}" \ - "${PREFIX}/share/pixmaps/${PORTNAME}" \ - "${PORTNAME}" "Game;ArcadeGame;" false +SUB_FILES= ${PORTNAME} -NO_STAGE= yes -.include +DESKTOP_ENTRIES="Master Of Pain (Eating) - Snake" "" "${PORTNAME}" \ + "${PORTNAME}" "Game;ArcadeGame;" "" post-patch: @${REINPLACE_CMD} -e 's,/usr/bin/python,${PYTHON_CMD},' \ ${WRKSRC}/*.py ${WRKSRC}/mopelib/*.py @${FIND} ${WRKSRC} -name "*.bak" -delete +do-build: + @${PYTHON_CMD} -m compileall ${WRKSRC} + @${PYTHON_CMD} -O -m compileall ${WRKSRC} + do-install: - ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin/ - ${MKDIR} ${DATADIR} - ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}.py ${DATADIR} - @(cd ${WRKSRC} && ${COPYTREE_SHARE} "images mopelib music sounds" ${DATADIR}) - ${INSTALL_DATA} ${WRKSRC}/doc/screenshot1.png ${PREFIX}/share/pixmaps/${PORTNAME}.png - ${INSTALL_DATA} ${WRKSRC}/version ${DATADIR} - -.if ${PORT_OPTIONS:MDOCS} - ${MKDIR} ${DOCSDIR} - ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/doc/|} ${DOCSDIR} -.endif + @${REINPLACE_CMD} -e 's|%%PYTHON_CMD%%|${PYTHON_CMD}|' \ + ${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 + + ${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} .include Modified: head/games/mopesnake/distinfo ============================================================================== --- head/games/mopesnake/distinfo Tue Dec 10 04:57:35 2013 (r336047) +++ head/games/mopesnake/distinfo Tue Dec 10 06:33:45 2013 (r336048) @@ -1,2 +1,4 @@ SHA256 (mopesnake-pc-0.5.zip) = 1bc270e7dc63ad40bb2280ac5d3dec8527b2d902b272f2b42bfd35d265d339d4 SIZE (mopesnake-pc-0.5.zip) = 1426226 +SHA256 (mopesnake.png) = f7d568382857a7e5a10ca01369d8f2c660f523d277239ba468be7fd81cceb028 +SIZE (mopesnake.png) = 1305 Modified: head/games/mopesnake/files/mopesnake.in ============================================================================== --- head/games/mopesnake/files/mopesnake.in Tue Dec 10 04:57:35 2013 (r336047) +++ head/games/mopesnake/files/mopesnake.in Tue Dec 10 06:33:45 2013 (r336048) @@ -4,4 +4,4 @@ # cd "%%DATADIR%%" -exec /usr/bin/env python ./mopesnake.py "${@}" +exec %%PYTHON_CMD%% ./mopesnake.py "${@}" Modified: head/games/mopesnake/pkg-descr ============================================================================== --- head/games/mopesnake/pkg-descr Tue Dec 10 04:57:35 2013 (r336047) +++ head/games/mopesnake/pkg-descr Tue Dec 10 06:33:45 2013 (r336048) @@ -1,8 +1,8 @@ Master Of Pain (Eating) - Snake Is a classic snake game in which you attempt to eat all the pain in the world, -bravely accepting the inevitable consequences for your waistline. mop(e)snake +bravely accepting the inevitable consequences for your waistline. mop(e)snake features an innovative single-finger control method, as well as the normal -four-directional control system familiar to fans of snake. The game doesn't +four-directional control system familiar to fans of snake. The game doesn't feature any of the extra features, bonuses, wrap-around levels and other featuritis that ruins most versions of snake. Modified: head/games/mopesnake/pkg-plist ============================================================================== --- head/games/mopesnake/pkg-plist Tue Dec 10 04:57:35 2013 (r336047) +++ head/games/mopesnake/pkg-plist Tue Dec 10 06:33:45 2013 (r336048) @@ -4,8 +4,14 @@ bin/mopesnake %%DATADIR%%/images/title.png %%DATADIR%%/images/tryad.png %%DATADIR%%/mopelib/__init__.py +%%DATADIR%%/mopelib/__init__.pyc +%%DATADIR%%/mopelib/__init__.pyo %%DATADIR%%/mopelib/mopelib.py +%%DATADIR%%/mopelib/mopelib.pyc +%%DATADIR%%/mopelib/mopelib.pyo %%DATADIR%%/mopesnake.py +%%DATADIR%%/mopesnake.pyc +%%DATADIR%%/mopesnake.pyo %%DATADIR%%/music/the_final_rewind_loop.ogg %%DATADIR%%/sounds/aaa1.wav %%DATADIR%%/sounds/aah2.wav