Gentoo Archives: gentoo-commits

From: "Petteri Raty (betelgeuse)" <betelgeuse@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in eclass: java-vm-2.eclass
Date: Mon, 03 Mar 2008 17:20:44
Message-Id: E1JWELB-0005xH-N1@stork.gentoo.org
1 betelgeuse 08/03/03 17:20:41
2
3 Modified: java-vm-2.eclass
4 Log:
5 Add the ability to tell where the env file is located to set_java_env.
6
7 Revision Changes Path
8 1.20 eclass/java-vm-2.eclass
9
10 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/java-vm-2.eclass?rev=1.20&view=markup
11 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/java-vm-2.eclass?rev=1.20&content-type=text/plain
12 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/java-vm-2.eclass?r1=1.19&r2=1.20
13
14 Index: java-vm-2.eclass
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo-x86/eclass/java-vm-2.eclass,v
17 retrieving revision 1.19
18 retrieving revision 1.20
19 diff -u -r1.19 -r1.20
20 --- java-vm-2.eclass 16 Dec 2007 17:11:01 -0000 1.19
21 +++ java-vm-2.eclass 3 Mar 2008 17:20:41 -0000 1.20
22 @@ -1,6 +1,6 @@
23 # Copyright 1999-2004 Gentoo Foundation
24 # Distributed under the terms of the GNU General Public License v2
25 -# $Header: /var/cvsroot/gentoo-x86/eclass/java-vm-2.eclass,v 1.19 2007/12/16 17:11:01 caster Exp $
26 +# $Header: /var/cvsroot/gentoo-x86/eclass/java-vm-2.eclass,v 1.20 2008/03/03 17:20:41 betelgeuse Exp $
27
28 # -----------------------------------------------------------------------------
29 # @eclass-begin
30 @@ -148,10 +148,15 @@
31
32 # TODO rename to something more evident, like install_env_file
33 set_java_env() {
34 + debug-print-function ${FUNCNAME} $*
35 local platform="$(get_system_arch)"
36 local env_file="${D}${JAVA_VM_CONFIG_DIR}/${VMHANDLE}"
37 local old_env_file="${D}/etc/env.d/java/20${P}"
38 - local source_env_file="${FILESDIR}/${VMHANDLE}.env"
39 + if [[ ${1} ]]; then
40 + local source_env_file="${1}"
41 + else
42 + local source_env_file="${FILESDIR}/${VMHANDLE}.env"
43 + fi
44
45 if [[ ! -f ${source_env_file} ]]; then
46 die "Unable to find the env file: ${source_env_file}"
47
48
49
50 --
51 gentoo-commits@l.g.o mailing list