/[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 - (show annotations) (download)
Fri Jan 13 09:59:10 2012 UTC (2 years, 8 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 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/eclass/java-virtuals-2.eclass,v 1.7 2011/12/27 17:55:12 fauli Exp $
4
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 DEPEND=">=dev-java/java-config-2.1.6"
12 RDEPEND="${DEPEND}"
13
14 S="${WORKDIR}"
15
16 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 {
33 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 echo "MULTI_PROVIDER=\"${JAVA_VIRTUAL_MULTI=FALSE}\""
45 } > "${JAVA_PKG_VIRTUAL_PROVIDER}"
46 }

  ViewVC Help
Powered by ViewVC 1.1.20