| … | |
… | |
| 3 | # Copyright (c) 2004-2005, Thomas Matthijs <axxo@gentoo.org> |
3 | # Copyright (c) 2004-2005, Thomas Matthijs <axxo@gentoo.org> |
| 4 | # Copyright (c) 2004-2005, Gentoo Foundation |
4 | # Copyright (c) 2004-2005, Gentoo Foundation |
| 5 | # |
5 | # |
| 6 | # Licensed under the GNU General Public License, v2 |
6 | # Licensed under the GNU General Public License, v2 |
| 7 | # |
7 | # |
|
|
8 | # $Header: /var/cvsroot/gentoo-x86/eclass/java-pkg-opt-2.eclass,v 1.5 2006/12/03 13:05:06 betelgeuse Exp $ |
| 8 | |
9 | |
| 9 | inherit java-utils-2 |
10 | inherit java-utils-2 |
| 10 | |
11 | |
| 11 | # ------------------------------------------------------------------------------ |
12 | # ------------------------------------------------------------------------------ |
| 12 | # @eclass-begin |
13 | # @eclass-begin |
| … | |
… | |
| 36 | java-pkg-opt-2_pkg_setup() { |
37 | java-pkg-opt-2_pkg_setup() { |
| 37 | use ${JAVA_PKG_OPT_USE} && java-pkg_init |
38 | use ${JAVA_PKG_OPT_USE} && java-pkg_init |
| 38 | } |
39 | } |
| 39 | |
40 | |
| 40 | # ------------------------------------------------------------------------------ |
41 | # ------------------------------------------------------------------------------ |
| 41 | # @note |
42 | # @note |
| 42 | # |
43 | # |
| 43 | # We need to initialize the environment in every function because Portage |
44 | # We need to initialize the environment in every function because Portage |
| 44 | # will source /etc/profile between phases and trample all over the env. |
45 | # will source /etc/profile between phases and trample all over the env. |
| 45 | # This is accomplished by phase hooks, which is available with newer versions of |
46 | # This is accomplished by phase hooks, which is available with newer versions of |
| 46 | # portage. |
47 | # portage. |
| 47 | # ------------------------------------------------------------------------------ |
48 | # ------------------------------------------------------------------------------ |
| 48 | |
49 | |
| … | |
… | |
| 50 | java-pkg-opt-2_pkg_setup |
51 | java-pkg-opt-2_pkg_setup |
| 51 | } |
52 | } |
| 52 | |
53 | |
| 53 | pre_src_unpack() { |
54 | pre_src_unpack() { |
| 54 | java-pkg-opt-2_pkg_setup |
55 | java-pkg-opt-2_pkg_setup |
|
|
56 | use "${JAVA_PKG_OPT_USE}" || JAVA_PKG_BSFIX="off" |
| 55 | } |
57 | } |
| 56 | |
58 | |
| 57 | pre_src_compile() { |
59 | pre_src_compile() { |
| 58 | java-pkg-opt-2_pkg_setup |
60 | java-pkg-opt-2_pkg_setup |
| 59 | } |
61 | } |