/[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.8
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.8 2012/01/13 09:59:10 sera Exp $
4 4
5# Original Author: Alistair John Bush <ali_bush@gentoo.org> 5# Original Author: Alistair John Bush <ali_bush@gentoo.org>
6# Purpose: To provide a default (and only) src_install function 6# Purpose: To provide a default (and only) src_install function
7# for ebuilds in the java-virtuals category. 7# for ebuilds in the java-virtuals category.
8 8
9inherit java-utils-2 9inherit java-utils-2
10
11DEPEND=">=dev-java/java-config-2.1.6"
12RDEPEND="${DEPEND}"
13
14S="${WORKDIR}"
10 15
11EXPORT_FUNCTIONS src_install 16EXPORT_FUNCTIONS src_install
12 17
13java-virtuals-2_src_install() { 18java-virtuals-2_src_install() {
14 java-virtuals-2_do_write 19 java-virtuals-2_do_write
22# ------------------------------------------------------------------------------ 27# ------------------------------------------------------------------------------
23java-virtuals-2_do_write() { 28java-virtuals-2_do_write() {
24 java-pkg_init_paths_ 29 java-pkg_init_paths_
25 30
26 dodir "${JAVA_PKG_VIRTUALS_PATH}" 31 dodir "${JAVA_PKG_VIRTUALS_PATH}"
32 {
27 if [[ -n "${JAVA_VIRTUAL_PROVIDES}" ]]; then 33 if [[ -n "${JAVA_VIRTUAL_PROVIDES}" ]]; then
28 echo "PROVIDERS=\"${JAVA_VIRTUAL_PROVIDES}\"" \ 34 echo "PROVIDERS=\"${JAVA_VIRTUAL_PROVIDES}\""
29 >> ${JAVA_PKG_VIRTUAL_PROVIDER}
30 fi 35 fi
31 36
32 if [[ -n "${JAVA_VIRTUAL_VM}" ]]; then 37 if [[ -n "${JAVA_VIRTUAL_VM}" ]]; then
33 echo "VM=\"${JAVA_VIRTUAL_VM}\"" \ 38 echo "VM=\"${JAVA_VIRTUAL_VM}\""
34 >> ${JAVA_PKG_VIRTUAL_PROVIDER}
35 fi 39 fi
36 40
37 if [[ -n "${JAVA_VIRTUAL_VM_CLASSPATH}" ]]; then 41 if [[ -n "${JAVA_VIRTUAL_VM_CLASSPATH}" ]]; then
38 echo "VM_CLASSPATH=\"${JAVA_VIRTUAL_VM_CLASSPATH}\"" \ 42 echo "VM_CLASSPATH=\"${JAVA_VIRTUAL_VM_CLASSPATH}\""
43 fi
44 echo "MULTI_PROVIDER=\"${JAVA_VIRTUAL_MULTI=FALSE}\""
39 >> ${JAVA_PKG_VIRTUAL_PROVIDER} 45 } > "${JAVA_PKG_VIRTUAL_PROVIDER}"
40 fi
41} 46}

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

  ViewVC Help
Powered by ViewVC 1.1.20