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

Collapse All | Expand All

(-)./Makefile (-17 / +40 lines)
Lines 2-44 Link Here
2
# $FreeBSD: head/games/robocode/Makefile 307016 2012-11-05 16:12:25Z bdrewery $
2
# $FreeBSD: head/games/robocode/Makefile 307016 2012-11-05 16:12:25Z bdrewery $
3
3
4
PORTNAME=	robocode
4
PORTNAME=	robocode
5
PORTVERSION=	1.7.4.2
5
PORTVERSION=	1.7.4.4
6
CATEGORIES=	games java
6
CATEGORIES=	games java
7
MASTER_SITES=	SF
7
MASTER_SITES=	SF
8
DISTNAME=	${PORTNAME}-${PORTVERSION}-setup
8
DISTNAME=	${PORTNAME}-${PORTVERSION}-setup
9
EXTRACT_SUFX=	.jar
9
EXTRACT_SUFX=	.jar
10
10
11
MAINTAINER=	ports@FreeBSD.org
11
MAINTAINER=	nemysis@gmx.ch
12
COMMENT=	A game for learning Java[tm] programming language
12
COMMENT=	Game for learning Java[tm] programming language
13
13
14
LICENSE=	EPL
14
LICENSE=	EPL
15
15
16
EXTRACT_DEPENDS=winicontoppm:${PORTSDIR}/graphics/netpbm
17
18
USE_ZIP=	yes
16
USE_JAVA=	yes
19
USE_JAVA=	yes
17
JAVA_VERSION=	1.5+
20
JAVA_VERSION=	1.5+
18
JAVA_EXTRACT=	yes
21
JAVA_EXTRACT=	yes
19
JAVA_RUN=	yes
22
JAVA_RUN=	yes
20
21
DATADIR=	${JAVASHAREDIR}/${PORTNAME}
22
23
USE_ZIP=	yes
24
NO_WRKSUBDIR=	yes
23
NO_WRKSUBDIR=	yes
25
NO_BUILD=	yes
24
NO_BUILD=	yes
26
25
27
INSTFILES=	battles javadoc license robocode.ico \
26
PORTDOCS=	ReadMe.html ReadMe.txt versions.md
28
		libs robots templates versions.txt
27
DATADIR=	${JAVASHAREDIR}/${PORTNAME}
28
29
PLIST_SUB=	PORTVERSION=${PORTVERSION}
29
PLIST_SUB=	PORTVERSION=${PORTVERSION}
30
30
31
SUB_FILES=	${PORTNAME}.sh
31
SUB_FILES=	${PORTNAME}.sh pkg-message
32
33
DESKTOP_ENTRIES="Robocode" "${COMMENT}" "${PORTNAME}" \
34
		"${PORTNAME}" "Game;StrategyGame;" ${FALSE}
35
36
.include <bsd.port.options.mk>
37
38
post-extract:
39
	@(cd ${WRKSRC} && \
40
		${LOCALBASE}/bin/winicontoppm -bestqual robocode.ico | \
41
		${LOCALBASE}/bin/pnmtopng > ${PORTNAME}.png)
32
42
33
do-install:
43
do-install:
34
	@cd ${WRKSRC} && \
44
	${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.sh ${PREFIX}/bin/${PORTNAME}
35
		${FIND} ${INSTFILES} -type d -exec ${MKDIR} ${DATADIR}/{} \;
45
36
	@cd ${WRKSRC} && \
46
.for d in battles compilers javadoc libs license roborumble robots templates
37
		${FIND} ${INSTFILES} -type f -exec ${INSTALL_DATA} {} ${DATADIR}/{} \;
47
	@(cd ${WRKSRC} && ${COPYTREE_SHARE} ${d} ${DATADIR})
38
	@${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.sh ${PREFIX}/bin/${PORTNAME}
48
.endfor
49
50
.for d in *.ico *.sh versions.md
51
	@(${INSTALL_DATA} ${WRKSRC}/${d} ${DATADIR})
52
.endfor
39
53
40
post-install:
54
post-install:
41
	${MKDIR} -m a+rwx ${DATADIR}/compilers ${DATADIR}/config
55
	${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.png ${PREFIX}/share/pixmaps
42
	${CAT} pkg-message
56
	${MKDIR} -m a+rwx ${DATADIR}/config
57
58
.if ${PORT_OPTIONS:MDOCS}
59
	${MKDIR} ${DOCSDIR}
60
	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
61
.endif
62
63
	@${ECHO_CMD}
64
	@${CAT} ${PKGMESSAGE}
65
	@${ECHO_CMD}
43
66
44
.include <bsd.port.mk>
67
.include <bsd.port.mk>
(-)./distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (robocode-1.7.4.2-setup.jar) = f6bbdc998254ad19bd8dd6967473716c9a0e26f101c1ff2601509899be4c71c8
1
SHA256 (robocode-1.7.4.4-setup.jar) = c972928e3f5c2e1cb2ef4ca044de8715d6cfa9ba2ab63164593a427b2dce783f
2
SIZE (robocode-1.7.4.2-setup.jar) = 5127560
2
SIZE (robocode-1.7.4.4-setup.jar) = 5187168
(-)./files/pkg-message.in (+18 lines)
Line 0 Link Here
1
==============================================================================
2
3
Robocode has been installed.
4
5
Robocode requires a java compiler. By default Robocode will look for
6
the IBM Jikes compiler.
7
8
You can override this in the Robocode compiler preferences menu:
9
10
    Robot -> Editor -> Compiler -> Options -> Preferences
11
12
13
After deinstallation, some files may stay in %%DATADIR%%,
14
you can delete them with
15
16
    /bin/rm -fr %%DATADIR%% 
17
18
==============================================================================
(-)./files/robocode.sh.in (-2 / +5 lines)
Lines 1-6 Link Here
1
#!/bin/sh
1
#!/bin/sh
2
#
2
#
3
# $FreeBSD: head/games/robocode/files/robocode.sh.in 300896 2012-07-14 13:54:48Z beat $
3
# $FreeBSD: head/games/robocode/files/robocode.sh.in 300896 2012-07-14 13:54:48Z beat $
4
#
5
6
export JAVA_VERSION="%%JAVA_VERSION%%"
4
7
5
cd "%%DATADIR%%"
8
cd "%%DATADIR%%" && exec "%%LOCALBASE%%/bin/java" \
6
JAVA_VERSION="%%JAVA_VERSION%%" "%%LOCALBASE%%/bin/java" -jar libs/robocode.jar "$@"
9
-Djava.ext.dirs="%%DATADIR%%" -jar "%%DATADIR%%/libs/robocode.jar" "${@}"
(-)./pkg-descr (-4 / +5 lines)
Lines 1-6 Link Here
1
Build the best. Destroy the rest. In Robocode, you'll program a robotic
1
Robocode is a programming game, where the goal is to develop a robot battle tank
2
battletank in Java[tm] for a fight to the finish. The game is designed to help
2
to battle against other tanks in Java or .NET. The robot battles are running in
3
you learn Java, and have fun doing it... from a simple 10 line robot to a very
3
real-time and on-screen.
4
sophisticated, intelligent robot that destroys the competition!
4
5
The motto of Robocode is: Build the best, destroy the rest!
5
6
6
WWW: http://robocode.sourceforge.net/
7
WWW: http://robocode.sourceforge.net/
(-)./pkg-message (-10 lines)
Lines 1-10 Link Here
1
2
	*****************************************************
3
	This port requires a java compiler.  By default, 
4
	robocode will look for the IBM Jikes compiler.
5
6
	You can override this in the robocode compiler
7
	preferences menu: 
8
9
	Robot -> Editor -> Compiler -> Options -> Preferences
10
	*****************************************************
(-)./pkg-plist (-6 / +17 lines)
Lines 1-6 Link Here
1
bin/robocode
1
bin/robocode
2
%%DATADIR%%/battles/intro.battle
2
%%DATADIR%%/battles/intro.battle
3
%%DATADIR%%/battles/sample.battle
3
%%DATADIR%%/battles/sample.battle
4
%%DATADIR%%/compilers/CompilerTest.java
5
%%DATADIR%%/compilers/ecj.jar
4
%%DATADIR%%/javadoc/allclasses-frame.html
6
%%DATADIR%%/javadoc/allclasses-frame.html
5
%%DATADIR%%/javadoc/allclasses-noframe.html
7
%%DATADIR%%/javadoc/allclasses-noframe.html
6
%%DATADIR%%/javadoc/constant-values.html
8
%%DATADIR%%/javadoc/constant-values.html
Lines 8-19 Link Here
8
%%DATADIR%%/javadoc/help-doc.html
10
%%DATADIR%%/javadoc/help-doc.html
9
%%DATADIR%%/javadoc/index-all.html
11
%%DATADIR%%/javadoc/index-all.html
10
%%DATADIR%%/javadoc/index.html
12
%%DATADIR%%/javadoc/index.html
11
%%DATADIR%%/javadoc/options
12
%%DATADIR%%/javadoc/overview-frame.html
13
%%DATADIR%%/javadoc/overview-frame.html
13
%%DATADIR%%/javadoc/overview-summary.html
14
%%DATADIR%%/javadoc/overview-summary.html
14
%%DATADIR%%/javadoc/overview-tree.html
15
%%DATADIR%%/javadoc/overview-tree.html
15
%%DATADIR%%/javadoc/package-list
16
%%DATADIR%%/javadoc/package-list
16
%%DATADIR%%/javadoc/packages
17
%%DATADIR%%/javadoc/resources/inherit.gif
17
%%DATADIR%%/javadoc/resources/inherit.gif
18
%%DATADIR%%/javadoc/robocode/AdvancedRobot.html
18
%%DATADIR%%/javadoc/robocode/AdvancedRobot.html
19
%%DATADIR%%/javadoc/robocode/BattleEndedEvent.html
19
%%DATADIR%%/javadoc/robocode/BattleEndedEvent.html
Lines 145-151 Link Here
145
%%DATADIR%%/javadoc/serialized-form.html
145
%%DATADIR%%/javadoc/serialized-form.html
146
%%DATADIR%%/javadoc/stylesheet.css
146
%%DATADIR%%/javadoc/stylesheet.css
147
%%DATADIR%%/libs/codesize-1.1.jar
147
%%DATADIR%%/libs/codesize-1.1.jar
148
%%DATADIR%%/libs/picocontainer-2.8.jar
148
%%DATADIR%%/libs/picocontainer-2.14.2.jar
149
%%DATADIR%%/libs/robocode.battle-%%PORTVERSION%%.jar
149
%%DATADIR%%/libs/robocode.battle-%%PORTVERSION%%.jar
150
%%DATADIR%%/libs/robocode.core-%%PORTVERSION%%.jar
150
%%DATADIR%%/libs/robocode.core-%%PORTVERSION%%.jar
151
%%DATADIR%%/libs/robocode.host-%%PORTVERSION%%.jar
151
%%DATADIR%%/libs/robocode.host-%%PORTVERSION%%.jar
Lines 156-162 Link Here
156
%%DATADIR%%/libs/robocode.ui.editor-%%PORTVERSION%%.jar
156
%%DATADIR%%/libs/robocode.ui.editor-%%PORTVERSION%%.jar
157
%%DATADIR%%/libs/roborumble.jar
157
%%DATADIR%%/libs/roborumble.jar
158
%%DATADIR%%/license/epl-v10.html
158
%%DATADIR%%/license/epl-v10.html
159
%%DATADIR%%/meleerumble.sh
159
%%DATADIR%%/robocode.ico
160
%%DATADIR%%/robocode.ico
161
%%DATADIR%%/robocode.sh
162
%%DATADIR%%/roborumble.ico
163
%%DATADIR%%/roborumble.sh
164
%%DATADIR%%/roborumble/meleerumble.txt
165
%%DATADIR%%/roborumble/roborumble.properties
166
%%DATADIR%%/roborumble/roborumble.txt
167
%%DATADIR%%/roborumble/teamrumble.txt
168
%%DATADIR%%/roborumble/twinduel.txt
160
%%DATADIR%%/robots/sample/Corners.class
169
%%DATADIR%%/robots/sample/Corners.class
161
%%DATADIR%%/robots/sample/Corners.java
170
%%DATADIR%%/robots/sample/Corners.java
162
%%DATADIR%%/robots/sample/Corners.properties
171
%%DATADIR%%/robots/sample/Corners.properties
Lines 234-248 Link Here
234
%%DATADIR%%/robots/sampleteam/Point.java
243
%%DATADIR%%/robots/sampleteam/Point.java
235
%%DATADIR%%/robots/sampleteam/RobotColors.class
244
%%DATADIR%%/robots/sampleteam/RobotColors.class
236
%%DATADIR%%/robots/sampleteam/RobotColors.java
245
%%DATADIR%%/robots/sampleteam/RobotColors.java
246
%%DATADIR%%/teamrumble.sh
237
%%DATADIR%%/templates/newjavafile.tpt
247
%%DATADIR%%/templates/newjavafile.tpt
238
%%DATADIR%%/templates/newjuniorrobot.tpt
248
%%DATADIR%%/templates/newjuniorrobot.tpt
239
%%DATADIR%%/templates/newrobot.tpt
249
%%DATADIR%%/templates/newrobot.tpt
240
%%DATADIR%%/versions.txt
250
%%DATADIR%%/twinduel.sh
251
%%DATADIR%%/versions.md
252
share/pixmaps/robocode.png
241
@dirrm %%DATADIR%%/templates
253
@dirrm %%DATADIR%%/templates
242
@dirrm %%DATADIR%%/robots/sampleteam
254
@dirrm %%DATADIR%%/robots/sampleteam
243
@dirrm %%DATADIR%%/robots/sampleex
255
@dirrm %%DATADIR%%/robots/sampleex
244
@dirrm %%DATADIR%%/robots/sample
256
@dirrm %%DATADIR%%/robots/sample
245
@dirrm %%DATADIR%%/robots
257
@dirrm %%DATADIR%%/robots
258
@dirrm %%DATADIR%%/roborumble
246
@dirrm %%DATADIR%%/license
259
@dirrm %%DATADIR%%/license
247
@dirrm %%DATADIR%%/libs
260
@dirrm %%DATADIR%%/libs
248
@dirrm %%DATADIR%%/javadoc/robocode/util
261
@dirrm %%DATADIR%%/javadoc/robocode/util
Lines 259-263 Link Here
259
@dirrm %%DATADIR%%/compilers
272
@dirrm %%DATADIR%%/compilers
260
@dirrm %%DATADIR%%/battles
273
@dirrm %%DATADIR%%/battles
261
@dirrm %%DATADIR%%
274
@dirrm %%DATADIR%%
262
@exec mkdir -p %D/%%DATADIR%%/config
263
@exec mkdir -p %D/%%DATADIR%%/compilers

Return to bug 173910