From e6c681dd772a94028a216404e2830765bca90749 Mon Sep 17 00:00:00 2001 From: Alistair Bush Date: Tue, 9 Oct 2007 09:45:46 +0000 Subject: Updating java-virtuals as per dberkholz's suggestions, thank you dberkholz --- eclass/java-virtuals-2.eclass | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) (limited to 'eclass') diff --git a/eclass/java-virtuals-2.eclass b/eclass/java-virtuals-2.eclass index 3913806715c1..d89b81c37089 100644 --- a/eclass/java-virtuals-2.eclass +++ b/eclass/java-virtuals-2.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/java-virtuals-2.eclass,v 1.1 2007/10/04 09:59:29 ali_bush Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/java-virtuals-2.eclass,v 1.2 2007/10/09 09:45:46 ali_bush Exp $ # Original Author: Alistair John Bush # Purpose: To provide a default (and only) src_install function @@ -24,18 +24,17 @@ java-virtuals-2_do_write() { java-pkg_init_paths_ dodir "${JAVA_PKG_VIRTUALS_PATH}" - if [[ -n "${JAVA_VIRTUAL_PROVIDES}" ]]; then - echo "PROVIDERS=\"${JAVA_VIRTUAL_PROVIDES}\"" \ - >> ${JAVA_PKG_VIRTUAL_PROVIDER} - fi - - if [[ -n "${JAVA_VIRTUAL_VM}" ]]; then - echo "VM=\"${JAVA_VIRTUAL_VM}\"" \ - >> ${JAVA_PKG_VIRTUAL_PROVIDER} - fi - - if [[ -n "${JAVA_VIRTUAL_VM_CLASSPATH}" ]]; then - echo "VM_CLASSPATH=\"${JAVA_VIRTUAL_VM_CLASSPATH}\"" \ - >> ${JAVA_PKG_VIRTUAL_PROVIDER} - fi + ( + if [[ -n "${JAVA_VIRTUAL_PROVIDES}" ]]; then + echo "PROVIDERS=\"${JAVA_VIRTUAL_PROVIDES}\"" + fi + + if [[ -n "${JAVA_VIRTUAL_VM}" ]]; then + echo "VM=\"${JAVA_VIRTUAL_VM}\"" + fi + + if [[ -n "${JAVA_VIRTUAL_VM_CLASSPATH}" ]]; then + echo "VM_CLASSPATH=\"${JAVA_VIRTUAL_VM_CLASSPATH}\"" + fi + ) > "${JAVA_PKG_VIRTUAL_PROVIDER}" } -- cgit v1.2.3-65-gdbad