aboutsummaryrefslogtreecommitdiff
path: root/java/linux-sun-jdk16
diff options
context:
space:
mode:
authorGreg Lewis <glewis@FreeBSD.org>2013-02-02 18:13:14 +0000
committerGreg Lewis <glewis@FreeBSD.org>2013-02-02 18:13:14 +0000
commit554d209b2f411ddd740e4effb9f93963dd29de94 (patch)
treeba444a062f8b2d959601e258fa8760d1002cb090 /java/linux-sun-jdk16
parent4242ff1e340e10461dd2c0ab9d2fca6d161ec74b (diff)
downloadports-554d209b2f411ddd740e4effb9f93963dd29de94.tar.gz
ports-554d209b2f411ddd740e4effb9f93963dd29de94.zip
. Update to 6u39.
. Cope with the version of the demos distfile not being the same as the version of the main JDK distfile. . Update to OptionsNG.
Notes
Notes: svn path=/head/; revision=311439
Diffstat (limited to 'java/linux-sun-jdk16')
-rw-r--r--java/linux-sun-jdk16/Makefile32
-rw-r--r--java/linux-sun-jdk16/distinfo4
2 files changed, 26 insertions, 10 deletions
diff --git a/java/linux-sun-jdk16/Makefile b/java/linux-sun-jdk16/Makefile
index c2d448e25a80..036b1df3b6fd 100644
--- a/java/linux-sun-jdk16/Makefile
+++ b/java/linux-sun-jdk16/Makefile
@@ -14,7 +14,9 @@ COMMENT= Sun Java Development Kit 1.6 for Linux
EXTRACT_DEPENDS=${LINUX_BASE_PORT}
RUN_DEPENDS= javavm:${PORTSDIR}/java/javavmwrapper
-OPTIONS= DEMO "Install demos and samples" on
+OPTIONS_DEFINE= DEMO
+DEMO_DESC= Install demos and samples
+OPTIONS_DEFAULT=DEMO
NO_CDROM= License does not allow distribution with fee
RESTRICTED= Redistribution of repackaged binaries not permitted
@@ -28,7 +30,7 @@ NO_BUILD= yes
USE_LINUX= yes
USE_LINUX_APPS= xorglibs
JDK_VERSION= 1.6.0
-JDK_REVISION= 38
+JDK_REVISION= 39
DL_JDK_VERSION= ${JDK_VERSION}_${JDK_REVISION}
ONLY_FOR_ARCHS= i386 amd64
DOWNLOAD_URL?= http://www.oracle.com/technetwork/java/javase/downloads/index.html
@@ -42,11 +44,19 @@ UNPACK_CMD= ${WRKSRC}/bin/unpack200
IGNORE?=You must manually fetch the J2SE SDK self-extracting file for the Linux platform (${DISTNAME}${EXTRACT_SUFX}) from ${DOWNLOAD_URL}, place it in ${DISTDIR} and then run make again
.endif
-.if defined(WITH_DEMO)
-.if !exists(${DISTDIR}/${DISTNAME}-demos.tar.gz) && !defined(PACKAGE_BUILDING)
-IGNORE?=You must manually fetch the J2SE demos and samples for the Linux platform (${DISTNAME}-demos.tar.gz) from ${DOWNLOAD_URL}, place it in ${DISTDIR} and then run make again
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MDEMO}
+#DEMO_UPDATE_VERSION= ${JDK_UPDATE_VERSION}
+DEMO_UPDATE_VERSION= 38
+#DEMO_DISTNAME= ${DISTNAME}-demos
+DEMO_DISTNAME= jdk-6u${DEMO_UPDATE_VERSION}-linux-i586-demos
+#DEMO_WRKSRC= ${WRKSRC}
+DEMO_WRKSRC= ${WRKDIR}/jdk${JDK_VERSION}_${DEMO_UPDATE_VERSION}
+.if !exists(${DISTDIR}/${DEMO_DISTNAME}.tar.gz) && !defined(PACKAGE_BUILDING)
+IGNORE?=You must manually fetch the J2SE demos and samples for the Linux platform (${DEMO_DISTNAME}.tar.gz) from ${DOWNLOAD_URL}, place it in ${DISTDIR} and then run make again
.endif
-DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${DISTNAME}-demos.tar.gz
+DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${DEMO_DISTNAME}.tar.gz
PLIST_SUB+= DEMO=""
.else
PLIST_SUB+= DEMO="@comment "
@@ -64,8 +74,14 @@ do-extract:
.for i in ${PACKED_JARS}
@${UNPACK_CMD} -r ${WRKSRC}/${i}.pack ${WRKSRC}/${i}.jar
.endfor
-.if defined(WITH_DEMO)
- @${TAR} -x -f ${DISTDIR}/${DISTNAME}-demos.tar.gz -C ${WRKDIR}
+.if ${PORT_OPTIONS:MDEMO}
+ @${TAR} -x -f ${DISTDIR}/${DEMO_DISTNAME}.tar.gz -C ${WRKDIR}
+.endif
+
+.if ${PORT_OPTIONS:MDEMO} && ${DEMO_WRKSRC} != ${WRKSRC}
+post-extract:
+ @${MV} ${DEMO_WRKSRC}/demo ${WRKSRC}/
+ @${MV} ${DEMO_WRKSRC}/sample ${WRKSRC}/
.endif
post-patch:
diff --git a/java/linux-sun-jdk16/distinfo b/java/linux-sun-jdk16/distinfo
index 4bd3691b5867..544568da7b99 100644
--- a/java/linux-sun-jdk16/distinfo
+++ b/java/linux-sun-jdk16/distinfo
@@ -1,4 +1,4 @@
-SHA256 (jdk-6u38-linux-i586.bin) = 34b698c3f27f961c092cd982843a890fccf1ce1f9928c7e53333527dd60a63b0
-SIZE (jdk-6u38-linux-i586.bin) = 71771782
+SHA256 (jdk-6u39-linux-i586.bin) = 98211a71eef47f9e73a57b32995ca4b698d12b4282c90ffff8c533fa8b96d103
+SIZE (jdk-6u39-linux-i586.bin) = 71756435
SHA256 (jdk-6u38-linux-i586-demos.tar.gz) = cb69d792495c554db2de171893cf5eac936a4ffb11491d30e4a282ba4c64e08a
SIZE (jdk-6u38-linux-i586-demos.tar.gz) = 12073550