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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.7 Revision 1.14
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# Major changes: 8# Major changes:
9# 20070805: 9# 20070805:
10# Removed phase hooks because Portage does proper env saving now. 10# Removed phase hooks because Portage does proper env saving now.
11# <betelgeuse@gentoo.org> 11# <betelgeuse@gentoo.org>
12# 12#
13# $Header: /var/cvsroot/gentoo-x86/eclass/java-pkg-opt-2.eclass,v 1.7 2007/08/05 08:24:30 betelgeuse Exp $ 13# $Header: /var/cvsroot/gentoo-x86/eclass/java-pkg-opt-2.eclass,v 1.14 2010/02/01 09:38:44 caster Exp $
14 14
15inherit java-utils-2 15inherit java-utils-2
16 16
17# ------------------------------------------------------------------------------ 17# ------------------------------------------------------------------------------
18# @eclass-begin 18# @eclass-begin
31DEPEND="${JAVA_PKG_OPT_USE}? ( ${JAVA_PKG_E_DEPEND} )" 31DEPEND="${JAVA_PKG_OPT_USE}? ( ${JAVA_PKG_E_DEPEND} )"
32RDEPEND="${DEPEND}" 32RDEPEND="${DEPEND}"
33 33
34# ------------------------------------------------------------------------------ 34# ------------------------------------------------------------------------------
35# ------------------------------------------------------------------------------ 35# ------------------------------------------------------------------------------
36# See java-pkg-2.eclass for JAVA_PKG_IUSE documentation
36IUSE="${JAVA_PKG_OPT_USE}" 37IUSE="${JAVA_PKG_IUSE} ${JAVA_PKG_OPT_USE}"
37 38
38EXPORT_FUNCTIONS pkg_setup 39case "${EAPI:-0}" in
40 0|1) EXPORT_FUNCTIONS pkg_setup pkg_preinst ;;
41 *) EXPORT_FUNCTIONS pkg_setup src_prepare pkg_preinst ;;
42esac
39 43
40# ------------------------------------------------------------------------------ 44# ------------------------------------------------------------------------------
41# ------------------------------------------------------------------------------ 45# ------------------------------------------------------------------------------
42java-pkg-opt-2_pkg_setup() { 46java-pkg-opt-2_pkg_setup() {
43 use ${JAVA_PKG_OPT_USE} && java-pkg_init 47 use ${JAVA_PKG_OPT_USE} && java-pkg_init
44} 48}
49
50# ------------------------------------------------------------------------------
51# @eclass-src_prepare
52#
53# wrapper for java-utils-2_src_prepare
54# ------------------------------------------------------------------------------
55java-pkg-opt-2_src_prepare() {
56 use ${JAVA_PKG_OPT_USE} && java-utils-2_src_prepare
57}
58
59# ------------------------------------------------------------------------------
60# @eclass-pkg_preinst
61#
62# wrapper for java-utils-2_pkg_preinst
63# ------------------------------------------------------------------------------
64java-pkg-opt-2_pkg_preinst() {
65 use ${JAVA_PKG_OPT_USE} && java-utils-2_pkg_preinst
66}

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.14

  ViewVC Help
Powered by ViewVC 1.1.20