/[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.5 Revision 1.6
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# 20070855:
10# Removed phase hooks because Portage does proper env saving now.
11# <betelgeuse@gentoo.org>
12#
8# $Header: /var/cvsroot/gentoo-x86/eclass/java-pkg-opt-2.eclass,v 1.5 2006/12/03 13:05:06 betelgeuse Exp $ 13# $Header: /var/cvsroot/gentoo-x86/eclass/java-pkg-opt-2.eclass,v 1.6 2007/08/05 08:17:05 betelgeuse Exp $
9 14
10inherit java-utils-2 15inherit java-utils-2
11 16
12# ------------------------------------------------------------------------------ 17# ------------------------------------------------------------------------------
13# @eclass-begin 18# @eclass-begin
35# ------------------------------------------------------------------------------ 40# ------------------------------------------------------------------------------
36# ------------------------------------------------------------------------------ 41# ------------------------------------------------------------------------------
37java-pkg-opt-2_pkg_setup() { 42java-pkg-opt-2_pkg_setup() {
38 use ${JAVA_PKG_OPT_USE} && java-pkg_init 43 use ${JAVA_PKG_OPT_USE} && java-pkg_init
39} 44}
40
41# ------------------------------------------------------------------------------
42# @note
43#
44# We need to initialize the environment in every function because Portage
45# will source /etc/profile between phases and trample all over the env.
46# This is accomplished by phase hooks, which is available with newer versions of
47# portage.
48# ------------------------------------------------------------------------------
49
50pre_pkg_setup() {
51 java-pkg-opt-2_pkg_setup
52}
53
54pre_src_unpack() {
55 java-pkg-opt-2_pkg_setup
56 use "${JAVA_PKG_OPT_USE}" || JAVA_PKG_BSFIX="off"
57}
58
59pre_src_compile() {
60 java-pkg-opt-2_pkg_setup
61}
62
63pre_src_install() {
64 java-pkg-opt-2_pkg_setup
65}
66
67pre_src_test() {
68 java-pkg-opt-2_pkg_setup
69}
70
71pre_pkg_preinst() {
72 java-pkg-opt-2_pkg_setup
73}
74
75pre_pkg_postinst() {
76 java-pkg-opt-2_pkg_setup
77}

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

  ViewVC Help
Powered by ViewVC 1.1.20