summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2006-07-21 00:25:06 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2006-07-21 00:25:06 +0000
commit2b2c983085dcd8ee8516197d1b9271154376dbf1 (patch)
tree313e2cc9c1108e39be2d8c5c8424c31d1ac136b8 /dev-java/diablo-jre-bin
parentFixed to use dolauncher. (diff)
downloadhistorical-2b2c983085dcd8ee8516197d1b9271154376dbf1.tar.gz
historical-2b2c983085dcd8ee8516197d1b9271154376dbf1.tar.bz2
historical-2b2c983085dcd8ee8516197d1b9271154376dbf1.zip
Initial import, ebuild from Timothy Redaelli in bug #141071.
Package-Manager: portage-2.1.1_pre3-r1
Diffstat (limited to 'dev-java/diablo-jre-bin')
-rw-r--r--dev-java/diablo-jre-bin/ChangeLog11
-rw-r--r--dev-java/diablo-jre-bin/diablo-jre-bin-1.5.0.07.00.ebuild111
-rw-r--r--dev-java/diablo-jre-bin/files/diablo-jre-bin.env16
-rw-r--r--dev-java/diablo-jre-bin/files/digest-diablo-jre-bin-1.5.0.07.003
-rw-r--r--dev-java/diablo-jre-bin/metadata.xml6
5 files changed, 147 insertions, 0 deletions
diff --git a/dev-java/diablo-jre-bin/ChangeLog b/dev-java/diablo-jre-bin/ChangeLog
new file mode 100644
index 000000000000..32049eb5cfb9
--- /dev/null
+++ b/dev-java/diablo-jre-bin/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for dev-java/diablo-jre-bin
+# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/diablo-jre-bin/ChangeLog,v 1.1 2006/07/21 00:25:06 flameeyes Exp $
+
+*diablo-jre-bin-1.5.0.07.00 (21 Jul 2006)
+
+ 21 Jul 2006; Diego Pettenò <flameeyes@gentoo.org>
+ +files/diablo-jre-bin.env, +metadata.xml,
+ +diablo-jre-bin-1.5.0.07.00.ebuild:
+ Initial import, ebuild from Timothy Redaelli in bug #141071.
+
diff --git a/dev-java/diablo-jre-bin/diablo-jre-bin-1.5.0.07.00.ebuild b/dev-java/diablo-jre-bin/diablo-jre-bin-1.5.0.07.00.ebuild
new file mode 100644
index 000000000000..9012a41c7438
--- /dev/null
+++ b/dev-java/diablo-jre-bin/diablo-jre-bin-1.5.0.07.00.ebuild
@@ -0,0 +1,111 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/diablo-jre-bin/diablo-jre-bin-1.5.0.07.00.ebuild,v 1.1 2006/07/21 00:25:06 flameeyes Exp $
+
+inherit java-vm-2 eutils versionator
+
+DESCRIPTION="Java Runtime Environment"
+HOMEPAGE="http://www.FreeBSDFoundation.org/downloads/java.shtml"
+MY_PV=$(replace_version_separator 3 '_')
+MY_PVA=$(replace_version_separator 4 '-b' ${MY_PV})
+
+SRC_URI="diablo-latte-freebsd6-i386-${MY_PVA}.tar.bz2"
+
+LICENSE="sun-bcla-java-vm"
+SLOT="0"
+KEYWORDS="-* ~x86-fbsd"
+RESTRICT="fetch stricter"
+IUSE="X nsplugin"
+
+JAVA_VM_NO_GENERATION1=true
+
+DEPEND=""
+RDEPEND="X? ( || ( (
+ x11-libs/libX11
+ 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*"
+
+S="${WORKDIR}/diablo-jre$(get_version_component_range 1-4 ${MY_PV})"
+
+pkg_nofetch() {
+ einfo "Please download ${SRC_URI} from:"
+ einfo "${HOMEPAGE}"
+ einfo "and move it to ${DISTDIR}"
+}
+
+src_install() {
+ cd "${S}"
+ local dirs="bin lib man plugin javaws"
+
+ dodir /opt/${P}
+
+ for i in $dirs ; do
+ cp -pPR $i ${D}/opt/${P}/ || die "failed to build"
+ done
+
+ dodoc COPYRIGHT README
+ dohtml Welcome.html
+
+ if use nsplugin; then
+ install_mozilla_plugin /opt/${P}/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}/.systemPrefs
+
+ # install control panel for Gnome/KDE
+ sed -e "s/INSTALL_DIR\/JRE_NAME_VERSION/\/opt\/${P}/" \
+ -e "s/\(Name=Java\)/\1 Control Panel/" \
+ ${D}/opt/${P}/plugin/desktop/sun_java.desktop > \
+ ${T}/sun_java-jre.desktop
+
+ domenu ${T}/sun_java-jre.desktop
+
+ set_java_env
+}
+
+pkg_postinst() {
+ # Create files used as storage for system preferences.
+ PREFS_LOCATION=/opt/${P}/
+ mkdir -p "${PREFS_LOCATION}"/.systemPrefs
+ if [ ! -f "${PREFS_LOCATION}"/.systemPrefs/.system.lock ] ; then
+ touch "${PREFS_LOCATION}"/.systemPrefs/.system.lock
+ chmod 644 "${PREFS_LOCATION}"/.systemPrefs/.system.lock
+ fi
+ if [ ! -f "${PREFS_LOCATION}"/.systemPrefs/.systemRootModFile ] ; then
+ touch "${PREFS_LOCATION}"/.systemPrefs/.systemRootModFile
+ chmod 644 "${PREFS_LOCATION}"/.systemPrefs/.systemRootModFile
+ fi
+
+ # 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."
+}
diff --git a/dev-java/diablo-jre-bin/files/diablo-jre-bin.env b/dev-java/diablo-jre-bin/files/diablo-jre-bin.env
new file mode 100644
index 000000000000..22db29fab55c
--- /dev/null
+++ b/dev-java/diablo-jre-bin/files/diablo-jre-bin.env
@@ -0,0 +1,16 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/diablo-jre-bin/files/diablo-jre-bin.env,v 1.1 2006/07/21 00:25:06 flameeyes Exp $
+
+VERSION="Sun JRE @PV@"
+JAVA_HOME=/opt/@P@
+JRE_HOME=/opt/@P@
+PATH="${JAVA_HOME}/bin:${JAVA_HOME}/javaws"
+ROOTPATH="${JAVA_HOME}/bin:${JAVA_HOME}/javaws"
+LDPATH="${JAVA_HOME}/lib/@PLATFORM@/:${JAVA_HOME}/lib/@PLATFORM@/native_threads/:${JAVA_HOME}/lib/@PLATFORM@/xawt/:${JAVA_HOME}/lib/@PLATFORM@/server/"
+MANPATH="/opt/@P@/man"
+PROVIDES_TYPE="JRE"
+PROVIDES_VERSION="1.5"
+BOOTCLASSPATH="${JAVA_HOME}/lib/rt.jar:${JAVA_HOME}/lib/i18n.jar:${JAVA_HOME}/lib/sunrsasign.jar:${JAVA_HOME}/lib/jsse.jar:${JAVA_HOME}/lib/jce.jar:${JAVA_HOME}/lib/charsets.jar"
+GENERATION="2"
+ENV_VARS="JAVA_HOME JRE_HOME PATH ROOTPATH LDPATH MANPATH"
diff --git a/dev-java/diablo-jre-bin/files/digest-diablo-jre-bin-1.5.0.07.00 b/dev-java/diablo-jre-bin/files/digest-diablo-jre-bin-1.5.0.07.00
new file mode 100644
index 000000000000..162a9479d6a8
--- /dev/null
+++ b/dev-java/diablo-jre-bin/files/digest-diablo-jre-bin-1.5.0.07.00
@@ -0,0 +1,3 @@
+MD5 a58da6ee530362596226ccb47f837195 diablo-latte-freebsd6-i386-1.5.0_07-b00.tar.bz2 23099246
+RMD160 4b6e6abbe1566c8b5d418f6c6d8780c0a5b6fa36 diablo-latte-freebsd6-i386-1.5.0_07-b00.tar.bz2 23099246
+SHA256 f83d5c7bf7e7346e06dbe45f0953c88882516b76b9047b5e1bd90a71d5598ba5 diablo-latte-freebsd6-i386-1.5.0_07-b00.tar.bz2 23099246
diff --git a/dev-java/diablo-jre-bin/metadata.xml b/dev-java/diablo-jre-bin/metadata.xml
new file mode 100644
index 000000000000..b76e944d1884
--- /dev/null
+++ b/dev-java/diablo-jre-bin/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>