Bug 152110 - [patch] games/robocode: update to latest version
Summary: [patch] games/robocode: update to latest version
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Po-Chuan Hsieh
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-10 14:20 UTC by Glen Barber
Modified: 2010-11-10 16:10 UTC (History)
0 users

See Also:


Attachments
file.diff (3.49 KB, patch)
2010-11-10 14:20 UTC, Glen Barber
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Glen Barber freebsd_committer freebsd_triage 2010-11-10 14:20:08 UTC
Update games/robocode: 1.7.2.1 -> 1.7.2.2

Tinderbox logs can be found here:

- http://www.glenbarber.us/tb/logs/8.0-FreeBSD/robocode-1.7.2.2.log
- http://www.glenbarber.us/tb/logs/7.3-FreeBSD/robocode-1.7.2.2.log
- http://www.glenbarber.us/tb/logs/6.4-FreeBSD/robocode-1.7.2.2.log

Fix: Patch attached with submission follows:
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2010-11-10 14:20:17 UTC
Responsible Changed
From-To: freebsd-ports-bugs->gjb

Submitter is maintainer and has GNATS access (via the GNATS Auto Assign 
Tool)
Comment 2 Glen Barber freebsd_committer freebsd_triage 2010-11-10 14:20:57 UTC
Responsible Changed
From-To: gjb->freebsd-ports-bugs

Not a ports committer.
Comment 3 Po-Chuan Hsieh freebsd_committer freebsd_triage 2010-11-10 15:01:15 UTC
Responsible Changed
From-To: freebsd-ports-bugs->sunpoet

I will take it.
Comment 4 Po-Chuan Hsieh freebsd_committer freebsd_triage 2010-11-10 15:40:04 UTC
Hi Glen,

  The patch works just fine.
  I've made minor fixes here, including:
  - Substitute robocode with ${PORTNAME} in Makefile
  - Substitute 1.7.2.2 (current version) with %%PORTVERSION%% in PLIST
  Full patch is attached.
  Do you agree with these?
  Thanks.

Regards,
sunpoet

--- robocode.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/games/robocode/Makefile,v
retrieving revision 1.38
diff -u -r1.38 Makefile
--- Makefile	14 Sep 2010 20:55:58 -0000	1.38
+++ Makefile	10 Nov 2010 15:29:33 -0000
@@ -6,7 +6,7 @@
 #
 
 PORTNAME=	robocode
-PORTVERSION=	1.7.2.1
+PORTVERSION=	1.7.2.2
 CATEGORIES=	games java
 MASTER_SITES=	SF
 DISTNAME=	${PORTNAME}-${PORTVERSION}-setup
@@ -30,15 +30,16 @@
 
 INSTFILES=	battles javadoc license robocode.ico \
 		libs robots templates versions.txt
+PLIST_SUB=	PORTVERSION=${PORTVERSION}
 
-SUB_FILES=	robocode.sh
+SUB_FILES=	${PORTNAME}.sh
 
 do-install:
 	@cd ${WRKSRC} && \
 		${FIND} ${INSTFILES} -type d -exec ${MKDIR} ${DATADIR}/{} \;
 	@cd ${WRKSRC} && \
 		${FIND} ${INSTFILES} -type f -exec ${INSTALL_DATA} {} ${DATADIR}/{} \;
-	@${INSTALL_SCRIPT} ${WRKDIR}/robocode.sh ${PREFIX}/bin/robocode
+	@${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.sh ${PREFIX}/bin/${PORTNAME}
 
 post-install:
 	${MKDIR} -m a+rwx ${DATADIR}/compilers ${DATADIR}/config
Index: distinfo
===================================================================
RCS file: /home/ncvs/ports/games/robocode/distinfo,v
retrieving revision 1.20
diff -u -r1.20 distinfo
--- distinfo	14 Sep 2010 20:55:58 -0000	1.20
+++ distinfo	10 Nov 2010 15:29:33 -0000
@@ -1,3 +1,2 @@
-MD5 (robocode-1.7.2.1-setup.jar) = 018751d20a0d0a5b3e2ef055a2804796
-SHA256 (robocode-1.7.2.1-setup.jar) = 30b8f592fa7ac3264987512c1b519f28adf63e6ab23c539b24cd4c20f956705b
-SIZE (robocode-1.7.2.1-setup.jar) = 4930449
+SHA256 (robocode-1.7.2.2-setup.jar) = 6ec4277307245e99cbfde4a2e4ad91ccb906829787d24d9264afc41b7e11fc3a
+SIZE (robocode-1.7.2.2-setup.jar) = 4963154
Index: pkg-plist
===================================================================
RCS file: /home/ncvs/ports/games/robocode/pkg-plist,v
retrieving revision 1.18
diff -u -r1.18 pkg-plist
--- pkg-plist	14 Sep 2010 20:55:58 -0000	1.18
+++ pkg-plist	10 Nov 2010 15:29:33 -0000
@@ -65,6 +65,10 @@
 %%DATADIR%%/javadoc/robocode/TeamRobot.html
 %%DATADIR%%/javadoc/robocode/TurnCompleteCondition.html
 %%DATADIR%%/javadoc/robocode/WinEvent.html
+%%DATADIR%%/javadoc/robocode/_AdvancedRadiansRobot.html
+%%DATADIR%%/javadoc/robocode/_AdvancedRobot.html
+%%DATADIR%%/javadoc/robocode/_Robot.html
+%%DATADIR%%/javadoc/robocode/_RobotBase.html
 %%DATADIR%%/javadoc/robocode/annotation/SafeStatic.html
 %%DATADIR%%/javadoc/robocode/annotation/package-frame.html
 %%DATADIR%%/javadoc/robocode/annotation/package-summary.html
@@ -142,14 +146,14 @@
 %%DATADIR%%/javadoc/stylesheet.css
 %%DATADIR%%/libs/codesize-1.1.jar
 %%DATADIR%%/libs/picocontainer-2.6.jar
-%%DATADIR%%/libs/robocode.battle-1.7.2.1.jar
-%%DATADIR%%/libs/robocode.core-1.7.2.1.jar
-%%DATADIR%%/libs/robocode.host-1.7.2.1.jar
+%%DATADIR%%/libs/robocode.battle-%%PORTVERSION%%.jar
+%%DATADIR%%/libs/robocode.core-%%PORTVERSION%%.jar
+%%DATADIR%%/libs/robocode.host-%%PORTVERSION%%.jar
 %%DATADIR%%/libs/robocode.jar
-%%DATADIR%%/libs/robocode.repository-1.7.2.1.jar
-%%DATADIR%%/libs/robocode.sound-1.7.2.1.jar
-%%DATADIR%%/libs/robocode.ui-1.7.2.1.jar
-%%DATADIR%%/libs/robocode.ui.editor-1.7.2.1.jar
+%%DATADIR%%/libs/robocode.repository-%%PORTVERSION%%.jar
+%%DATADIR%%/libs/robocode.sound-%%PORTVERSION%%.jar
+%%DATADIR%%/libs/robocode.ui-%%PORTVERSION%%.jar
+%%DATADIR%%/libs/robocode.ui.editor-%%PORTVERSION%%.jar
 %%DATADIR%%/libs/roborumble.jar
 %%DATADIR%%/license/epl-v10.html
 %%DATADIR%%/robocode.ico
@@ -165,6 +169,9 @@
 %%DATADIR%%/robots/sample/Interactive.class
 %%DATADIR%%/robots/sample/Interactive.java
 %%DATADIR%%/robots/sample/Interactive.properties
+%%DATADIR%%/robots/sample/Interactive_v2$Direction.class
+%%DATADIR%%/robots/sample/Interactive_v2.class
+%%DATADIR%%/robots/sample/Interactive_v2.java
 %%DATADIR%%/robots/sample/MyFirstJuniorRobot.class
 %%DATADIR%%/robots/sample/MyFirstJuniorRobot.java
 %%DATADIR%%/robots/sample/MyFirstJuniorRobot.properties
@@ -229,6 +236,7 @@
 %%DATADIR%%/robots/sampleteam/RobotColors.class
 %%DATADIR%%/robots/sampleteam/RobotColors.java
 %%DATADIR%%/templates/newjavafile.tpt
+%%DATADIR%%/templates/newjuniorrobot.tpt
 %%DATADIR%%/templates/newrobot.tpt
 %%DATADIR%%/versions.txt
 @dirrm %%DATADIR%%/templates
--- robocode.patch ends here ---

-- 
   Sunpoet Po-Chuan Hsieh <sunpoet at sunpoet.net> <sunpoet at FreeBSD.org>
           4096R/CC57E36B 8AD8 68F2 7D2B 0A10 7E9B 8CC0 DC44 247E CC57 E36B
	                     http://people.FreeBSD.org/~sunpoet/pgpkeys.txt
Comment 5 Glen Barber freebsd_committer freebsd_triage 2010-11-10 16:00:28 UTC
Hi,

Yes, I agree with these changes.  Thank you!

-- 
Glen Barber
Comment 6 dfilter service freebsd_committer freebsd_triage 2010-11-10 16:05:14 UTC
sunpoet     2010-11-10 16:05:02 UTC

  FreeBSD ports repository

  Modified files:
    games/robocode       Makefile distinfo pkg-plist 
  Log:
  - Update to 1.7.2.2
  
  Changes:        http://robocode.googlecode.com/svn/robocode/trunk/versions.txt
  PR:             ports/152110
  Submitted by:   gjb (maintainer)
  
  Revision  Changes    Path
  1.39      +4 -3      ports/games/robocode/Makefile
  1.21      +2 -3      ports/games/robocode/distinfo
  1.19      +15 -7     ports/games/robocode/pkg-plist
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 7 Po-Chuan Hsieh freebsd_committer freebsd_triage 2010-11-10 16:05:15 UTC
State Changed
From-To: open->closed

Committed. Thanks!