/[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.2 - (hide annotations) (download)
Tue Oct 9 09:45:46 2007 UTC (7 years, 2 months ago) by ali_bush
Branch: MAIN
Changes since 1.1: +14 -15 lines
Updating java-virtuals as per dberkholz's suggestions, thank you dberkholz

1 ali_bush 1.1 # Copyright 1999-2007 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 ali_bush 1.2 # $Header: /var/cvsroot/gentoo-x86/eclass/java-virtuals-2.eclass,v 1.1 2007/10/04 09:59:29 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     EXPORT_FUNCTIONS src_install
12    
13     java-virtuals-2_src_install() {
14     java-virtuals-2_do_write
15     }
16    
17     # ------------------------------------------------------------------------------
18     # @internal-function java-pkg_do_virtuals_write
19     #
20     # Writes the virtual env file out to disk.
21     #
22     # ------------------------------------------------------------------------------
23     java-virtuals-2_do_write() {
24     java-pkg_init_paths_
25    
26     dodir "${JAVA_PKG_VIRTUALS_PATH}"
27 ali_bush 1.2 (
28     if [[ -n "${JAVA_VIRTUAL_PROVIDES}" ]]; then
29     echo "PROVIDERS=\"${JAVA_VIRTUAL_PROVIDES}\""
30     fi
31    
32     if [[ -n "${JAVA_VIRTUAL_VM}" ]]; then
33     echo "VM=\"${JAVA_VIRTUAL_VM}\""
34     fi
35    
36     if [[ -n "${JAVA_VIRTUAL_VM_CLASSPATH}" ]]; then
37     echo "VM_CLASSPATH=\"${JAVA_VIRTUAL_VM_CLASSPATH}\""
38     fi
39     ) > "${JAVA_PKG_VIRTUAL_PROVIDER}"
40 ali_bush 1.1 }

  ViewVC Help
Powered by ViewVC 1.1.20