/[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.9 - (show annotations) (download)
Wed Jul 18 19:13:23 2012 UTC (23 months, 3 weeks ago) by sera
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +17 -8 lines
Convert to eclass-manpages.

1 # Copyright 1999-2012 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.8 2012/01/13 09:59:10 sera Exp $
4
5 # @ECLASS: java-virtuals-2.eclass
6 # @MAINTAINER:
7 # java@gentoo.org
8 # @AUTHOR:
9 # Original Author: Alistair John Bush <ali_bush@gentoo.org>
10 # @BLURB: Java virtuals eclass
11 # @DESCRIPTION:
12 # To provide a default (and only) src_install function for ebuilds in the
13 # java-virtuals category.
14
15 inherit java-utils-2
16
17 DEPEND=">=dev-java/java-config-2.1.6"
18 RDEPEND="${DEPEND}"
19
20 S="${WORKDIR}"
21
22 EXPORT_FUNCTIONS src_install
23
24 # @FUNCTION: java-virtuals-2_src_install
25 # @DESCRIPTION:
26 # default src_install
27
28 java-virtuals-2_src_install() {
29 java-virtuals-2_do_write
30 }
31
32 # @FUNCTION: java-pkg_do_virtuals_write
33 # @INTERNAL
34 # @DESCRIPTION:
35 # Writes the virtual env file out to disk.
36
37 java-virtuals-2_do_write() {
38 java-pkg_init_paths_
39
40 dodir "${JAVA_PKG_VIRTUALS_PATH}"
41 {
42 if [[ -n "${JAVA_VIRTUAL_PROVIDES}" ]]; then
43 echo "PROVIDERS=\"${JAVA_VIRTUAL_PROVIDES}\""
44 fi
45
46 if [[ -n "${JAVA_VIRTUAL_VM}" ]]; then
47 echo "VM=\"${JAVA_VIRTUAL_VM}\""
48 fi
49
50 if [[ -n "${JAVA_VIRTUAL_VM_CLASSPATH}" ]]; then
51 echo "VM_CLASSPATH=\"${JAVA_VIRTUAL_VM_CLASSPATH}\""
52 fi
53 echo "MULTI_PROVIDER=\"${JAVA_VIRTUAL_MULTI=FALSE}\""
54 } > "${JAVA_PKG_VIRTUAL_PROVIDER}"
55 }

  ViewVC Help
Powered by ViewVC 1.1.20