/[gentoo-x86]/eclass/java-virtuals-2.eclass
Gentoo

Contents of /eclass/java-virtuals-2.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Thu Aug 27 21:49:04 2009 UTC (5 years ago) by ali_bush
Branch: MAIN
Changes since 1.5: +2 -1 lines
Suuport for multi-provider virtuals and build only vms

1 # Copyright 1999-2007 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/eclass/java-virtuals-2.eclass,v 1.5 2009/02/05 00:32:39 betelgeuse Exp $
4
5 # Original Author: Alistair John Bush <ali_bush@gentoo.org>
6 # Purpose: To provide a default (and only) src_install function
7 # for ebuilds in the java-virtuals category.
8
9 inherit java-utils-2
10
11 DEPEND=">=dev-java/java-config-2.1.6"
12 RDEPEND="${DEPEND}"
13
14 EXPORT_FUNCTIONS src_install
15
16 java-virtuals-2_src_install() {
17 java-virtuals-2_do_write
18 }
19
20 # ------------------------------------------------------------------------------
21 # @internal-function java-pkg_do_virtuals_write
22 #
23 # Writes the virtual env file out to disk.
24 #
25 # ------------------------------------------------------------------------------
26 java-virtuals-2_do_write() {
27 java-pkg_init_paths_
28
29 dodir "${JAVA_PKG_VIRTUALS_PATH}"
30 {
31 if [[ -n "${JAVA_VIRTUAL_PROVIDES}" ]]; then
32 echo "PROVIDERS=\"${JAVA_VIRTUAL_PROVIDES}\""
33 fi
34
35 if [[ -n "${JAVA_VIRTUAL_VM}" ]]; then
36 echo "VM=\"${JAVA_VIRTUAL_VM}\""
37 fi
38
39 if [[ -n "${JAVA_VIRTUAL_VM_CLASSPATH}" ]]; then
40 echo "VM_CLASSPATH=\"${JAVA_VIRTUAL_VM_CLASSPATH}\""
41 fi
42 echo "MULTI_PROVIDER=\"${JAVA_VIRTUAL_MULTI=FALSE}\""
43 } > "${JAVA_PKG_VIRTUAL_PROVIDER}"
44 }

  ViewVC Help
Powered by ViewVC 1.1.20