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

Collapse All | Expand All

(-)./Makefile (-21 / +9 lines)
Lines 2-9 Link Here
2
2
3
PORTNAME=	mopesnake
3
PORTNAME=	mopesnake
4
PORTVERSION=	0.5
4
PORTVERSION=	0.5
5
PORTREVISION=	1
5
PORTREVISION=	2
6
CATEGORIES=	games
6
CATEGORIES=	games python
7
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${PORTVERSION}
7
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${PORTVERSION}
8
DISTNAME=	${PORTNAME}-pc-${DISTVERSION}
8
DISTNAME=	${PORTNAME}-pc-${DISTVERSION}
9
9
Lines 18-60 Link Here
18
USE_PYTHON=	yes
18
USE_PYTHON=	yes
19
NO_BUILD=	yes
19
NO_BUILD=	yes
20
20
21
PLIST_FILES=	bin/${PORTNAME} \
22
		share/pixmaps/${PORTNAME}.png
23
24
PORTDATA=	*
25
PORTDOCS=	TODO.txt index.html
21
PORTDOCS=	TODO.txt index.html
26
22
27
SUB_FILES=	${PORTNAME}
23
SUB_FILES=	${PORTNAME}
28
24
25
DESKTOP_ENTRIES="Master Of Pain (Eating) - Snake" "${COMMENT}" "${PORTNAME}" \
26
		"${PORTNAME}" "Game;ArcadeGame;" ${FALSE}
27
28
.include <bsd.port.options.mk>
29
29
post-patch:
30
post-patch:
30
# Fix path to python interpreter
31
	@${REINPLACE_CMD} -e 's,/usr/bin/python,${PYTHON_CMD},' \
31
	@${REINPLACE_CMD} -e 's,/usr/bin/python,${PYTHON_CMD},' \
32
		${WRKSRC}/*.py ${WRKSRC}/mopelib/*.py
32
		${WRKSRC}/*.py ${WRKSRC}/mopelib/*.py
33
	@(cd ${WRKSRC} && ${RM} *.py.bak mopelib/*py.bak)
33
	@${FIND} ${WRKSRC} -name "*.bak" -delete
34
35
.include <bsd.port.options.mk>
36
34
37
do-install:
35
do-install:
38
# Scripts
39
	${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin
36
	${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin
40
41
# Executable
42
	${MKDIR} ${DATADIR}
37
	${MKDIR} ${DATADIR}
43
	${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}.py ${DATADIR}
38
	${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}.py ${DATADIR}
44
45
# Data
46
	@(cd ${WRKSRC} && ${COPYTREE_SHARE} "images mopelib music sounds" ${DATADIR})
39
	@(cd ${WRKSRC} && ${COPYTREE_SHARE} "images mopelib music sounds" ${DATADIR})
47
48
# Pixmaps and version
49
	${INSTALL_DATA} ${WRKSRC}/doc/screenshot1.png ${PREFIX}/share/pixmaps/${PORTNAME}.png
40
	${INSTALL_DATA} ${WRKSRC}/doc/screenshot1.png ${PREFIX}/share/pixmaps/${PORTNAME}.png
50
	${INSTALL_DATA} ${WRKSRC}/version ${DATADIR}
41
	${INSTALL_DATA} ${WRKSRC}/version ${DATADIR}
51
42
52
# Documentation
53
.if ${PORT_OPTIONS:MDOCS}
43
.if ${PORT_OPTIONS:MDOCS}
54
	${MKDIR} ${DOCSDIR}
44
	${MKDIR} ${DOCSDIR}
55
.  for f in ${PORTDOCS}
45
	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/doc/|} ${DOCSDIR}
56
	${INSTALL_DATA} ${WRKSRC}/doc/${f} ${DOCSDIR}
57
.  endfor
58
.endif
46
.endif
59
47
60
.include <bsd.port.mk>
48
.include <bsd.port.mk>
(-)./files/mopesnake.in (-2 / +2 lines)
Lines 1-7 Link Here
1
#!/bin/sh
1
#!/bin/sh
2
#
2
#
3
# $FreeBSD: ports/games/mopesnake/files/mopesnake.in,v 1.1 2012/09/14 06:21:14 jgh Exp $
3
# $FreeBSD: ports/games/mopesnake/files/mopesnake.in,v 1.1 2012/09/14 06:21:14 jgh Exp $
4
#
4
5
5
echo "Master Of Pain (Eating) - Snake: Starting up..."
6
cd "%%DATADIR%%"
6
cd "%%DATADIR%%"
7
./mopesnake.py
7
exec /usr/bin/env python ./mopesnake.py
(-)./pkg-plist (+25 lines)
Line 0 Link Here
1
bin/mopesnake
2
%%DATADIR%%/images/hiscores.png
3
%%DATADIR%%/images/instructions.png
4
%%DATADIR%%/images/title.png
5
%%DATADIR%%/images/tryad.png
6
%%DATADIR%%/mopelib/__init__.py
7
%%DATADIR%%/mopelib/mopelib.py
8
%%DATADIR%%/mopesnake.py
9
%%DATADIR%%/music/the_final_rewind_loop.ogg
10
%%DATADIR%%/sounds/aaa1.wav
11
%%DATADIR%%/sounds/aah2.wav
12
%%DATADIR%%/sounds/aei1.wav
13
%%DATADIR%%/sounds/eee1.wav
14
%%DATADIR%%/sounds/mmm3.wav
15
%%DATADIR%%/sounds/ooh1.wav
16
%%DATADIR%%/sounds/oow1.wav
17
%%DATADIR%%/sounds/ouch1.wav
18
%%DATADIR%%/sounds/ow1.wav
19
%%DATADIR%%/version
20
share/pixmaps/mopesnake.png
21
@dirrm %%DATADIR%%/sounds
22
@dirrm %%DATADIR%%/music
23
@dirrm %%DATADIR%%/mopelib
24
@dirrm %%DATADIR%%/images
25
@dirrm %%DATADIR%%

Return to bug 173436