diff options
author | Joshua Nichols <nichoj@gentoo.org> | 2006-07-03 17:18:14 +0000 |
---|---|---|
committer | Joshua Nichols <nichoj@gentoo.org> | 2006-07-03 17:18:14 +0000 |
commit | 5e8c7d3206bc0ab5af1790b89d828b6763392235 (patch) | |
tree | fbc852d178db1f783642c264f5a647df31c91a7a /dev-java/java-config | |
parent | Rename lastfm.protocol file to amaroklasfm.protocol to avoid collisions with ... (diff) | |
download | historical-5e8c7d3206bc0ab5af1790b89d828b6763392235.tar.gz historical-5e8c7d3206bc0ab5af1790b89d828b6763392235.tar.bz2 historical-5e8c7d3206bc0ab5af1790b89d828b6763392235.zip |
Fix to java-nsplugin.eselect so you can set the plugin using the list index.
Package-Manager: portage-2.1.1_pre1
Diffstat (limited to 'dev-java/java-config')
-rw-r--r-- | dev-java/java-config/ChangeLog | 9 | ||||
-rw-r--r-- | dev-java/java-config/files/digest-java-config-2.0.26-r2 | 3 | ||||
-rw-r--r-- | dev-java/java-config/files/java-config-2.0.26-set_number.patch | 15 | ||||
-rw-r--r-- | dev-java/java-config/java-config-2.0.26-r2.ebuild | 50 |
4 files changed, 76 insertions, 1 deletions
diff --git a/dev-java/java-config/ChangeLog b/dev-java/java-config/ChangeLog index 4a416bccd4f0..91c51e60b785 100644 --- a/dev-java/java-config/ChangeLog +++ b/dev-java/java-config/ChangeLog @@ -1,6 +1,13 @@ # 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.94 2006/07/03 16:29:14 nichoj Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-java/java-config/ChangeLog,v 1.95 2006/07/03 17:18:14 nichoj Exp $ + +*java-config-2.0.26-r2 (03 Jul 2006) + + 03 Jul 2006; Joshua Nichols <nichoj@gentoo.org> + +files/java-config-2.0.26-set_number.patch, -java-config-2.0.26-r1.ebuild, + +java-config-2.0.26-r2.ebuild: + Fix to java-nsplugin.eselect so you can set the plugin using the list index. *java-config-2.0.26-r1 (03 Jul 2006) diff --git a/dev-java/java-config/files/digest-java-config-2.0.26-r2 b/dev-java/java-config/files/digest-java-config-2.0.26-r2 new file mode 100644 index 000000000000..56c0f4186bc9 --- /dev/null +++ b/dev-java/java-config/files/digest-java-config-2.0.26-r2 @@ -0,0 +1,3 @@ +MD5 60221d65176ceb2e2ef4edf7c1724ad0 java-config-2.0.26.tar.bz2 15298 +RMD160 9f6724af6c6d274c02171aab992e9165e5abc738 java-config-2.0.26.tar.bz2 15298 +SHA256 03e828568b5f965a59a2db57597d1b45e14ba8e89acca65d3082fb7ee4ef578c java-config-2.0.26.tar.bz2 15298 diff --git a/dev-java/java-config/files/java-config-2.0.26-set_number.patch b/dev-java/java-config/files/java-config-2.0.26-set_number.patch new file mode 100644 index 000000000000..68bdeb4fe294 --- /dev/null +++ b/dev-java/java-config/files/java-config-2.0.26-set_number.patch @@ -0,0 +1,15 @@ +Index: src/eselect/java-nsplugin.eselect +=================================================================== +--- src/eselect/java-nsplugin.eselect (revision 2422) ++++ src/eselect/java-nsplugin.eselect (working copy) +@@ -45,6 +45,10 @@ + do_set() { + # TODO check for # of args + local vm=${1} ++ if is_number "${vm}" ; then ++ local targets=( $(get_targets) ) ++ vm=${targets[$(( ${vm} - 1 ))]} ++ fi + local plugin="${PLUGINS_HOME}/${vm}-javaplugin.so" + + if [[ ! -f ${plugin} ]]; then diff --git a/dev-java/java-config/java-config-2.0.26-r2.ebuild b/dev-java/java-config/java-config-2.0.26-r2.ebuild new file mode 100644 index 000000000000..61047303e97d --- /dev/null +++ b/dev-java/java-config/java-config-2.0.26-r2.ebuild @@ -0,0 +1,50 @@ +# 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.26-r2.ebuild,v 1.1 2006/07/03 17:18:14 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" +IUSE="" + +DEPEND="virtual/python" +RDEPEND="virtual/python + dev-java/java-config-wrapper" + +PATCHES="${FILESDIR}/${P}-nsplugin.patch ${FILESDIR}/${P}-set_number.patch" + +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 +} + +pkg_postinst() { + python_mod_optimize /usr/share/java-config-2/pym/java_config +} + +pkg_postrm() { + python_mod_cleanup /usr/share/java-config-2/pym/java_config +} + +pkg_postinst() { + 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" +} |