/[gentoo-x86]/eclass/java-virtuals-2.eclass
Gentoo

Diff of /eclass/java-virtuals-2.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.1 Revision 1.9
1# Copyright 1999-2007 Gentoo Foundation 1# Copyright 1999-2012 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 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.1 2007/10/04 09:59:29 ali_bush Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/java-virtuals-2.eclass,v 1.9 2012/07/18 19:13:23 sera Exp $
4 4
5# @ECLASS: java-virtuals-2.eclass
6# @MAINTAINER:
7# java@gentoo.org
8# @AUTHOR:
5# Original Author: Alistair John Bush <ali_bush@gentoo.org> 9# Original Author: Alistair John Bush <ali_bush@gentoo.org>
10# @BLURB: Java virtuals eclass
11# @DESCRIPTION:
6# Purpose: To provide a default (and only) src_install function 12# To provide a default (and only) src_install function for ebuilds in the
7# for ebuilds in the java-virtuals category. 13# java-virtuals category.
8 14
9inherit java-utils-2 15inherit java-utils-2
10 16
17DEPEND=">=dev-java/java-config-2.1.6"
18RDEPEND="${DEPEND}"
19
20S="${WORKDIR}"
21
11EXPORT_FUNCTIONS src_install 22EXPORT_FUNCTIONS src_install
23
24# @FUNCTION: java-virtuals-2_src_install
25# @DESCRIPTION:
26# default src_install
12 27
13java-virtuals-2_src_install() { 28java-virtuals-2_src_install() {
14 java-virtuals-2_do_write 29 java-virtuals-2_do_write
15} 30}
16 31
17# ------------------------------------------------------------------------------ 32# @FUNCTION: java-pkg_do_virtuals_write
18# @internal-function java-pkg_do_virtuals_write 33# @INTERNAL
19# 34# @DESCRIPTION:
20# Writes the virtual env file out to disk. 35# Writes the virtual env file out to disk.
21# 36
22# ------------------------------------------------------------------------------
23java-virtuals-2_do_write() { 37java-virtuals-2_do_write() {
24 java-pkg_init_paths_ 38 java-pkg_init_paths_
25 39
26 dodir "${JAVA_PKG_VIRTUALS_PATH}" 40 dodir "${JAVA_PKG_VIRTUALS_PATH}"
41 {
27 if [[ -n "${JAVA_VIRTUAL_PROVIDES}" ]]; then 42 if [[ -n "${JAVA_VIRTUAL_PROVIDES}" ]]; then
28 echo "PROVIDERS=\"${JAVA_VIRTUAL_PROVIDES}\"" \ 43 echo "PROVIDERS=\"${JAVA_VIRTUAL_PROVIDES}\""
29 >> ${JAVA_PKG_VIRTUAL_PROVIDER}
30 fi 44 fi
31 45
32 if [[ -n "${JAVA_VIRTUAL_VM}" ]]; then 46 if [[ -n "${JAVA_VIRTUAL_VM}" ]]; then
33 echo "VM=\"${JAVA_VIRTUAL_VM}\"" \ 47 echo "VM=\"${JAVA_VIRTUAL_VM}\""
34 >> ${JAVA_PKG_VIRTUAL_PROVIDER}
35 fi 48 fi
36 49
37 if [[ -n "${JAVA_VIRTUAL_VM_CLASSPATH}" ]]; then 50 if [[ -n "${JAVA_VIRTUAL_VM_CLASSPATH}" ]]; then
38 echo "VM_CLASSPATH=\"${JAVA_VIRTUAL_VM_CLASSPATH}\"" \ 51 echo "VM_CLASSPATH=\"${JAVA_VIRTUAL_VM_CLASSPATH}\""
52 fi
53 echo "MULTI_PROVIDER=\"${JAVA_VIRTUAL_MULTI=FALSE}\""
39 >> ${JAVA_PKG_VIRTUAL_PROVIDER} 54 } > "${JAVA_PKG_VIRTUAL_PROVIDER}"
40 fi
41} 55}

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.9

  ViewVC Help
Powered by ViewVC 1.1.20