summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2006-07-22 19:05:41 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2006-07-22 19:05:41 +0000
commit396a54a1b8a111531b6d6bb4e8533b4884395cc9 (patch)
tree61ec6dbe4b646d7b33461a5ad108dd965c49fff3 /dev-java/diablo-jdk
parentstable on ppc (Bug #141406) (diff)
downloadgentoo-2-396a54a1b8a111531b6d6bb4e8533b4884395cc9.tar.gz
gentoo-2-396a54a1b8a111531b6d6bb4e8533b4884395cc9.tar.bz2
gentoo-2-396a54a1b8a111531b6d6bb4e8533b4884395cc9.zip
Initial import, ebuild from Timothy Redaelli in bug #141380.
(Portage version: 2.1.1_pre3-r3)
Diffstat (limited to 'dev-java/diablo-jdk')
-rw-r--r--dev-java/diablo-jdk/ChangeLog10
-rw-r--r--dev-java/diablo-jdk/Manifest21
-rw-r--r--dev-java/diablo-jdk/diablo-jdk-1.5.0.07.00.ebuild146
-rw-r--r--dev-java/diablo-jdk/files/diablo-jdk.env17
-rw-r--r--dev-java/diablo-jdk/files/digest-diablo-jdk-1.5.0.07.006
-rw-r--r--dev-java/diablo-jdk/metadata.xml6
6 files changed, 206 insertions, 0 deletions
diff --git a/dev-java/diablo-jdk/ChangeLog b/dev-java/diablo-jdk/ChangeLog
new file mode 100644
index 000000000000..d3992e16860e
--- /dev/null
+++ b/dev-java/diablo-jdk/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for dev-java/diablo-jdk
+# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/diablo-jdk/ChangeLog,v 1.1 2006/07/22 19:05:41 flameeyes Exp $
+
+*diablo-jdk-1.5.0.07.00 (22 Jul 2006)
+
+ 22 Jul 2006; Diego Pettenò <flameeyes@gentoo.org> +files/diablo-jdk.env,
+ +metadata.xml, +diablo-jdk-1.5.0.07.00.ebuild:
+ Initial import, ebuild from Timothy Redaelli in bug #141380.
+
diff --git a/dev-java/diablo-jdk/Manifest b/dev-java/diablo-jdk/Manifest
new file mode 100644
index 000000000000..94c6e406eac5
--- /dev/null
+++ b/dev-java/diablo-jdk/Manifest
@@ -0,0 +1,21 @@
+AUX diablo-jdk.env 925 RMD160 6042c2849330d0a7b7ef87f2680209a27707a370 SHA1 d93a7e7bad03e089efdd9c549671825e96ba3d55 SHA256 9faf2bfbdec7fd92e6fc3509a22ae8ec9a3527d850f9763cef42575e0dec13fe
+MD5 9b9e4337c1fb2f73b1adad1db1e01325 files/diablo-jdk.env 925
+RMD160 6042c2849330d0a7b7ef87f2680209a27707a370 files/diablo-jdk.env 925
+SHA256 9faf2bfbdec7fd92e6fc3509a22ae8ec9a3527d850f9763cef42575e0dec13fe files/diablo-jdk.env 925
+DIST diablo-caffe-freebsd6-i386-1.5.0_07-b00.tar.bz2 54346328 RMD160 6a2153e40a104f7caf4ab817afa4ba012d0b55cf SHA1 d0b602d0084fb74c210072f16abaae1e816cb0be SHA256 cbd165dbc285907f9802b6a3a87014ddef1ef568ca2bd120273aa356efbc4429
+DIST jce_policy-1_5_0.zip 8826 RMD160 eb12d0333c3ddbbba57a0e825a6891a75ec485c0 SHA1 f0e887b91b4499142285633e65c5710c3a133a16 SHA256 4de78da737c6d66b74eb6caebf6bdb0648825a95e2909e815678a0d306bf6d8b
+EBUILD diablo-jdk-1.5.0.07.00.ebuild 4208 RMD160 25079058b903f8a9225310f9de4934a98c7517b2 SHA1 167cab7a1806674570de3286a9372a9e5b772e9a SHA256 548e08c0e84669b378cb2c740768876cf8b579d0b98b35a899b9873a11fda2a7
+MD5 d1b67745fabd630bbb850a7e452c698e diablo-jdk-1.5.0.07.00.ebuild 4208
+RMD160 25079058b903f8a9225310f9de4934a98c7517b2 diablo-jdk-1.5.0.07.00.ebuild 4208
+SHA256 548e08c0e84669b378cb2c740768876cf8b579d0b98b35a899b9873a11fda2a7 diablo-jdk-1.5.0.07.00.ebuild 4208
+MISC ChangeLog 348 RMD160 625f738e7ebceaecabea8e460a823c52cc6f2bc2 SHA1 04e7960b391f308beb9498f64f9f1103243f3397 SHA256 4955309343e5fcfa343d1153f92ba11cb8f51abec58493096f9e408c714a90cc
+MD5 b104deeab5336ff08f1d8d64b6b1a915 ChangeLog 348
+RMD160 625f738e7ebceaecabea8e460a823c52cc6f2bc2 ChangeLog 348
+SHA256 4955309343e5fcfa343d1153f92ba11cb8f51abec58493096f9e408c714a90cc ChangeLog 348
+MISC metadata.xml 174 RMD160 ca6c62aed497dda7f37566e87822ecf3d3837307 SHA1 0623170dc79b0b4246516ead7f3c8d7140ebea98 SHA256 a72a4c6c4f49cdb0a9d6077a5eebcb1f6e4e69fb31c201b45cf6fa50dab581f1
+MD5 ac2cc0c9a997d0165cf1db45e97681c9 metadata.xml 174
+RMD160 ca6c62aed497dda7f37566e87822ecf3d3837307 metadata.xml 174
+SHA256 a72a4c6c4f49cdb0a9d6077a5eebcb1f6e4e69fb31c201b45cf6fa50dab581f1 metadata.xml 174
+MD5 de73719e35ac239adc1d0adf920f3ff2 files/digest-diablo-jdk-1.5.0.07.00 563
+RMD160 e61ed3a2f622cdee75f37c8f4c8e2212fe597b2c files/digest-diablo-jdk-1.5.0.07.00 563
+SHA256 0e822aa6449f803a1a0989ad0abebbb64e8d99fbcc9d0d662e39ea3bac1e2b94 files/digest-diablo-jdk-1.5.0.07.00 563
diff --git a/dev-java/diablo-jdk/diablo-jdk-1.5.0.07.00.ebuild b/dev-java/diablo-jdk/diablo-jdk-1.5.0.07.00.ebuild
new file mode 100644
index 000000000000..f41a236a7199
--- /dev/null
+++ b/dev-java/diablo-jdk/diablo-jdk-1.5.0.07.00.ebuild
@@ -0,0 +1,146 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/diablo-jdk/diablo-jdk-1.5.0.07.00.ebuild,v 1.1 2006/07/22 19:05:41 flameeyes Exp $
+
+inherit java-vm-2 eutils versionator
+
+DESCRIPTION="Java Development Kit"
+HOMEPAGE="http://www.FreeBSDFoundation.org/downloads/java.shtml"
+MY_PV=$(replace_version_separator 3 '_')
+MY_PVL=$(get_version_component_range 1-3)
+
+javafile="diablo-caffe-freebsd6-i386-$(replace_version_separator 4 '-b' ${MY_PV}).tar.bz2"
+jcefile="jce_policy-$(replace_all_version_separators '_' ${MY_PVL}).zip"
+
+SRC_URI="$javafile
+ jce? ( $jcefile )"
+
+LICENSE="sun-bcla-java-vm"
+SLOT="0"
+KEYWORDS="-* ~x86-fbsd"
+RESTRICT="fetch nofetch"
+IUSE="X doc examples nsplugin jce"
+
+JAVA_VM_NO_GENERATION1=true
+
+DEPEND="jce? ( app-arch/unzip )"
+RDEPEND="X? ( || ( ( x11-libs/libICE
+ x11-libs/libSM
+ x11-libs/libX11
+ x11-libs/libXau
+ x11-libs/libXdmcp
+ x11-libs/libXext
+ x11-libs/libXi
+ x11-libs/libXp
+ x11-libs/libXt
+ x11-libs/libXtst
+ )
+ virtual/x11
+ )
+ )
+ =sys-freebsd/freebsd-lib-6*
+ =virtual/libstdc++-3.3*"
+
+JAVA_PROVIDE="jdbc-stdext jdbc-rowset"
+S="${WORKDIR}/diablo-jdk$(get_version_component_range 1-4 ${MY_PV})"
+
+pkg_nofetch() {
+ einfo "Please download ${javafile} from:"
+ einfo "${HOMEPAGE}"
+ einfo "and move it to ${DISTDIR}"
+
+ if use jce; then
+ echo
+ einfo "Also download ${jcefile} from:"
+ einfo "http://javashoplm.sun.com/ECom/docs/Welcome.jsp?StoreId=22&PartDetailId=jce_policy-${MY_PVL}-oth-JPR&SiteId=JSC&TransactionId=noreg"
+ einfo "Java(TM) Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files"
+ einfo "and move it to ${DISTDIR}"
+ fi
+}
+
+src_install() {
+ cd "${S}"
+ local dirs="bin include jre lib man"
+
+ dodir /opt/${P}
+
+ for i in $dirs ; do
+ cp -pPR $i "${D}"/opt/${P}/ || die "failed to build"
+ done
+
+ dodoc COPYRIGHT README.html
+ dohtml README.html
+
+ dodir /opt/${P}/share/
+
+ cp -pPR src.zip "${D}"/opt/${P}/share/
+
+ if use examples; then
+ cp -pPR demo "${D}"/opt/${P}/share/
+ cp -pRR sample "${D}"/opt/${P}/share/
+ fi
+
+ if use jce ; then
+ cd "${D}"/opt/${P}/jre/lib/security
+ unzip "${DISTDIR}"/${jcefile} || die "failed to unzip jce"
+ mv jce unlimited-jce
+ dodir /opt/${P}/jre/lib/security/strong-jce
+ mv "${D}"/opt/${P}/jre/lib/security/US_export_policy.jar "${D}"/opt/${P}/jre/lib/security/strong-jce
+ mv "${D}"/opt/${P}/jre/lib/security/local_policy.jar "${D}"/opt/${P}/jre/lib/security/strong-jce
+ dosym /opt/${P}/jre/lib/security/unlimited-jce/US_export_policy.jar /opt/${P}/jre/lib/security/
+ dosym /opt/${P}/jre/lib/security/unlimited-jce/local_policy.jar /opt/${P}/jre/lib/security/
+ fi
+
+ if use nsplugin; then
+ install_mozilla_plugin /opt/${P}/jre/plugin/i386/ns7/libjavaplugin_oji.so
+ fi
+
+ # Change libz.so.3 to libz.so.1
+ scanelf -qR -N libz.so.3 -F "#N" "${D}"/opt/${P}/ | \
+ while read i; do
+ if [[ $(strings "$i" | fgrep -c libz.so.3) -ne 1 ]]; then
+ export SANITY_CHECK_LIBZ_FAILED=1
+ break
+ fi
+ sed -i -e 's/libz\.so\.3/libz.so.1/g' "$i"
+ done
+ [[ "$SANITY_CHECK_LIBZ_FAILED" = "1" ]] && die "failed to change libz.so.3 to libz.so.1"
+
+
+ # create dir for system preferences
+ dodir /opt/${P}/jre/.systemPrefs
+ # Create files used as storage for system preferences.
+ touch "${D}"/opt/${P}/jre/.systemPrefs/.system.lock
+ chmod 644 "${D}"/opt/${P}/jre/.systemPrefs/.system.lock
+ touch "${D}"/opt/${P}/jre/.systemPrefs/.systemRootModFile
+ chmod 644 "${D}"/opt/${P}/jre/.systemPrefs/.systemRootModFile
+
+ # install control panel for Gnome/KDE
+ sed -e "s/INSTALL_DIR\/JRE_NAME_VERSION/\/opt\/${P}\/jre/" \
+ -e "s/\(Name=Java\)/\1 Control Panel/" \
+ "${D}"/opt/${P}/jre/plugin/desktop/sun_java.desktop > \
+ ${T}/sun_java.desktop
+
+ domenu ${T}/sun_java.desktop
+
+ set_java_env
+}
+
+pkg_postinst() {
+ # Set as default VM if none exists
+ java-vm-2_pkg_postinst
+
+ if ! use X; then
+ local xwarn="virtual/x11 and/or"
+ fi
+
+ echo
+ ewarn "Some parts of Sun's JRE require ${xwarn} virtual/lpr to be installed."
+ ewarn "Be careful which Java libraries you attempt to use."
+
+ echo
+ einfo " Be careful: ${P}'s Java compiler uses"
+ einfo " '-source 1.5' as default. Some keywords such as 'enum'"
+ einfo " are not valid identifiers any more in that mode,"
+ einfo " which can cause incompatibility with certain sources."
+}
diff --git a/dev-java/diablo-jdk/files/diablo-jdk.env b/dev-java/diablo-jdk/files/diablo-jdk.env
new file mode 100644
index 000000000000..bc905e7efb60
--- /dev/null
+++ b/dev-java/diablo-jdk/files/diablo-jdk.env
@@ -0,0 +1,17 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/diablo-jdk/files/diablo-jdk.env,v 1.1 2006/07/22 19:05:41 flameeyes Exp $
+
+VERSION="Sun JDK @PV@"
+JAVA_HOME=/opt/@P@
+JDK_HOME=/opt/@P@
+JAVAC=${JAVA_HOME}/bin/javac
+PATH="${JAVA_HOME}/bin:${JAVA_HOME}/jre/bin"
+ROOTPATH="${JAVA_HOME}/bin:${JAVA_HOME}/jre/bin"
+LDPATH="${JAVA_HOME}/jre/lib/@PLATFORM@/:${JAVA_HOME}/jre/lib/@PLATFORM@/native_threads/:${JAVA_HOME}/jre/lib/@PLATFORM@/xawt/:${JAVA_HOME}/jre/lib/@PLATFORM@/server/"
+MANPATH="/opt/@P@/man"
+PROVIDES_TYPE="JDK JRE"
+PROVIDES_VERSION="1.5"
+BOOTCLASSPATH="${JAVA_HOME}/jre/lib/rt.jar:${JAVA_HOME}/jre/lib/i18n.jar:${JAVA_HOME}/jre/lib/sunrsasign.jar:${JAVA_HOME}/jre/lib/jsse.jar:${JAVA_HOME}/jre/lib/jce.jar:${JAVA_HOME}/jre/lib/charsets.jar"
+GENERATION="2"
+ENV_VARS="JAVA_HOME JDK_HOME JAVAC PATH ROOTPATH LDPATH MANPATH"
diff --git a/dev-java/diablo-jdk/files/digest-diablo-jdk-1.5.0.07.00 b/dev-java/diablo-jdk/files/digest-diablo-jdk-1.5.0.07.00
new file mode 100644
index 000000000000..31c41a098544
--- /dev/null
+++ b/dev-java/diablo-jdk/files/digest-diablo-jdk-1.5.0.07.00
@@ -0,0 +1,6 @@
+MD5 6895c81a112dca63b29945543959cd29 diablo-caffe-freebsd6-i386-1.5.0_07-b00.tar.bz2 54346328
+RMD160 6a2153e40a104f7caf4ab817afa4ba012d0b55cf diablo-caffe-freebsd6-i386-1.5.0_07-b00.tar.bz2 54346328
+SHA256 cbd165dbc285907f9802b6a3a87014ddef1ef568ca2bd120273aa356efbc4429 diablo-caffe-freebsd6-i386-1.5.0_07-b00.tar.bz2 54346328
+MD5 169441bba1ca95e84e030e116f258d79 jce_policy-1_5_0.zip 8826
+RMD160 eb12d0333c3ddbbba57a0e825a6891a75ec485c0 jce_policy-1_5_0.zip 8826
+SHA256 4de78da737c6d66b74eb6caebf6bdb0648825a95e2909e815678a0d306bf6d8b jce_policy-1_5_0.zip 8826
diff --git a/dev-java/diablo-jdk/metadata.xml b/dev-java/diablo-jdk/metadata.xml
new file mode 100644
index 000000000000..b76e944d1884
--- /dev/null
+++ b/dev-java/diablo-jdk/metadata.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>bsd</herd>
+<herd>java</herd>
+</pkgmetadata>