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

1 sera 1.8 # Copyright 1999-2012 Gentoo Foundation
2 ali_bush 1.1 # Distributed under the terms of the GNU General Public License v2
3 sera 1.9 # $Header: /var/cvsroot/gentoo-x86/eclass/java-virtuals-2.eclass,v 1.8 2012/01/13 09:59:10 sera Exp $
4 ali_bush 1.1
5 sera 1.9 # @ECLASS: java-virtuals-2.eclass
6     # @MAINTAINER:
7     # java@gentoo.org
8     # @AUTHOR:
9 ali_bush 1.1 # Original Author: Alistair John Bush <ali_bush@gentoo.org>
10 sera 1.9 # @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 ali_bush 1.1
15     inherit java-utils-2
16    
17 betelgeuse 1.5 DEPEND=">=dev-java/java-config-2.1.6"
18 betelgeuse 1.4 RDEPEND="${DEPEND}"
19    
20 sera 1.8 S="${WORKDIR}"
21    
22 ali_bush 1.1 EXPORT_FUNCTIONS src_install
23    
24 sera 1.9 # @FUNCTION: java-virtuals-2_src_install
25     # @DESCRIPTION:
26     # default src_install
27    
28 ali_bush 1.1 java-virtuals-2_src_install() {
29     java-virtuals-2_do_write
30     }
31    
32 sera 1.9 # @FUNCTION: java-pkg_do_virtuals_write
33     # @INTERNAL
34     # @DESCRIPTION:
35 ali_bush 1.1 # Writes the virtual env file out to disk.
36 sera 1.9
37 ali_bush 1.1 java-virtuals-2_do_write() {
38     java-pkg_init_paths_
39    
40     dodir "${JAVA_PKG_VIRTUALS_PATH}"
41 ali_bush 1.3 {
42 ali_bush 1.2 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 ali_bush 1.6 echo "MULTI_PROVIDER=\"${JAVA_VIRTUAL_MULTI=FALSE}\""
54 ali_bush 1.3 } > "${JAVA_PKG_VIRTUAL_PROVIDER}"
55 ali_bush 1.1 }

  ViewVC Help
Powered by ViewVC 1.1.20