/[gentoo-x86]/eclass/java-pkg-opt-2.eclass
Gentoo

Contents of /eclass/java-pkg-opt-2.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.13 - (hide annotations) (download)
Wed Feb 25 17:41:16 2009 UTC (5 years, 4 months ago) by serkan
Branch: MAIN
Changes since 1.12: +2 -2 lines
java-pkg-2_pkg_preinstĀ -> java-pkg-opt-2_pkg_preinst. Fixes bug #260223.

1 nichoj 1.1 # Eclass for optional Java packages
2     #
3     # Copyright (c) 2004-2005, Thomas Matthijs <axxo@gentoo.org>
4     # Copyright (c) 2004-2005, Gentoo Foundation
5     #
6     # Licensed under the GNU General Public License, v2
7     #
8 betelgeuse 1.6 # Major changes:
9 swegener 1.9 # 20070805:
10 betelgeuse 1.6 # Removed phase hooks because Portage does proper env saving now.
11     # <betelgeuse@gentoo.org>
12     #
13 serkan 1.13 # $Header: /var/cvsroot/gentoo-x86/eclass/java-pkg-opt-2.eclass,v 1.12 2009/02/19 05:22:47 serkan Exp $
14 nichoj 1.1
15     inherit java-utils-2
16    
17     # ------------------------------------------------------------------------------
18     # @eclass-begin
19     # @eclass-summary Eclass for packages with optional Java support
20     # ------------------------------------------------------------------------------
21    
22     # ------------------------------------------------------------------------------
23     # @ebuild-variable JAVA_PKG_OPT_USE
24     #
25     # USE flag to control if optional Java stuff is build. Defaults to 'java'.
26     # ------------------------------------------------------------------------------
27     JAVA_PKG_OPT_USE=${JAVA_PKG_OPT_USE:-java}
28    
29     # ------------------------------------------------------------------------------
30     # ------------------------------------------------------------------------------
31     DEPEND="${JAVA_PKG_OPT_USE}? ( ${JAVA_PKG_E_DEPEND} )"
32     RDEPEND="${DEPEND}"
33    
34     # ------------------------------------------------------------------------------
35     # ------------------------------------------------------------------------------
36 betelgeuse 1.8 # See java-pkg-2.eclass for JAVA_PKG_IUSE documentation
37     IUSE="${JAVA_PKG_IUSE} ${JAVA_PKG_OPT_USE}"
38 nichoj 1.1
39 serkan 1.12 EXPORT_FUNCTIONS pkg_setup pkg_preinst
40 caster 1.10 [[ "${EAPI:-0}" == "2" ]] && EXPORT_FUNCTIONS src_prepare
41 nichoj 1.1
42     # ------------------------------------------------------------------------------
43     # ------------------------------------------------------------------------------
44     java-pkg-opt-2_pkg_setup() {
45     use ${JAVA_PKG_OPT_USE} && java-pkg_init
46     }
47 caster 1.10
48     # ------------------------------------------------------------------------------
49     # @eclass-src_prepare
50     #
51     # wrapper for java-utils-2_src_prepare
52     # ------------------------------------------------------------------------------
53     java-pkg-opt-2_src_prepare() {
54     use ${JAVA_PKG_OPT_USE} && java-utils-2_src_prepare
55     }
56 serkan 1.11
57     # ------------------------------------------------------------------------------
58     # @eclass-pkg_preinst
59     #
60     # wrapper for java-utils-2_pkg_preinst
61     # ------------------------------------------------------------------------------
62 serkan 1.13 java-pkg-opt-2_pkg_preinst() {
63 serkan 1.11 use ${JAVA_PKG_OPT_USE} && java-utils-2_pkg_preinst
64     }

  ViewVC Help
Powered by ViewVC 1.1.20