/[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.4 Revision 1.8
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# 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.8 2007/11/13 19:36:50 betelgeuse Exp $
8 14
9inherit java-utils-2 15inherit java-utils-2
10 16
11# ------------------------------------------------------------------------------ 17# ------------------------------------------------------------------------------
12# @eclass-begin 18# @eclass-begin
25DEPEND="${JAVA_PKG_OPT_USE}? ( ${JAVA_PKG_E_DEPEND} )" 31DEPEND="${JAVA_PKG_OPT_USE}? ( ${JAVA_PKG_E_DEPEND} )"
26RDEPEND="${DEPEND}" 32RDEPEND="${DEPEND}"
27 33
28# ------------------------------------------------------------------------------ 34# ------------------------------------------------------------------------------
29# ------------------------------------------------------------------------------ 35# ------------------------------------------------------------------------------
36# See java-pkg-2.eclass for JAVA_PKG_IUSE documentation
30IUSE="${JAVA_PKG_OPT_USE}" 37IUSE="${JAVA_PKG_IUSE} ${JAVA_PKG_OPT_USE}"
31 38
32EXPORT_FUNCTIONS pkg_setup 39EXPORT_FUNCTIONS pkg_setup
33 40
34# ------------------------------------------------------------------------------ 41# ------------------------------------------------------------------------------
35# ------------------------------------------------------------------------------ 42# ------------------------------------------------------------------------------
36java-pkg-opt-2_pkg_setup() { 43java-pkg-opt-2_pkg_setup() {
37 use ${JAVA_PKG_OPT_USE} && java-pkg_init 44 use ${JAVA_PKG_OPT_USE} && java-pkg_init
38} 45}
39
40# ------------------------------------------------------------------------------
41# @note
42#
43# 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# This is accomplished by phase hooks, which is available with newer versions of
46# portage.
47# ------------------------------------------------------------------------------
48
49pre_pkg_setup() {
50 java-pkg-opt-2_pkg_setup
51}
52
53pre_src_unpack() {
54 java-pkg-opt-2_pkg_setup
55 use "${JAVA_PKG_OPT_USE}" || JAVA_PKG_BSFIX="off"
56}
57
58pre_src_compile() {
59 java-pkg-opt-2_pkg_setup
60}
61
62pre_src_install() {
63 java-pkg-opt-2_pkg_setup
64}
65
66pre_src_test() {
67 java-pkg-opt-2_pkg_setup
68}
69
70pre_pkg_preinst() {
71 java-pkg-opt-2_pkg_setup
72}
73
74pre_pkg_postinst() {
75 java-pkg-opt-2_pkg_setup
76}

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.8

  ViewVC Help
Powered by ViewVC 1.1.20