/[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.7 - (show annotations) (download)
Sun Aug 5 08:24:30 2007 UTC (7 years, 2 months ago) by betelgeuse
Branch: MAIN
Changes since 1.6: +1 -1 lines
Fix a typo in the date.

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 # Major changes:
9 # 20070805:
10 # Removed phase hooks because Portage does proper env saving now.
11 # <betelgeuse@gentoo.org>
12 #
13 # $Header: /var/cvsroot/gentoo-x86/eclass/java-pkg-opt-2.eclass,v 1.5 2006/12/03 13:05:06 betelgeuse Exp $
14
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 IUSE="${JAVA_PKG_OPT_USE}"
37
38 EXPORT_FUNCTIONS pkg_setup
39
40 # ------------------------------------------------------------------------------
41 # ------------------------------------------------------------------------------
42 java-pkg-opt-2_pkg_setup() {
43 use ${JAVA_PKG_OPT_USE} && java-pkg_init
44 }

  ViewVC Help
Powered by ViewVC 1.1.20