summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalph Sennhauser <sera@gentoo.org>2012-03-14 16:54:54 +0000
committerRalph Sennhauser <sera@gentoo.org>2012-03-14 16:54:54 +0000
commitc05c2ed9dbddbb2c793b4b0c60e2e36713ec3cb4 (patch)
treef0ace6e2509ba3c1ca77b45184b5197ae0a293d0 /dev-java/icedtea-web/icedtea-web-1.2.ebuild
parentVersion bumped. Fixed emacs and xemacs related issue, bug #406053. Added ruby... (diff)
downloadhistorical-c05c2ed9dbddbb2c793b4b0c60e2e36713ec3cb4.tar.gz
historical-c05c2ed9dbddbb2c793b4b0c60e2e36713ec3cb4.tar.bz2
historical-c05c2ed9dbddbb2c793b4b0c60e2e36713ec3cb4.zip
Use JAVA_PKG_WANT_BUILD_VM for selecting VM. Obsoletes handle migration code.
Package-Manager: portage-2.1.10.49/cvs/Linux x86_64
Diffstat (limited to 'dev-java/icedtea-web/icedtea-web-1.2.ebuild')
-rw-r--r--dev-java/icedtea-web/icedtea-web-1.2.ebuild25
1 files changed, 4 insertions, 21 deletions
diff --git a/dev-java/icedtea-web/icedtea-web-1.2.ebuild b/dev-java/icedtea-web/icedtea-web-1.2.ebuild
index 614615ad12b5..ef8a381a6271 100644
--- a/dev-java/icedtea-web/icedtea-web-1.2.ebuild
+++ b/dev-java/icedtea-web/icedtea-web-1.2.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/icedtea-web/icedtea-web-1.2.ebuild,v 1.1 2012/03/06 09:24:22 sera Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-java/icedtea-web/icedtea-web-1.2.ebuild,v 1.2 2012/03/14 16:54:54 sera Exp $
# Build written by Andrew John Hughes (ahughes@redhat.com)
EAPI="4"
@@ -26,28 +26,11 @@ DEPEND="${RDEPEND}
>=net-libs/xulrunner-1.9.1 ) )
test? ( >=dev-java/junit-4.8:4 )"
-# a bit of hack so the VM switching is triggered without causing dependency troubles
-JAVA_PKG_NV_DEPEND=">=virtual/jdk-1.6"
-JAVA_PKG_WANT_SOURCE="1.6"
-JAVA_PKG_WANT_TARGET="1.6"
-
pkg_setup() {
- [[ "${MERGE_TYPE}" == "binary" ]] && return # bug 258423
-
- # quite a hack since java-config does not provide a way for a package
- # to limit supported VM's for building and their preferred order
- if [[ -n "${JAVA_PKG_FORCE_VM}" ]]; then
- einfo "Honoring user-set JAVA_PKG_FORCE_VM"
- else
- # migration logic
- if [[ -L /usr/lib/jvm/icedtea${SLOT} ]]; then
- JAVA_PKG_FORCE_VM="icedtea${SLOT}"
- else
- JAVA_PKG_FORCE_VM="icedtea-${SLOT}"
- fi
- fi
+ JAVA_PKG_WANT_BUILD_VM="icedtea-6 icedtea6"
+ JAVA_PKG_WANT_SOURCE="1.6"
+ JAVA_PKG_WANT_TARGET="1.6"
- einfo "Forced vm ${JAVA_PKG_FORCE_VM}"
java-vm-2_pkg_setup
java-pkg-2_pkg_setup
}