From owner-svn-ports-head@FreeBSD.ORG Fri Sep 14 06:21:15 2012 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9765A106566B; Fri, 14 Sep 2012 06:21:15 +0000 (UTC) (envelope-from jgh@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 68C6A8FC08; Fri, 14 Sep 2012 06:21:15 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q8E6LFUh058705; Fri, 14 Sep 2012 06:21:15 GMT (envelope-from jgh@svn.freebsd.org) Received: (from jgh@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q8E6LF43058702; Fri, 14 Sep 2012 06:21:15 GMT (envelope-from jgh@svn.freebsd.org) Message-Id: <201209140621.q8E6LF43058702@svn.freebsd.org> From: Jason Helfman Date: Fri, 14 Sep 2012 06:21:15 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r304257 - in head/games/mopesnake: . files X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Sep 2012 06:21:15 -0000 Author: jgh Date: Fri Sep 14 06:21:14 2012 New Revision: 304257 URL: http://svn.freebsd.org/changeset/ports/304257 Log: - add startup script - adopt optionsNG for DOCS - while here adjust run depends listing PR: 170738 Submitted by: maintainer, nemysis@gmx.ch Added: head/games/mopesnake/files/ head/games/mopesnake/files/mopesnake.in (contents, props changed) Modified: head/games/mopesnake/Makefile Modified: head/games/mopesnake/Makefile ============================================================================== --- head/games/mopesnake/Makefile Fri Sep 14 05:47:44 2012 (r304256) +++ head/games/mopesnake/Makefile Fri Sep 14 06:21:14 2012 (r304257) @@ -1,44 +1,42 @@ -# New Ports collection makefile for: mopesnake -# Date created: 2012-05-16 -# Whom: nemysis@gmx.ch -# # $FreeBSD$ -# PORTNAME= mopesnake PORTVERSION= 0.5 +PORTREVISION= 1 CATEGORIES= games MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTVERSION} DISTNAME= ${PORTNAME}-pc-${DISTVERSION} MAINTAINER= nemysis@gmx.ch -COMMENT= A classic snake game in which you attempt to eat all the pain +COMMENT= Classic snake game in which you attempt to eat all the pain LICENSE= GPLv2 -RUN_DEPENDS= ${PYTHON_SITELIBDIR}/pygame/__init__.py:${PORTSDIR}/devel/py-game +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}game>=0:${PORTSDIR}/devel/py-game USE_ZIP= yes USE_PYTHON= yes NO_BUILD= yes -PLIST_FILES= bin/mopesnake \ +PLIST_FILES= bin/${PORTNAME} \ share/pixmaps/${PORTNAME}.png PORTDATA= * PORTDOCS= TODO.txt index.html +SUB_FILES= ${PORTNAME} + post-patch: # Fix path to python interpreter @${REINPLACE_CMD} -e 's,/usr/bin/python,${PYTHON_CMD},' \ ${WRKSRC}/*.py ${WRKSRC}/mopelib/*.py @(cd ${WRKSRC} && ${RM} *.py.bak mopelib/*py.bak) +.include + do-install: # Scripts - @${PRINTF} "#!/bin/sh\n\ncd ${DATADIR} &&\ - ./${PORTNAME}.py\n" > ${WRKDIR}/${PORTNAME}.sh - ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.sh ${PREFIX}/bin/${PORTNAME} + ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin # Executable ${MKDIR} ${DATADIR} @@ -52,7 +50,7 @@ do-install: ${INSTALL_DATA} ${WRKSRC}/version ${DATADIR} # Documentation -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} ${MKDIR} ${DOCSDIR} . for f in ${PORTDOCS} ${INSTALL_DATA} ${WRKSRC}/doc/${f} ${DOCSDIR} Added: head/games/mopesnake/files/mopesnake.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/mopesnake/files/mopesnake.in Fri Sep 14 06:21:14 2012 (r304257) @@ -0,0 +1,7 @@ +#!/bin/sh +# +# $FreeBSD$ + +echo "Master Of Pain (Eating) - Snake: Starting up..." +cd "%%DATADIR%%" +./mopesnake.py \ No newline at end of file