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

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

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

Revision 1.23 Revision 1.24
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# $Header: /var/cvsroot/gentoo-x86/eclass/java-pkg-2.eclass,v 1.23 2007/05/17 21:04:43 caster Exp $ 8# $Header: /var/cvsroot/gentoo-x86/eclass/java-pkg-2.eclass,v 1.24 2007/08/05 08:17:05 betelgeuse Exp $
9 9
10inherit java-utils-2 10inherit java-utils-2
11 11
12# ----------------------------------------------------------------------------- 12# -----------------------------------------------------------------------------
13# @eclass-begin 13# @eclass-begin
87 echo "${FUNCNAME}: ${EANT_BUILD_XML} not found so nothing to do." 87 echo "${FUNCNAME}: ${EANT_BUILD_XML} not found so nothing to do."
88 fi 88 fi
89} 89}
90 90
91# ------------------------------------------------------------------------------ 91# ------------------------------------------------------------------------------
92# @note
93#
94# We need to initialize the environment in every function because Portage
95# will source /etc/profile between phases and trample all over the env.
96# This is accomplished by phase hooks, which is available with newer versions of
97# portage.
98# ------------------------------------------------------------------------------
99
100pre_pkg_setup() {
101 java-pkg-2_pkg_setup
102}
103
104pre_src_unpack() {
105 java-pkg-2_pkg_setup
106}
107
108pre_src_compile() {
109 if is-java-strict; then
110 echo "Searching for bundled jars:"
111 java-pkg_find-normal-jars || echo "None found."
112 echo "Searching for bundled classes (no output if none found):"
113 find "${WORKDIR}" -name "*.class"
114 echo "Search done."
115 fi
116 java-pkg-2_pkg_setup
117}
118
119pre_src_install() {
120 java-pkg-2_pkg_setup
121}
122
123pre_src_test() {
124 java-pkg-2_pkg_setup
125}
126
127pre_pkg_preinst() {
128 java-pkg-2_pkg_setup
129}
130
131pre_pkg_postinst() {
132 java-pkg-2_pkg_setup
133}
134
135# ------------------------------------------------------------------------------
136# @eclass-end 92# @eclass-end
137# ------------------------------------------------------------------------------ 93# ------------------------------------------------------------------------------

Legend:
Removed from v.1.23  
changed lines
  Added in v.1.24

  ViewVC Help
Powered by ViewVC 1.1.20