/[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.7 - (hide annotations) (download)
Tue Dec 27 17:55:12 2011 UTC (2 years, 11 months ago) by fauli
Branch: MAIN
Changes since 1.6: +2 -2 lines
Update copyright years in headers

1 fauli 1.7 # Copyright 1999-2011 Gentoo Foundation
2 ali_bush 1.1 # Distributed under the terms of the GNU General Public License v2
3 fauli 1.7 # $Header: /var/cvsroot/gentoo-x86/eclass/java-virtuals-2.eclass,v 1.6 2009/08/27 21:49:04 ali_bush Exp $
4 ali_bush 1.1
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 betelgeuse 1.5 DEPEND=">=dev-java/java-config-2.1.6"
12 betelgeuse 1.4 RDEPEND="${DEPEND}"
13    
14 ali_bush 1.1 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 ali_bush 1.3 {
31 ali_bush 1.2 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 ali_bush 1.6 echo "MULTI_PROVIDER=\"${JAVA_VIRTUAL_MULTI=FALSE}\""
43 ali_bush 1.3 } > "${JAVA_PKG_VIRTUAL_PROVIDER}"
44 ali_bush 1.1 }

  ViewVC Help
Powered by ViewVC 1.1.20