diff options
author | Diego Elio Pettenò <flameeyes@gentoo.org> | 2006-07-22 19:05:41 +0000 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@gentoo.org> | 2006-07-22 19:05:41 +0000 |
commit | d8022ae5b278df65e3df59efdd114670e3e45d01 (patch) | |
tree | 8a500f945c90b229131796fc0509f459eba613f4 /dev-java | |
parent | stable on ppc (Bug #141406) (diff) | |
download | historical-d8022ae5b278df65e3df59efdd114670e3e45d01.tar.gz historical-d8022ae5b278df65e3df59efdd114670e3e45d01.tar.bz2 historical-d8022ae5b278df65e3df59efdd114670e3e45d01.zip |
Initial import, ebuild from Timothy Redaelli in bug #141380.
Package-Manager: portage-2.1.1_pre3-r3
Diffstat (limited to 'dev-java')
-rw-r--r-- | dev-java/diablo-jdk/ChangeLog | 10 | ||||
-rw-r--r-- | dev-java/diablo-jdk/Manifest | 31 | ||||
-rw-r--r-- | dev-java/diablo-jdk/diablo-jdk-1.5.0.07.00.ebuild | 146 | ||||
-rw-r--r-- | dev-java/diablo-jdk/files/diablo-jdk.env | 17 | ||||
-rw-r--r-- | dev-java/diablo-jdk/files/digest-diablo-jdk-1.5.0.07.00 | 6 | ||||
-rw-r--r-- | dev-java/diablo-jdk/metadata.xml | 6 |
6 files changed, 216 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..06d354381fe8 --- /dev/null +++ b/dev-java/diablo-jdk/Manifest @@ -0,0 +1,31 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +AUX diablo-jdk.env 930 RMD160 d0b117249b855c48d81a39817d5d44419d6ffc89 SHA1 f479585ad13e0ddb8e4071a0f91098ad19a83caf SHA256 3a6144c35ebb155665a95883bb21bbbaad516f5c13fd4fd904bc189ecf29dd6b +MD5 fe8119d3a7bdd9c556f6c6c3add03d40 files/diablo-jdk.env 930 +RMD160 d0b117249b855c48d81a39817d5d44419d6ffc89 files/diablo-jdk.env 930 +SHA256 3a6144c35ebb155665a95883bb21bbbaad516f5c13fd4fd904bc189ecf29dd6b files/diablo-jdk.env 930 +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 4322 RMD160 26e5189bd486fe6b2240efbb56b82b3904fcea6b SHA1 5896f2d56a9390da1959666a56ef81bfad867eb4 SHA256 e8a83cb379e3f22e19db0adcb5f33adbc2e215cfc5377a70ce7d169653fc04fe +MD5 4867f32ecd515bdf5ddb4b8999e3cd3f diablo-jdk-1.5.0.07.00.ebuild 4322 +RMD160 26e5189bd486fe6b2240efbb56b82b3904fcea6b diablo-jdk-1.5.0.07.00.ebuild 4322 +SHA256 e8a83cb379e3f22e19db0adcb5f33adbc2e215cfc5377a70ce7d169653fc04fe diablo-jdk-1.5.0.07.00.ebuild 4322 +MISC ChangeLog 442 RMD160 ac4ca98044a93bdc1d0a02a85ab6bc63e47da0ed SHA1 ac82e2d20b0fced146431ed04aceabab6957834e SHA256 f8c7b39fc57062da87a76b4dafa94f8f104714d8c96dc7f2726dd13f7d0463f0 +MD5 7381b5e76f51c4fa2af97f35587b6da5 ChangeLog 442 +RMD160 ac4ca98044a93bdc1d0a02a85ab6bc63e47da0ed ChangeLog 442 +SHA256 f8c7b39fc57062da87a76b4dafa94f8f104714d8c96dc7f2726dd13f7d0463f0 ChangeLog 442 +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 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.4.4 (GNU/Linux) + +iD8DBQFEwncXAiZjviIA2XgRAhEoAKDE0nQBQ0Mw2PwE15nBiiOf9UqVsgCg7bn4 ++3uWF0ORnNVbfv0R0xkHKT0= +=3F1g +-----END PGP SIGNATURE----- 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> |