Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 May 2014 21:48:33 +0000 (UTC)
From:      Rusmir Dusko <nemysis@FreeBSD.org>
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
Message-ID:  <201405012148.s41LmXgd065753@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 \



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201405012148.s41LmXgd065753>