svn commit: r329983 - in head/games/robocode: . files

Rusmir Dusko nemysis at FreeBSD.org
Thu Oct 10 12:10:25 UTC 2013


Author: nemysis
Date: Thu Oct 10 12:10:24 2013
New Revision: 329983
URL: http://svnweb.freebsd.org/changeset/ports/329983

Log:
  - Update to 1.8.3.0
  - Change maintainer email to @FreeBSD.org
  - Add USE_DOS2UNIX
  - Add DOCS Option
  - Support STAGEDIR
  
  Approved by:	wg/pawel (mentors)

Added:
  head/games/robocode/files/robocode-sh.in   (contents, props changed)
Deleted:
  head/games/robocode/files/robocode.sh.in
Modified:
  head/games/robocode/Makefile
  head/games/robocode/distinfo
  head/games/robocode/pkg-plist

Modified: head/games/robocode/Makefile
==============================================================================
--- head/games/robocode/Makefile	Thu Oct 10 11:49:18 2013	(r329982)
+++ head/games/robocode/Makefile	Thu Oct 10 12:10:24 2013	(r329983)
@@ -2,7 +2,7 @@
 # $FreeBSD$
 
 PORTNAME=	robocode
-PORTVERSION=	1.8.2.0
+PORTVERSION=	1.8.3.0
 CATEGORIES=	games java
 MASTER_SITES=	SF \
 		SF/nemysisfreebsdp/:icons
@@ -11,7 +11,7 @@ DISTFILES=	${PORTNAME}-${DISTVERSION}-se
 DIST_SUBDIR=	java
 EXTRACT_ONLY=	${PORTNAME}-${DISTVERSION}-setup.jar
 
-MAINTAINER=	nemysis at gmx.ch
+MAINTAINER=	nemysis at FreeBSD.org
 COMMENT=	Game for learning Java[tm] programming language
 
 LICENSE=	EPL
@@ -23,42 +23,37 @@ JAVA_EXTRACT=	yes
 JAVA_RUN=	yes
 NO_WRKSUBDIR=	yes
 NO_BUILD=	yes
+USE_DOS2UNIX=	*.html *.MF *.battle *.java *.txt *.properties *.tpt
 
 PORTDOCS=	ReadMe.html ReadMe.txt versions.md
 DATADIR=	${JAVASHAREDIR}/${PORTNAME}
 
 PLIST_SUB=	PORTVERSION=${PORTVERSION}
 
-SUB_FILES=	${PORTNAME}.sh pkg-message
+SUB_FILES=	${PORTNAME}-sh pkg-message
 
 DESKTOP_ENTRIES="Robocode" "${COMMENT}" "${PORTNAME}" \
 		"${PORTNAME}" "Game;StrategyGame;" false
 
-NO_STAGE=	yes
-.include <bsd.port.options.mk>
+OPTIONS_DEFINE=	DOCS
 
 do-install:
-	${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.sh ${PREFIX}/bin/${PORTNAME}
+	${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}-sh ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
 
 .for d in battles compilers javadoc libs license roborumble robots templates
-	@(cd ${WRKSRC} && ${COPYTREE_SHARE} ${d} ${DATADIR})
+	@(cd ${WRKSRC} && ${COPYTREE_SHARE} ${d} ${STAGEDIR}${DATADIR})
 .endfor
 
 .for d in *.ico *.sh versions.md
-	@(${INSTALL_DATA} ${WRKSRC}/${d} ${DATADIR})
+	@(${INSTALL_DATA} ${WRKSRC}/${d} ${STAGEDIR}${DATADIR})
 .endfor
 
-post-install:
-	${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png ${PREFIX}/share/pixmaps
-	${MKDIR} -m a+rwx ${DATADIR}/config
-
-.if ${PORT_OPTIONS:MDOCS}
-	@${MKDIR} ${DOCSDIR}
-	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
-.endif
-
-	@${ECHO_CMD}
-	@${CAT} ${PKGMESSAGE}
-	@${ECHO_CMD}
+	${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png ${STAGEDIR}${PREFIX}/share/pixmaps/
+	@${MKDIR} ${STAGEDIR}${DATADIR}/config
+	@(cd ${STAGEDIR}${DATADIR} && ${CHMOD} -R 775 config roborumble robots)
+	@${CHMOD} +x ${STAGEDIR}${DATADIR}/*.sh
+
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
 
 .include <bsd.port.mk>

Modified: head/games/robocode/distinfo
==============================================================================
--- head/games/robocode/distinfo	Thu Oct 10 11:49:18 2013	(r329982)
+++ head/games/robocode/distinfo	Thu Oct 10 12:10:24 2013	(r329983)
@@ -1,4 +1,4 @@
-SHA256 (java/robocode-1.8.2.0-setup.jar) = e14406c02c56a87a1a19258dd484f055a57b2027bd5550912cb73751504865dd
-SIZE (java/robocode-1.8.2.0-setup.jar) = 5267442
+SHA256 (java/robocode-1.8.3.0-setup.jar) = b6e6bdafec55f924e2b49edb37e85906773b7cf9fc900b837eac2cfcd4b7cd51
+SIZE (java/robocode-1.8.3.0-setup.jar) = 5317001
 SHA256 (java/robocode.png) = f828749aacde1f1ee58a0f838e1e0e60bf2950153e3891687ff8a1734d3fcfa7
 SIZE (java/robocode.png) = 1823

Added: head/games/robocode/files/robocode-sh.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/robocode/files/robocode-sh.in	Thu Oct 10 12:10:24 2013	(r329983)
@@ -0,0 +1,9 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+
+export JAVA_VERSION="%%JAVA_VERSION%%"
+
+cd "%%DATADIR%%" && exec "%%LOCALBASE%%/bin/java" -Djava.ext.dirs="%%DATADIR%%" \
+-Djava.ext.dirs="%%DATADIR%%" -cp libs/robocode.jar robocode.Robocode "${@}"

Modified: head/games/robocode/pkg-plist
==============================================================================
--- head/games/robocode/pkg-plist	Thu Oct 10 11:49:18 2013	(r329982)
+++ head/games/robocode/pkg-plist	Thu Oct 10 12:10:24 2013	(r329983)
@@ -253,9 +253,9 @@ share/pixmaps/robocode.png
 @dirrm %%DATADIR%%/templates
 @dirrm %%DATADIR%%/robots/sampleteam
 @dirrm %%DATADIR%%/robots/sampleex
- at dirrm %%DATADIR%%/robots/sample
- at dirrm %%DATADIR%%/robots
- at dirrm %%DATADIR%%/roborumble
+ at dirrmtry %%DATADIR%%/robots/sample
+ at dirrmtry %%DATADIR%%/robots
+ at dirrmtry %%DATADIR%%/roborumble
 @dirrm %%DATADIR%%/license
 @dirrm %%DATADIR%%/libs
 @dirrm %%DATADIR%%/javadoc/robocode/util


More information about the svn-ports-head mailing list