/[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.8 - (hide annotations) (download)
Fri Jan 13 09:59:10 2012 UTC (2 years, 9 months ago) by sera
Branch: MAIN
Changes since 1.7: +4 -2 lines
Set S= for java-virtuals as EAPI-4 doesn't permit the S-to-WORKDIR fallback anymore.

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.8 # $Header: /var/cvsroot/gentoo-x86/eclass/java-virtuals-2.eclass,v 1.7 2011/12/27 17:55:12 fauli 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 sera 1.8 S="${WORKDIR}"
15    
16 ali_bush 1.1 EXPORT_FUNCTIONS src_install
17    
18     java-virtuals-2_src_install() {
19     java-virtuals-2_do_write
20     }
21    
22     # ------------------------------------------------------------------------------
23     # @internal-function java-pkg_do_virtuals_write
24     #
25     # Writes the virtual env file out to disk.
26     #
27     # ------------------------------------------------------------------------------
28     java-virtuals-2_do_write() {
29     java-pkg_init_paths_
30    
31     dodir "${JAVA_PKG_VIRTUALS_PATH}"
32 ali_bush 1.3 {
33 ali_bush 1.2 if [[ -n "${JAVA_VIRTUAL_PROVIDES}" ]]; then
34     echo "PROVIDERS=\"${JAVA_VIRTUAL_PROVIDES}\""
35     fi
36    
37     if [[ -n "${JAVA_VIRTUAL_VM}" ]]; then
38     echo "VM=\"${JAVA_VIRTUAL_VM}\""
39     fi
40    
41     if [[ -n "${JAVA_VIRTUAL_VM_CLASSPATH}" ]]; then
42     echo "VM_CLASSPATH=\"${JAVA_VIRTUAL_VM_CLASSPATH}\""
43     fi
44 ali_bush 1.6 echo "MULTI_PROVIDER=\"${JAVA_VIRTUAL_MULTI=FALSE}\""
45 ali_bush 1.3 } > "${JAVA_PKG_VIRTUAL_PROVIDER}"
46 ali_bush 1.1 }

  ViewVC Help
Powered by ViewVC 1.1.20