summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Nichols <nichoj@gentoo.org>2006-08-25 02:13:17 +0000
committerJoshua Nichols <nichoj@gentoo.org>2006-08-25 02:13:17 +0000
commit847b1519095a73dd03cbff11521ebd8ad2d28058 (patch)
tree7c71388b5fdfc9ab0ebbc6c7a40d1215e3b5ee75 /dev-java
parentMigrated to new Java system by Caster. (diff)
downloadgentoo-2-847b1519095a73dd03cbff11521ebd8ad2d28058.tar.gz
gentoo-2-847b1519095a73dd03cbff11521ebd8ad2d28058.tar.bz2
gentoo-2-847b1519095a73dd03cbff11521ebd8ad2d28058.zip
Added missing profile.d file.
(Portage version: 2.1.1_pre5-r3)
Diffstat (limited to 'dev-java')
-rw-r--r--dev-java/java-config/ChangeLog8
-rw-r--r--dev-java/java-config/files/digest-java-config-2.0.27-r13
-rw-r--r--dev-java/java-config/files/java-config-2.profiled17
-rw-r--r--dev-java/java-config/java-config-2.0.27-r1.ebuild51
4 files changed, 78 insertions, 1 deletions
diff --git a/dev-java/java-config/ChangeLog b/dev-java/java-config/ChangeLog
index cb87ed108a99..fc0f2b79ddfb 100644
--- a/dev-java/java-config/ChangeLog
+++ b/dev-java/java-config/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-java/java-config
# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/java-config/ChangeLog,v 1.103 2006/08/25 00:35:18 nichoj Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-java/java-config/ChangeLog,v 1.104 2006/08/25 02:13:17 nichoj Exp $
+
+*java-config-2.0.27-r1 (25 Aug 2006)
+
+ 25 Aug 2006; Joshua Nichols <nichoj@gentoo.org>
+ +files/java-config-2.profiled, +java-config-2.0.27-r1.ebuild:
+ Added missing profile.d file.
*java-config-1.3.1-r1 (25 Aug 2006)
diff --git a/dev-java/java-config/files/digest-java-config-2.0.27-r1 b/dev-java/java-config/files/digest-java-config-2.0.27-r1
new file mode 100644
index 000000000000..6200959c4157
--- /dev/null
+++ b/dev-java/java-config/files/digest-java-config-2.0.27-r1
@@ -0,0 +1,3 @@
+MD5 a95fa1fcabce415f7144b7a1dd84d2b2 java-config-2.0.27.tar.bz2 15522
+RMD160 e830fda4b8ecfe6061207cada34d39083807f8f6 java-config-2.0.27.tar.bz2 15522
+SHA256 ff01124a0fd97a293f3f34d772c5280ffb6390f6e2f5d796b6d1b3728417133c java-config-2.0.27.tar.bz2 15522
diff --git a/dev-java/java-config/files/java-config-2.profiled b/dev-java/java-config/files/java-config-2.profiled
new file mode 100644
index 000000000000..1576def2b5c3
--- /dev/null
+++ b/dev-java/java-config/files/java-config-2.profiled
@@ -0,0 +1,17 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License, v2 or later
+# $Header: /var/cvsroot/gentoo-x86/dev-java/java-config/files/java-config-2.profiled,v 1.3 2006/08/25 02:13:17 nichoj Exp $
+
+# If we have a current-user-vm (and aren't root)... set it to JAVA_HOME
+gentoo_user_vm="${HOME}/.gentoo/java-config-2/current-user-vm"
+gentoo_system_vm="/etc/java-config-2/current-system-vm"
+
+if [[ ${UID} != 0 && -L ${gentoo_user_vm} ]]; then
+ export JAVA_HOME=${gentoo_user_vm}
+# Otherwise set to the current system vm
+elif [[ -L /etc/java-config-2/current-system-vm ]]; then
+ export JAVA_HOME=${gentoo_system_vm}
+fi
+export JDK_HOME=${JAVA_HOME}
+export JAVAC=${JDK_HOME}/bin/javac
+unset gentoo_user_vm gentoo_system_vm
diff --git a/dev-java/java-config/java-config-2.0.27-r1.ebuild b/dev-java/java-config/java-config-2.0.27-r1.ebuild
new file mode 100644
index 000000000000..1e722e88dc98
--- /dev/null
+++ b/dev-java/java-config/java-config-2.0.27-r1.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/java-config/java-config-2.0.27-r1.ebuild,v 1.1 2006/08/25 02:13:17 nichoj Exp $
+
+inherit base distutils eutils
+
+DESCRIPTION="Java environment configuration tool"
+HOMEPAGE="http://www.gentoo.org/proj/en/java/"
+SRC_URI="mirror://gentoo/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="2"
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
+IUSE=""
+
+DEPEND="virtual/python"
+RDEPEND="virtual/python
+ dev-java/java-config-wrapper"
+
+src_install() {
+ distutils_src_install
+
+ insinto /usr/share/java-config-2/config/
+ for i in alpha amd64 hppa ia64 ppc ppc64 sparc x86; do
+ if use ${i}; then
+ newins config/jdk-defaults-${i}.conf jdk-defaults.conf || die "arch config not found"
+ fi
+ done
+
+ for tool in $(< config/symlink-tools); do
+ dosym /usr/bin/run-java-tool /usr/bin/${tool}
+ done
+
+ # Install profile.d for setting JAVA_HOME
+ dodir /etc/profile.d
+ exeinto /etc/profile.d
+ newexe ${FILESDIR}/${PN}-${SLOT}.profiled ${PN}-${SLOT}.sh || die "newexe failed"
+}
+
+
+pkg_postrm() {
+ python_mod_cleanup /usr/share/java-config-2/pym/java_config
+}
+
+pkg_postinst() {
+ python_mod_optimize /usr/share/java-config-2/pym/java_config
+ einfo "The way Java is handled on Gentoo has been recently updated."
+ einfo "If you have not done so already, you should follow the"
+ einfo "instructions available at:"
+ einfo "http://www.gentoo.org/proj/en/java/java-upgrade.xml"
+}