View | Details | Raw Unified | Return to bug 169893 | Differences between
and this patch

Collapse All | Expand All

(-)tuxfighter/Makefile (-10 / +21 lines)
Lines 1-4 Link Here
1
# New Ports collection makefile for:	tuxfighter
1
# New Ports collection makefile for:	TuxFighter
2
# Date created:		2012-07-15
2
# Date created:		2012-07-15
3
# Whom:			nemysis@gmx.ch
3
# Whom:			nemysis@gmx.ch
4
#
4
#
Lines 8-26 Link Here
8
PORTNAME=	tuxfighter
8
PORTNAME=	tuxfighter
9
PORTVERSION=	54
9
PORTVERSION=	54
10
CATEGORIES=	games
10
CATEGORIES=	games
11
MASTER_SITES=	SF/pygamebook/${PORTNAME:S/t/T/:S/f/F/}/${PORTNAME:S/t/T/:S/f/F/}${PORTVERSION}_source
11
MASTER_SITES=	SF/pygamebook/${PORTNAME:S/t/T/:S/f/F/}/${PORTNAME:S/t/T/:S/f/F/}${PORTVERSION}_source/ \
12
DISTNAME=	${PORTNAME:S/t/T/:S/f/F/}${DISTVERSION}
12
		http://thepythongamebook.com/_media/en:resources:games:/:icons
13
DISTFILES=	${PORTNAME:S/t/T/:S/f/F/}${DISTVERSION}.tar.gz \
14
		tfbomb.jpg:icons
15
DIST_SUBDIR=	python
16
EXTRACT_ONLY=	${PORTNAME:S/t/T/:S/f/F/}${DISTVERSION}.tar.gz
13
17
14
MAINTAINER=	nemysis@gmx.ch
18
MAINTAINER=	nemysis@gmx.ch
15
COMMENT=	TuxFighter is a little Asteroids-like Shooter game
19
COMMENT=	TuxFighter is a little Asteroids-like Shooter game
16
20
17
LICENSE=	GPLv2
21
LICENSE=	GPLv2
18
22
19
FETCH_DEPENDS=	wget:${PORTSDIR}/ftp/wget
20
RUN_DEPENDS=	${PYTHON_SITELIBDIR}/pygame/__init__.py:${PORTSDIR}/devel/py-game
23
RUN_DEPENDS=	${PYTHON_SITELIBDIR}/pygame/__init__.py:${PORTSDIR}/devel/py-game
21
24
22
WRKSRC=		${WRKDIR}
25
WRKSRC=		${WRKDIR}
23
26
27
OPTIONS_DEFINE=	DATA
28
OPTIONS_DEFAULT=	DATA
29
24
FETCH_ARGS?=	-Fpr
30
FETCH_ARGS?=	-Fpr
25
USE_PYTHON=	yes
31
USE_PYTHON=	yes
26
NO_BUILD=	yes
32
NO_BUILD=	yes
Lines 31-54 Link Here
31
PORTDATA=	*
37
PORTDATA=	*
32
PORTDOCS=	readme_TuxFighter54.txt
38
PORTDOCS=	readme_TuxFighter54.txt
33
39
40
SUB_FILES=	${PORTNAME}
41
42
.include <bsd.port.options.mk>
43
34
do-install:
44
do-install:
35
# Scripts
45
# Scripts
36
	@${PRINTF} "#!/bin/sh\n\ncd ${DATADIR} &&\
46
	${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin
37
		./${PORTNAME:S/t/T/:S/f/F/}${DISTVERSION}.py\n" > ${WRKDIR}/${PORTNAME}.sh
47
38
	@${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.sh ${PREFIX}/bin/${PORTNAME}
39
# Executable
48
# Executable
40
	${MKDIR} ${DATADIR}
49
	${MKDIR} ${DATADIR}
41
	${INSTALL_SCRIPT} ${WRKSRC}/TuxFighter54.py ${DATADIR}
50
	${INSTALL_SCRIPT} ${WRKSRC}/TuxFighter54.py ${DATADIR}
42
	${INSTALL_SCRIPT} ${WRKSRC}/TuxFighter_modding.py ${DATADIR}
51
	${INSTALL_SCRIPT} ${WRKSRC}/TuxFighter_modding.py ${DATADIR}
43
52
44
# Data
53
# Data
45
.if !defined (NOPORTDATA)
54
.if ${PORT_OPTIONS:MDATA}
46
	cd ${WRKSRC} && ${COPYTREE_SHARE} data ${DATADIR}
55
	cd ${WRKSRC} && ${COPYTREE_SHARE} data ${DATADIR}
47
	wget http://thepythongamebook.com/_media/en:resources:games:tfbomb.jpg ; ${MV} en:resources:games:tfbomb.jpg ${PREFIX}/share/pixmaps/${PORTNAME}.jpg
48
.endif
56
.endif
49
57
58
# Pixmaps
59
	@${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/tfbomb.jpg ${PREFIX}/share/pixmaps/${PORTNAME}.jpg
60
50
# Documentation
61
# Documentation
51
.if !defined(NOPORTDOCS)
62
.if ${PORT_OPTIONS:MDOCS}
52
	${MKDIR} ${DOCSDIR}
63
	${MKDIR} ${DOCSDIR}
53
.  for f in ${PORTDOCS}
64
.  for f in ${PORTDOCS}
54
	${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
65
	${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
(-)tuxfighter/distinfo (-2 / +4 lines)
Lines 1-2 Link Here
1
SHA256 (TuxFighter54.tar.gz) = ba9ed46da8d2196cf1c90b67f0cb57f33b92f54be4b3867bd0af5d214d267154
1
SHA256 (python/TuxFighter54.tar.gz) = ba9ed46da8d2196cf1c90b67f0cb57f33b92f54be4b3867bd0af5d214d267154
2
SIZE (TuxFighter54.tar.gz) = 336573
2
SIZE (python/TuxFighter54.tar.gz) = 336573
3
SHA256 (python/tfbomb.jpg) = 669d19abfa8993424ab411b066e4fbfd48b80c06486b08c82181f8df4335492d
4
SIZE (python/tfbomb.jpg) = 50327
(-)tuxfighter/files/tuxfighter.in (+7 lines)
Line 0 Link Here
1
#!/bin/sh
2
#
3
# $FreeBSD$
4
5
echo "TuxFighter: Starting up..."
6
cd "%%DATADIR%%"
7
./TuxFighter54.py

Return to bug 169893