mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-12 03:00:28 +00:00
551be3c723
Ports using USE_PYTHON=distutils are now flavored. They will automatically get flavors (py27, py34, py35, py36) depending on what versions they support. There is also a USE_PYTHON=flavors for ports that do not use distutils but need FLAVORS to be set. A USE_PYTHON=noflavors can be set if using distutils but flavors are not wanted. A new USE_PYTHON=optsuffix that will add PYTHON_PKGNAMESUFFIX has been added to cope with Python ports that did not have the Python PKGNAMEPREFIX but are flavored. USES=python now also exports a PY_FLAVOR variable that contains the current python flavor. It can be used in dependency lines when the port itself is not python flavored. For example, deskutils/calibre. By default, all the flavors are generated. To only generate flavors for the versions in PYTHON2_DEFAULT and PYTHON3_DEFAULT, define BUILD_DEFAULT_PYTHON_FLAVORS in your make.conf. In all the ports with Python dependencies, the *_DEPENDS entries MUST end with the flavor so that the framework knows which to build/use. This is done by appending '@${PY_FLAVOR}' after the origin (or @${FLAVOR} if in a Python module with Python flavors, as the content will be the same). For example: RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR} PR: 223071 Reviewed by: portmgr, python Sponsored by: Absolight Differential Revision: https://reviews.freebsd.org/D12464
66 lines
1.8 KiB
Makefile
66 lines
1.8 KiB
Makefile
# Created by: Rusmir Dusko <nemysis@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= kye
|
|
PORTVERSION= 1.0
|
|
PORTREVISION= 5
|
|
CATEGORIES= games python
|
|
MASTER_SITES= http://games.moria.org.uk/kye/download/ \
|
|
SF/nemysisfreebsdp/games/${PORTNAME}/:levels
|
|
# Selection of production-ready/well-known Kye Levels
|
|
# (Zipped levels already included from games.moria.org.uk are excluded)
|
|
# Please contact the maintainer if a Level is missing
|
|
DISTFILES= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} \
|
|
kye-data_moria_levels.20121101.tar.gz:levels \
|
|
kye-data_nuke_levels.20121101.tar.gz:levels \
|
|
kye-data_extra_levels.20120818.tar.gz:levels
|
|
DIST_SUBDIR= kye
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Puzzle game with arcade game elements
|
|
|
|
RESTRICTED= kye-data_nuke_levels is charityware
|
|
RESTRICTED_FILES= kye-data_nuke_levels.20121101.tar.gz
|
|
|
|
USE_GNOME= pygtk2 librsvg2
|
|
USES= python:2.7
|
|
USE_PYTHON= distutils
|
|
|
|
PORTDOCS= NEWS README
|
|
|
|
SUB_FILES= pkg-message
|
|
|
|
DESKTOP_ENTRIES="Python Kye" \
|
|
"" \
|
|
"Kye" \
|
|
"Kye" \
|
|
"Game;LogicGame;" \
|
|
""
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|share/kye|${DATADIR_REL}|' ${WRKSRC}/setup.py
|
|
@${REINPLACE_CMD} -e 's|/usr/local/share/kye|${DATADIR}|' \
|
|
${WRKSRC}/kye/common.py
|
|
|
|
post-extract-script:
|
|
@${MKDIR} ${WRKDIR}/${PORTNAME}
|
|
.for l in kye-data_moria_levels.20121101.tar.gz kye-data_nuke_levels.20121101.tar.gz \
|
|
kye-data_extra_levels.20120818.tar.gz
|
|
${TAR} xfjp ${_DISTDIR}/${l} -C ${WRKDIR}/${PORTNAME}
|
|
.endfor
|
|
|
|
post-install:
|
|
${INSTALL_DATA} ${WRKSRC}/kye-icon.png \
|
|
${STAGEDIR}${PREFIX}/share/pixmaps/Kye.png
|
|
${INSTALL_DATA} ${WRKSRC}/kye-edit-icon.png \
|
|
${STAGEDIR}${PREFIX}/share/pixmaps/Kye-edit.png
|
|
@cd ${WRKDIR}/${PORTNAME} && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}
|
|
|
|
post-install-DOCS-on:
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
|
|
|
|
.include <bsd.port.mk>
|