blob: 58b6c964b8968318c98517394647585f4d1604d9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
# 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
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>
|