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

Collapse All | Expand All

(-)./Makefile (-18 / +16 lines)
Lines 7-16 Link Here
7
7
8
PORTNAME=	nelly
8
PORTNAME=	nelly
9
PORTVERSION=	1.0
9
PORTVERSION=	1.0
10
PORTREVISION=	1
10
PORTREVISION=	2
11
CATEGORIES=	games python
11
CATEGORIES=	games python
12
MASTER_SITES=	http://www.partiallydisassembled.net/nelly/ \
12
MASTER_SITES=	http://www.partiallydisassembled.net/nelly/ \
13
		http://media.pyweek.org/dl/2/rushed/
13
		http://media.pyweek.org/dl/2/rushed/ \
14
		SF/nemysisfreebsdp/:icons
15
DISTFILES=	${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} \
16
		${PORTNAME}.png:icons
17
DIST_SUBDIR=	${PORTNAME}
18
EXTRACT_ONLY=	${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX}
14
19
15
MAINTAINER=	nemysis@gmx.ch
20
MAINTAINER=	nemysis@gmx.ch
16
COMMENT=	Nelly's Rooftop Garden, physics-based puzzle game
21
COMMENT=	Nelly's Rooftop Garden, physics-based puzzle game
Lines 21-61 Link Here
21
USE_PYTHON_RUN=	yes
26
USE_PYTHON_RUN=	yes
22
NO_BUILD=	yes
27
NO_BUILD=	yes
23
28
24
PLIST_FILES=	bin/${PORTNAME} \
25
		share/pixmaps/${PORTNAME}.png
26
27
PORTDATA=	*
28
PORTDOCS=	README
29
PORTDOCS=	README
29
30
30
SUB_FILES=	${PORTNAME}
31
SUB_FILES=	${PORTNAME}
31
32
33
DESKTOP_ENTRIES="Nelly's Rooftop Garden" "${COMMENT}" "${PORTNAME}" \
34
		"${PORTNAME}" "Game;ArcadeGame;" ${FALSE}
35
32
.include <bsd.port.options.mk>
36
.include <bsd.port.options.mk>
33
37
34
post-patch:
38
post-patch:
35
	@${REINPLACE_CMD} -e 's,/usr/bin/python,${PYTHON_CMD},' \
39
	@${REINPLACE_CMD} -e 's|/usr/bin/python|${PYTHON_CMD}|' \
36
		${WRKSRC}/*.py
40
		${WRKSRC}/*.py
37
	@(cd ${WRKSRC} && ${RM} *.py.bak)
41
	@${FIND} ${WRKSRC} -name "*.bak" -delete
38
42
39
do-install:
43
do-install:
40
# Scripts
41
	${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin
44
	${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin
42
43
# Executable
44
	${MKDIR} ${DATADIR}
45
	${MKDIR} ${DATADIR}
45
	${INSTALL_SCRIPT} ${WRKSRC}/*.py ${DATADIR}
46
	${INSTALL_SCRIPT} ${WRKSRC}/*.py ${DATADIR}
46
47
47
# Data
48
.for d in fonts levels textures
48
.  for d in fonts levels textures
49
	@(cd ${WRKSRC} && ${COPYTREE_SHARE} ${d} ${DATADIR})
49
	@(cd ${WRKSRC} && ${COPYTREE_SHARE} ${d} ${DATADIR})
50
.  endfor
50
.endfor
51
51
52
# Pixmaps
52
	${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/${PORTNAME}.png ${PREFIX}/share/pixmaps
53
	${INSTALL_DATA} ${WRKSRC}/textures/menu.png ${PREFIX}/share/pixmaps/${PORTNAME}.png
54
53
55
# Documentation
56
.if ${PORT_OPTIONS:MDOCS}
54
.if ${PORT_OPTIONS:MDOCS}
57
	${MKDIR} ${DOCSDIR}
55
	${MKDIR} ${DOCSDIR}
58
	${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
56
	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
59
.endif
57
.endif
60
58
61
.include <bsd.port.mk>
59
.include <bsd.port.mk>
(-)./distinfo (-2 / +4 lines)
Lines 1-2 Link Here
1
SHA256 (nelly-1.0.tar.gz) = a62a959259645cf849275498d19e71348f08ec92f490f2f902697dbefff04620
1
SHA256 (nelly/nelly-1.0.tar.gz) = a62a959259645cf849275498d19e71348f08ec92f490f2f902697dbefff04620
2
SIZE (nelly-1.0.tar.gz) = 516647
2
SIZE (nelly/nelly-1.0.tar.gz) = 516647
3
SHA256 (nelly/nelly.png) = 39278ddea84ead2580ad5e9747f007fce0822b853ba5e5a94e6a649ecf2a56cb
4
SIZE (nelly/nelly.png) = 2599
(-)./files/nelly.in (-2 / +4 lines)
Lines 1-5 Link Here
1
#!/bin/sh
1
#!/bin/sh
2
#
2
#
3
echo "Nelly's Rooftop Garden: Starting up..."
3
# $FreeBSD$
4
#
5
4
cd "%%DATADIR%%"
6
cd "%%DATADIR%%"
5
./nelly.py
7
exec /usr/bin/env python ./nelly.py
(-)./pkg-plist (+64 lines)
Line 0 Link Here
1
bin/nelly
2
%%DATADIR%%/collide.py
3
%%DATADIR%%/font.py
4
%%DATADIR%%/fonts/babelfish.ttf
5
%%DATADIR%%/levels/level01.lvl
6
%%DATADIR%%/levels/level02.lvl
7
%%DATADIR%%/levels/level03.lvl
8
%%DATADIR%%/levels/level04.lvl
9
%%DATADIR%%/levels/level05.lvl
10
%%DATADIR%%/levels/level06.lvl
11
%%DATADIR%%/levels/level07.lvl
12
%%DATADIR%%/levels/level08.lvl
13
%%DATADIR%%/levels/level09.lvl
14
%%DATADIR%%/levels/level10.lvl
15
%%DATADIR%%/levels/level11.lvl
16
%%DATADIR%%/levels/level12.lvl
17
%%DATADIR%%/levels/level13.lvl
18
%%DATADIR%%/levels/level14.lvl
19
%%DATADIR%%/levels/level15.lvl
20
%%DATADIR%%/nelly.py
21
%%DATADIR%%/res.py
22
%%DATADIR%%/textures/brick.jpg
23
%%DATADIR%%/textures/dialog.png
24
%%DATADIR%%/textures/dialog_ok.png
25
%%DATADIR%%/textures/drip.png
26
%%DATADIR%%/textures/flower.png
27
%%DATADIR%%/textures/frame.png
28
%%DATADIR%%/textures/hotplate.png
29
%%DATADIR%%/textures/kettle.png
30
%%DATADIR%%/textures/left.png
31
%%DATADIR%%/textures/loadback.png
32
%%DATADIR%%/textures/loadframe.png
33
%%DATADIR%%/textures/loadframeback.png
34
%%DATADIR%%/textures/menu.png
35
%%DATADIR%%/textures/metal.png
36
%%DATADIR%%/textures/move_handle.png
37
%%DATADIR%%/textures/new.png
38
%%DATADIR%%/textures/plant_seg.png
39
%%DATADIR%%/textures/pot.png
40
%%DATADIR%%/textures/right.png
41
%%DATADIR%%/textures/rot_handle.png
42
%%DATADIR%%/textures/save.png
43
%%DATADIR%%/textures/spin_down.png
44
%%DATADIR%%/textures/spin_up.png
45
%%DATADIR%%/textures/steam.png
46
%%DATADIR%%/textures/tool_active.png
47
%%DATADIR%%/textures/tool_hotplate.png
48
%%DATADIR%%/textures/tool_kettle.png
49
%%DATADIR%%/textures/tool_lines.png
50
%%DATADIR%%/textures/tool_metal.png
51
%%DATADIR%%/textures/tool_plant.png
52
%%DATADIR%%/textures/tool_wood.png
53
%%DATADIR%%/textures/toold_hotplate.png
54
%%DATADIR%%/textures/toold_kettle.png
55
%%DATADIR%%/textures/toold_lines.png
56
%%DATADIR%%/textures/toold_metal.png
57
%%DATADIR%%/textures/toold_plant.png
58
%%DATADIR%%/textures/toold_wood.png
59
%%DATADIR%%/textures/wood.png
60
share/pixmaps/nelly.png
61
@dirrm %%DATADIR%%/textures
62
@dirrm %%DATADIR%%/levels
63
@dirrm %%DATADIR%%/fonts
64
@dirrm %%DATADIR%%

Return to bug 173345