summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorAlistair Bush <ali_bush@gentoo.org>2007-10-09 09:45:46 +0000
committerAlistair Bush <ali_bush@gentoo.org>2007-10-09 09:45:46 +0000
commite6c681dd772a94028a216404e2830765bca90749 (patch)
treeaef78b930b77ab1c827dc4899706764eceaf2958 /eclass
parentDrop old ebuilds. (diff)
downloadgentoo-2-e6c681dd772a94028a216404e2830765bca90749.tar.gz
gentoo-2-e6c681dd772a94028a216404e2830765bca90749.tar.bz2
gentoo-2-e6c681dd772a94028a216404e2830765bca90749.zip
Updating java-virtuals as per dberkholz's suggestions, thank you dberkholz
Diffstat (limited to 'eclass')
-rw-r--r--eclass/java-virtuals-2.eclass29
1 files changed, 14 insertions, 15 deletions
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 <ali_bush@gentoo.org>
# 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}"
}