/[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.12 Revision 1.14
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.12 2009/02/19 05:22:47 serkan 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
34# ------------------------------------------------------------------------------ 34# ------------------------------------------------------------------------------
35# ------------------------------------------------------------------------------ 35# ------------------------------------------------------------------------------
36# See java-pkg-2.eclass for JAVA_PKG_IUSE documentation 36# See java-pkg-2.eclass for JAVA_PKG_IUSE documentation
37IUSE="${JAVA_PKG_IUSE} ${JAVA_PKG_OPT_USE}" 37IUSE="${JAVA_PKG_IUSE} ${JAVA_PKG_OPT_USE}"
38 38
39case "${EAPI:-0}" in
39EXPORT_FUNCTIONS pkg_setup pkg_preinst 40 0|1) EXPORT_FUNCTIONS pkg_setup pkg_preinst ;;
40[[ "${EAPI:-0}" == "2" ]] && EXPORT_FUNCTIONS src_prepare 41 *) EXPORT_FUNCTIONS pkg_setup src_prepare pkg_preinst ;;
42esac
41 43
42# ------------------------------------------------------------------------------ 44# ------------------------------------------------------------------------------
43# ------------------------------------------------------------------------------ 45# ------------------------------------------------------------------------------
44java-pkg-opt-2_pkg_setup() { 46java-pkg-opt-2_pkg_setup() {
45 use ${JAVA_PKG_OPT_USE} && java-pkg_init 47 use ${JAVA_PKG_OPT_USE} && java-pkg_init
57# ------------------------------------------------------------------------------ 59# ------------------------------------------------------------------------------
58# @eclass-pkg_preinst 60# @eclass-pkg_preinst
59# 61#
60# wrapper for java-utils-2_pkg_preinst 62# wrapper for java-utils-2_pkg_preinst
61# ------------------------------------------------------------------------------ 63# ------------------------------------------------------------------------------
62java-pkg-2_pkg_preinst() { 64java-pkg-opt-2_pkg_preinst() {
63 use ${JAVA_PKG_OPT_USE} && java-utils-2_pkg_preinst 65 use ${JAVA_PKG_OPT_USE} && java-utils-2_pkg_preinst
64} 66}

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

  ViewVC Help
Powered by ViewVC 1.1.20