/[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.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# $Header: /var/cvsroot/gentoo-x86/eclass/java-pkg-2.eclass,v 1.5 2006/12/08 12:12:04 betelgeuse Exp $ 8# $Header: /var/cvsroot/gentoo-x86/eclass/java-pkg-2.eclass,v 1.6 2006/12/17 16:44:06 betelgeuse Exp $
9 9
10inherit java-utils-2 10inherit java-utils-2
11 11
12# ----------------------------------------------------------------------------- 12# -----------------------------------------------------------------------------
13# @eclass-begin 13# @eclass-begin
31# 31#
32# Nothing special for RDEPEND... just the same as DEPEND. 32# Nothing special for RDEPEND... just the same as DEPEND.
33# ------------------------------------------------------------------------------ 33# ------------------------------------------------------------------------------
34RDEPEND="${DEPEND}" 34RDEPEND="${DEPEND}"
35 35
36EXPORT_FUNCTIONS pkg_setup 36EXPORT_FUNCTIONS pkg_setup src_compile
37 37
38# ------------------------------------------------------------------------------ 38# ------------------------------------------------------------------------------
39# @eclass-pkg_setup 39# @eclass-pkg_setup
40# 40#
41# pkg_setup initializes the Java environment 41# pkg_setup initializes the Java environment
42# ------------------------------------------------------------------------------ 42# ------------------------------------------------------------------------------
43java-pkg-2_pkg_setup() { 43java-pkg-2_pkg_setup() {
44 java-pkg_init 44 java-pkg_init
45 java-pkg_ensure-test 45 java-pkg_ensure-test
46}
47
48# ------------------------------------------------------------------------------
49# @eclass-src_compile
50#
51# Default src_compile for java packages
52# variables:
53# EANT_BUILD_XML - controls the location of the build.xml (default: ./build.xml)
54# EANT_BUILD_TARGET - the ant target/targets to execute (default: jar)
55# EANT_DOC_TARGET - the target to build extra docs under the doc use flag
56# (default: the one provided by use_doc in
57# java-utils-2.eclass)
58# ------------------------------------------------------------------------------
59java-pkg-2_src_compile() {
60 if [[ -e "${EANT_BUILD_XML:=build.xml}" ]]; then
61 local antflags="${EANT_BUILD_TARGET:=jar}"
62 hasq doc ${IUSE} && antflags="${antflags} $(use_doc ${EANT_DOC_TARGET})"
63 eant ${antflags} -f ${EANT_BUILD_XML}
64 else
65 vecho "${FUNCNAME}: No build.xml found so nothing to do."
66 fi
46} 67}
47 68
48# ------------------------------------------------------------------------------ 69# ------------------------------------------------------------------------------
49# @note 70# @note
50# 71#

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

  ViewVC Help
Powered by ViewVC 1.1.20