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

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

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

Revision 1.24 Revision 1.25
12# and xml-rewrite.py because they were so slow 12# and xml-rewrite.py because they were so slow
13# Petteri Räty (betelgeuse@gentoo.org) 13# Petteri Räty (betelgeuse@gentoo.org)
14# 14#
15# Licensed under the GNU General Public License, v2 15# Licensed under the GNU General Public License, v2
16# 16#
17# $Header: /var/cvsroot/gentoo-x86/eclass/java-ant-2.eclass,v 1.24 2007/12/18 00:23:06 betelgeuse Exp $ 17# $Header: /var/cvsroot/gentoo-x86/eclass/java-ant-2.eclass,v 1.25 2008/01/12 15:08:47 caster Exp $
18 18
19inherit java-utils-2 19inherit java-utils-2
20 20
21# This eclass provides functionality for Java packages which use 21# This eclass provides functionality for Java packages which use
22# ant to build. In particular, it will attempt to fix build.xml files, so that 22# ant to build. In particular, it will attempt to fix build.xml files, so that
28# 28#
29# Please see the description in java-utils-2.eclass. 29# Please see the description in java-utils-2.eclass.
30#WANT_ANT_TASKS 30#WANT_ANT_TASKS
31 31
32# ----------------------------------------------------------------------------- 32# -----------------------------------------------------------------------------
33# @variable-preinherit WANT_SPLIT_ANT
34# @variable-default ""
35#
36# If set, ant-core dependency specifies version with startup script that
37# honours ANT_TASKS variable, i.e. >=1.7.0. Using WANT_ANT_TASKS implies
38# split-ant already, so you need this only if you manually depend on some
39# external package providing ant tasks and want to use it via ANT_TASKS.
40[[ -n "${WANT_ANT_TASKS}" ]] && WANT_SPLIT_ANT="true"
41
42# -----------------------------------------------------------------------------
43# @variable-preinherit JAVA_ANT_DISABLE_ANT_CORE_DEP 33# @variable-preinherit JAVA_ANT_DISABLE_ANT_CORE_DEP
44# @variable-default unset for java-pkg-2, true for java-pkg-opt-2 34# @variable-default unset for java-pkg-2, true for java-pkg-opt-2
45# 35#
46# Setting this variable non-empty before inheriting java-ant-2 disables adding 36# Setting this variable non-empty before inheriting java-ant-2 disables adding
47# dev-java/ant-core into DEPEND. 37# dev-java/ant-core into DEPEND.
48 38
49# construct ant-speficic DEPEND 39# construct ant-speficic DEPEND
50JAVA_ANT_E_DEPEND="" 40JAVA_ANT_E_DEPEND=""
51# add ant-core into DEPEND, unless disabled; respect WANT_SPLIT_ANT 41# add ant-core into DEPEND, unless disabled
52if [[ -z "${JAVA_ANT_DISABLE_ANT_CORE_DEP}" ]]; then 42if [[ -z "${JAVA_ANT_DISABLE_ANT_CORE_DEP}" ]]; then
53 if [[ -n "${WANT_SPLIT_ANT}" ]]; then
54 JAVA_ANT_E_DEPEND="${JAVA_ANT_E_DEPEND} >=dev-java/ant-core-1.7.0" 43 JAVA_ANT_E_DEPEND="${JAVA_ANT_E_DEPEND} >=dev-java/ant-core-1.7.0"
55 else
56 JAVA_ANT_E_DEPEND="${JAVA_ANT_E_DEPEND} dev-java/ant-core"
57 fi
58fi 44fi
59 45
60# add ant tasks specified in WANT_ANT_TASKS to DEPEND 46# add ant tasks specified in WANT_ANT_TASKS to DEPEND
61local ANT_TASKS_DEPEND; 47local ANT_TASKS_DEPEND;
62ANT_TASKS_DEPEND="$(java-pkg_ant-tasks-depend)" 48ANT_TASKS_DEPEND="$(java-pkg_ant-tasks-depend)"

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

  ViewVC Help
Powered by ViewVC 1.1.20