From owner-svn-ports-all@FreeBSD.ORG Thu May 1 21:48:34 2014 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 1BFAB27A; Thu, 1 May 2014 21:48:34 +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)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 093D510FC; Thu, 1 May 2014 21:48:34 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s41LmXAR065754; Thu, 1 May 2014 21:48:33 GMT (envelope-from nemysis@svn.freebsd.org) Received: (from nemysis@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s41LmXgd065753; Thu, 1 May 2014 21:48:33 GMT (envelope-from nemysis@svn.freebsd.org) Message-Id: <201405012148.s41LmXgd065753@svn.freebsd.org> From: Rusmir Dusko Date: Thu, 1 May 2014 21:48:33 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r352768 - head/games/super_mario_bros_python 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: Thu, 01 May 2014 21:48:34 -0000 Author: nemysis Date: Thu May 1 21:48:33 2014 New Revision: 352768 URL: http://svnweb.freebsd.org/changeset/ports/352768 QAT: https://qat.redports.org/buildarchive/r352768/ Log: - Add USES shebangfix and SHEBANG_FILES - Fix the usage of 'perl' to get rid of the implicit lang/perl dependency, change REINPLACE - Change install, cosmetical changes Modified: head/games/super_mario_bros_python/Makefile Modified: head/games/super_mario_bros_python/Makefile ============================================================================== --- head/games/super_mario_bros_python/Makefile Thu May 1 21:46:14 2014 (r352767) +++ head/games/super_mario_bros_python/Makefile Thu May 1 21:48:33 2014 (r352768) @@ -21,11 +21,13 @@ RUN_DEPENDS= ${PYGAME} WRKSRC= ${WRKDIR}/Super-Mario-Bros-Python-v${DISTVERSION}release -USES= zip +USES= shebangfix zip +SHEBANG_FILES= gamelib/*.py +python_OLD_CMD?= /usr/bin/env python +python_CMD?= ${PYTHON_CMD} USE_PYTHON= 2 PORTDOCS= changelog.txt readme.txt - OPTIONS_DEFINE= DOCS SUB_FILES= ${PORTNAME} @@ -34,7 +36,9 @@ DESKTOP_ENTRIES="Super Mario Bros. Pytho "${PORTNAME}" "Game;ArcadeGame;" "" post-patch: - @${REINPLACE_CMD} -i '' -e '1d' ${WRKSRC}/start.py + @${REINPLACE_CMD} -i '' -e '1d' \ + -e 's|#! /usr/bin/env python|#!${PYTHON_CMD}|' \ + ${WRKSRC}/start.py @${FIND} ${WRKSRC} -name "*.py~" -delete -or -name "*.sav~" -delete do-build: @@ -49,9 +53,8 @@ do-install: .for d in data gamelib @(cd ${WRKSRC} && ${COPYTREE_SHARE} ${d} ${STAGEDIR}${DATADIR}) .endfor - -.for d in *.py *.pyc *.pyo - @(cd ${WRKSRC} ; ${INSTALL_SCRIPT} ${d} ${STAGEDIR}${DATADIR}) +.for f in *.py *.pyc *.pyo + ${INSTALL_SCRIPT} ${WRKSRC}/${f} ${STAGEDIR}${DATADIR} .endfor ${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png \