diff options
author | Alistair Bush <ali_bush@gentoo.org> | 2009-08-27 21:49:04 +0000 |
---|---|---|
committer | Alistair Bush <ali_bush@gentoo.org> | 2009-08-27 21:49:04 +0000 |
commit | a9064aa3d8b2ef1065812f7f75e731b76da624fd (patch) | |
tree | 281f4c61b0a5d008250fec4a7684171f7e9437c4 /eclass/java-vm-2.eclass | |
parent | Automated update of use.local.desc (diff) | |
download | historical-a9064aa3d8b2ef1065812f7f75e731b76da624fd.tar.gz historical-a9064aa3d8b2ef1065812f7f75e731b76da624fd.tar.bz2 historical-a9064aa3d8b2ef1065812f7f75e731b76da624fd.zip |
Suuport for multi-provider virtuals and build only vms
Diffstat (limited to 'eclass/java-vm-2.eclass')
-rw-r--r-- | eclass/java-vm-2.eclass | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/eclass/java-vm-2.eclass b/eclass/java-vm-2.eclass index 37fdfa991533..503973c2f335 100644 --- a/eclass/java-vm-2.eclass +++ b/eclass/java-vm-2.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/java-vm-2.eclass,v 1.27 2009/04/17 22:50:41 caster Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/java-vm-2.eclass,v 1.28 2009/08/27 21:49:04 ali_bush Exp $ # ----------------------------------------------------------------------------- # @eclass-begin @@ -24,6 +24,7 @@ export WANT_JAVA_CONFIG=2 JAVA_VM_CONFIG_DIR="/usr/share/java-config-2/vm" JAVA_VM_DIR="/usr/lib/jvm" +JAVA_VM_BUILD_ONLY="${JAVA_VM_BUILD_ONLY:-FALSE}" EXPORT_FUNCTIONS pkg_setup pkg_postinst pkg_prerm pkg_postrm @@ -134,7 +135,10 @@ set_java_env() { < ${source_env_file} \ > ${env_file} || die "sed failed" - echo "VMHANDLE=\"${VMHANDLE}\"" >> ${env_file} + ( + echo "VMHANDLE=\"${VMHANDLE}\"" + echo "BUILD_ONLY=\"${JAVA_VM_BUILD_ONLY}\"" + ) >> ${env_file} [[ -n ${JAVA_PROVIDE} ]] && echo "PROVIDES=\"${JAVA_PROVIDE}\"" >> ${env_file} |