Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Dec 2014 02:30:24 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r373735 - head/games/super_mario_bros_python
Message-ID:  <201412020230.sB22UOpX011639@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Tue Dec  2 02:30:23 2014
New Revision: 373735
URL: https://svnweb.freebsd.org/changeset/ports/373735
QAT: https://qat.redports.org/buildarchive/r373735/

Log:
  - Add LICENSE_FILE
  - Fix shebangs in all python files
  - Drop @dirrm* from plist

Modified:
  head/games/super_mario_bros_python/Makefile
  head/games/super_mario_bros_python/pkg-plist

Modified: head/games/super_mario_bros_python/Makefile
==============================================================================
--- head/games/super_mario_bros_python/Makefile	Tue Dec  2 02:25:47 2014	(r373734)
+++ head/games/super_mario_bros_python/Makefile	Tue Dec  2 02:30:23 2014	(r373735)
@@ -16,15 +16,16 @@ MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Clone of the original Super Mario Bros
 
 LICENSE=	GPLv3
+LICENSE_FILE=	${WRKSRC}/license.txt
 
 RUN_DEPENDS=	${PYGAME}
 
 WRKSRC=		${WRKDIR}/Super-Mario-Bros-Python-v${DISTVERSION}release
 
 USES=		shebangfix python:2 zip
-SHEBANG_FILES=	gamelib/*.py
-python_OLD_CMD?=	/usr/bin/env python
-python_CMD?=		${PYTHON_CMD}
+SHEBANG_FILES=	gamelib/*.py start.py
+python_OLD_CMD=	/usr/bin/env python
+python_CMD?=	${PYTHON_CMD}
 
 PORTDOCS=	changelog.txt readme.txt
 OPTIONS_DEFINE=	DOCS
@@ -36,7 +37,7 @@ DESKTOP_ENTRIES="Super Mario Bros. Pytho
 
 post-patch:
 	@${REINPLACE_CMD} -i '' -e '1d' \
-		-e 's|#! /usr/bin/env python|#!${PYTHON_CMD}|' \
+		-e 's|#! /usr/bin/env python|#!${python_CMD}|' \
 		${WRKSRC}/start.py
 	@${FIND} ${WRKSRC} -name "*.py~" -delete -or -name "*.sav~" -delete
 
@@ -45,7 +46,7 @@ do-build:
 	@${PYTHON_CMD} -O -m compileall ${WRKSRC}
 
 do-install:
-	@${REINPLACE_CMD} -e 's|%%PYTHON_CMD%%|${PYTHON_CMD}|' \
+	@${REINPLACE_CMD} -e 's|%%PYTHON_CMD%%|${python_CMD}|' \
 		${WRKDIR}/${PORTNAME}
 	${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
 

Modified: head/games/super_mario_bros_python/pkg-plist
==============================================================================
--- head/games/super_mario_bros_python/pkg-plist	Tue Dec  2 02:25:47 2014	(r373734)
+++ head/games/super_mario_bros_python/pkg-plist	Tue Dec  2 02:30:23 2014	(r373735)
@@ -154,8 +154,3 @@ share/pixmaps/super_mario_bros_python.pn
 %%DATADIR%%/start.py
 %%DATADIR%%/start.pyc
 %%DATADIR%%/start.pyo
-@dirrm %%DATADIR%%/gamelib
-@dirrm %%DATADIR%%/data/saves
-@dirrm %%DATADIR%%/data/fonts
-@dirrm %%DATADIR%%/data
-@dirrm %%DATADIR%%



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