mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-20 00:21:35 +00:00
games/fretsonfire: Fixed stage-qa; Added NO_ARCH; Added LICENSE; Renamed into FretsOnFire; Added PY_FLAVOR
Approved by: tcberner (mentor) Differential Revision: D13806
This commit is contained in:
parent
7d76670246
commit
3e128d16a4
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=460072
@ -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
|
||||
|
@ -1,2 +1,3 @@
|
||||
TIMESTAMP = 1516082444
|
||||
SHA256 (fretsonfire/FretsOnFire-1.3.110.tar.gz) = c8cca75a897a8c4cadac06f92fd85b417ac41fc19fc719e89ddcd91a3c29f9da
|
||||
SIZE (fretsonfire/FretsOnFire-1.3.110.tar.gz) = 31676132
|
||||
|
Loading…
Reference in New Issue
Block a user