Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 Mar 2013 05:16:35 GMT
From:      "r4721@tormail.org" <r4721@tormail.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/177493: [patch] change games/minecraft-client to use openjdk7
Message-ID:  <201303300516.r2U5GZcD040390@red.freebsd.org>
Resent-Message-ID: <201303300520.r2U5K4Tj043738@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         177493
>Category:       ports
>Synopsis:       [patch] change games/minecraft-client to use openjdk7
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Mar 30 05:20:01 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     r4721@tormail.org
>Release:        
>Organization:
>Environment:
>Description:
the java/openjdk7 port has recently had a patch committed that will enable minecraft-client to work with openjdk7 (we must use os.name=Linux but with BSD filesystem accesses). now that this is present, we can use openjdk7 for minecraft-client which brings improved performance and fixes JVM crashes that frequently occurred with minecraft under openjdk6. update port version to 1.5.1 while here. (you must be running the latest version of java/openjdk7 port (>= openjdk-7.17.02_2 for this to function correctly.)
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

Index: games/minecraft-client/Makefile
===================================================================
--- games/minecraft-client/Makefile	(revision 315587)
+++ games/minecraft-client/Makefile	(working copy)
@@ -2,8 +2,8 @@
 # $FreeBSD$
 
 PORTNAME=	minecraft-client
-PORTVERSION=	1.4.6
-PORTREVISION=	1
+PORTVERSION=	1.5.1
+PORTREVISION=	0
 CATEGORIES=	games java
 MASTER_SITES=	http://s3.amazonaws.com/MinecraftDownload/launcher/:minecraft \
 		http://media-mcw.cursecdn.com/c/c5/:icon
@@ -23,7 +23,7 @@
 WRKSRC=		${WRKDIR}
 NO_BUILD=	yes
 USE_JAVA=	yes
-JAVA_VERSION=	1.6
+JAVA_VERSION=	1.7
 DESKTOP_ENTRIES="Minecraft" \
 		"Block building game" \
 		"${PREFIX}/share/pixmaps/minecraft-client.png" \
@@ -74,6 +74,7 @@
 	${ECHO_CMD} "CP=\"\$${CP}:${JAVAJARDIR}/jutils/jutils.jar\""        >> ${WRKDIR}/minecraft-client
 	${ECHO_CMD} "JAVA_IP4=\"-Djava.net.preferIPv4Stack=true\""          >> ${WRKDIR}/minecraft-client
 	${ECHO_CMD} "JAVA_OPT=\"-Dos.name=Linux\""                          >> ${WRKDIR}/minecraft-client
+	${ECHO_CMD} "JAVA_OPT=\"\$${JAVA_OPT} -Djava.nio.file.spi.DefaultFileSystemProvider=sun.nio.fs.BsdFileSystemProvider\"" >> ${WRKDIR}/minecraft-client
 	${ECHO_CMD} "JAVA_OPT=\"\$${JAVA_OPT} -Xmx1024M -Xms512M\""         >> ${WRKDIR}/minecraft-client
 	${ECHO_CMD} "JAVA_OPT=\"\$${JAVA_OPT} \$${JAVA_IP4}\""              >> ${WRKDIR}/minecraft-client
 	${ECHO_CMD} "JAVA_OPT=\"\$${JAVA_OPT} -classpath \$${CP}\""         >> ${WRKDIR}/minecraft-client
Index: games/minecraft-client/distinfo
===================================================================
--- games/minecraft-client/distinfo	(revision 315587)
+++ games/minecraft-client/distinfo	(working copy)
@@ -1,4 +1,4 @@
-SHA256 (minecraft-client/1.4.6/minecraft.jar) = 92db974aa759a3f17f3cd61550fa5010e335c57dd813dad9e39b9cc013420a49
-SIZE (minecraft-client/1.4.6/minecraft.jar) = 81938
-SHA256 (minecraft-client/1.4.6/Grass.png) = 438c0f63e379e92af1b5b2e06cc5e3365ee272810af65ebc102304bce4fa8c4b
-SIZE (minecraft-client/1.4.6/Grass.png) = 12586
+SHA256 (minecraft-client/1.5.1/minecraft.jar) = 92db974aa759a3f17f3cd61550fa5010e335c57dd813dad9e39b9cc013420a49
+SIZE (minecraft-client/1.5.1/minecraft.jar) = 81938
+SHA256 (minecraft-client/1.5.1/Grass.png) = 438c0f63e379e92af1b5b2e06cc5e3365ee272810af65ebc102304bce4fa8c4b
+SIZE (minecraft-client/1.5.1/Grass.png) = 12586


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201303300516.r2U5GZcD040390>