aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryuri <yuri@FreeBSD.org>2018-01-27 09:05:18 +0800
committerKoop Mast <kwm@rainbow-runner.nl>2018-02-04 06:30:01 +0800
commitfdd6335be8256a1b0ebbea9d45487b31aa4e2ac5 (patch)
tree3490fe110cd45667a4a147b267ad55a2f6e1e586
parent280a4b0c4ddce09970638ad71a72012dcbceacc2 (diff)
downloadfreebsd-ports-gnome-fdd6335be8256a1b0ebbea9d45487b31aa4e2ac5.tar.gz
freebsd-ports-gnome-fdd6335be8256a1b0ebbea9d45487b31aa4e2ac5.tar.zst
freebsd-ports-gnome-fdd6335be8256a1b0ebbea9d45487b31aa4e2ac5.zip
games/fretsonfire: Fixed stage-qa; Added NO_ARCH; Added LICENSE; Renamed into FretsOnFire; Added PY_FLAVOR
Approved by: tcberner (mentor) Differential Revision: D13806
-rw-r--r--games/fretsonfire/Makefile29
-rw-r--r--games/fretsonfire/distinfo1
2 files changed, 19 insertions, 11 deletions
diff --git a/games/fretsonfire/Makefile b/games/fretsonfire/Makefile
index 9d4d0aad549c..669d1969dde0 100644
--- a/games/fretsonfire/Makefile
+++ b/games/fretsonfire/Makefile
@@ -3,44 +3,51 @@
PORTNAME= fretsonfire
PORTVERSION= 1.3.110
-PORTREVISION= 9
+PORTREVISION= 10
CATEGORIES= games python
MASTER_SITES= SF
-DISTNAME= ${PORTNAME:S/f/F/g:S/o/O/}-${PORTVERSION}
+DISTNAME= ${PORTNAME_UCASE}-${PORTVERSION}
DIST_SUBDIR= ${PORTNAME}
MAINTAINER= acm@FreeBSD.org
COMMENT= Game of musical skill and fast fingers
+LICENSE= GPLv2
+LICENSE_FILE= ${WRKSRC}/copying.txt
+
RUN_DEPENDS= ${PYNUMPY} \
- ${PYTHON_PKGNAMEPREFIX}game>=0:devel/py-game \
- ${PYTHON_PKGNAMEPREFIX}PyOpenGL>=0:graphics/py-PyOpenGL \
- ${PYTHON_PKGNAMEPREFIX}pillow>=0:graphics/py-pillow \
+ ${PYTHON_PKGNAMEPREFIX}game>=0:devel/py-game@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}PyOpenGL>=0:graphics/py-PyOpenGL@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pillow>=0:graphics/py-pillow@${PY_FLAVOR} \
${LOCALBASE}/share/${PORTNAME}/default.ttf:games/fretsonfire-data
USES= dos2unix python
DOS2UNIX_FILES= *.txt
NO_BUILD= yes
+NO_ARCH= yes
DATADIR= share/${PORTNAME}
EXTRACT_AFTER_ARGS= --exclude 'data'
SUB_FILES= pkg-message FretsOnFire
-SUB_LIST= PROGRAM_DIR="${FOF_DIR}/${PORTNAME:S/f/F/g:S/o/O/}"
+SUB_LIST= PROGRAM_DIR="${FOF_DIR}/${PORTNAME_UCASE}"
WRKSRC= "${WRKDIR}/Frets on Fire-${PORTVERSION}"
FOF_DIR= ${PREFIX}/lib/${PORTNAME}
OPTIONS_DEFINE= DOCS
+PORTNAME_UCASE= FretsOnFire
+
do-install:
- @${MKDIR} ${STAGEDIR}${FOF_DIR}/${PORTNAME:S/f/F/g:S/o/O/}
+ @${MKDIR} ${STAGEDIR}${FOF_DIR}/${PORTNAME_UCASE}
@cd ${WRKSRC}/src && \
- ${FIND} * -type d -exec ${MKDIR} "${STAGEDIR}${FOF_DIR}/${PORTNAME:S/f/F/g:S/o/O/}/{}" \; && \
- ${FIND} -E * -type f -iregex ".*\.(py)" -exec ${INSTALL_DATA} {} "${STAGEDIR}${FOF_DIR}/${PORTNAME:S/f/F/g:S/o/O/}/{}" \;
+ ${FIND} * -type d -exec ${MKDIR} "${STAGEDIR}${FOF_DIR}/${PORTNAME_UCASE}/{}" \; && \
+ ${FIND} -E * -type f -iregex ".*\.(py)" -exec ${INSTALL_DATA} {} "${STAGEDIR}${FOF_DIR}/${PORTNAME_UCASE}/{}" \;
@${MKDIR} ${STAGEDIR}${FOF_DIR}/data
- ${LN} -s ${LOCALBASE}/${DATADIR}/* ${STAGEDIR}${FOF_DIR}/data
- ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME:S/f/F/g:S/o/O/} ${STAGEDIR}${PREFIX}/bin
+ @${LN} -s ${LOCALBASE}/${DATADIR}/* ${STAGEDIR}${FOF_DIR}/data
+ ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME_UCASE} ${STAGEDIR}${PREFIX}/bin
+ @${REINPLACE_CMD} -i '' -e 's|#!.*|#!${PYTHON_CMD}|' ${STAGEDIR}${PREFIX}/bin/${PORTNAME_UCASE}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/readme.txt ${STAGEDIR}${DOCSDIR}/README
diff --git a/games/fretsonfire/distinfo b/games/fretsonfire/distinfo
index 88bfea3d2403..af4202c3e271 100644
--- a/games/fretsonfire/distinfo
+++ b/games/fretsonfire/distinfo
@@ -1,2 +1,3 @@
+TIMESTAMP = 1516082444
SHA256 (fretsonfire/FretsOnFire-1.3.110.tar.gz) = c8cca75a897a8c4cadac06f92fd85b417ac41fc19fc719e89ddcd91a3c29f9da
SIZE (fretsonfire/FretsOnFire-1.3.110.tar.gz) = 31676132