/[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.5 - (hide annotations) (download)
Thu Feb 5 00:32:39 2009 UTC (5 years, 6 months ago) by betelgeuse
Branch: MAIN
Changes since 1.4: +2 -2 lines
Raise java-config version pulled in to a version with virtuals related fixes.

1 ali_bush 1.1 # Copyright 1999-2007 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 betelgeuse 1.5 # $Header: /var/cvsroot/gentoo-x86/eclass/java-virtuals-2.eclass,v 1.4 2007/12/29 13:34:30 betelgeuse 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.3 } > "${JAVA_PKG_VIRTUAL_PROVIDER}"
43 ali_bush 1.1 }

  ViewVC Help
Powered by ViewVC 1.1.20