/[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.50 Revision 1.51
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.50 2010/10/17 12:55:00 betelgeuse Exp $ 17# $Header: /var/cvsroot/gentoo-x86/eclass/java-ant-2.eclass,v 1.51 2011/07/08 11:35:01 ssuominen 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
60 >=dev-java/javatoolkit-0.3.0-r2 60 >=dev-java/javatoolkit-0.3.0-r2
61 >=dev-lang/python-2.4" 61 >=dev-lang/python-2.4"
62 62
63# this eclass must be inherited after java-pkg-2 or java-pkg-opt-2 63# this eclass must be inherited after java-pkg-2 or java-pkg-opt-2
64# if it's java-pkg-opt-2, ant dependencies are pulled based on USE flag 64# if it's java-pkg-opt-2, ant dependencies are pulled based on USE flag
65if hasq java-pkg-opt-2 ${INHERITED}; then 65if has java-pkg-opt-2 ${INHERITED}; then
66 JAVA_ANT_E_DEPEND="${JAVA_PKG_OPT_USE}? ( ${JAVA_ANT_E_DEPEND} )" 66 JAVA_ANT_E_DEPEND="${JAVA_PKG_OPT_USE}? ( ${JAVA_ANT_E_DEPEND} )"
67elif ! hasq java-pkg-2 ${INHERITED}; then 67elif ! has java-pkg-2 ${INHERITED}; then
68 eerror "java-ant-2 eclass can only be inherited AFTER java-pkg-2 or java-pkg-opt-2" 68 eerror "java-ant-2 eclass can only be inherited AFTER java-pkg-2 or java-pkg-opt-2"
69fi 69fi
70 70
71DEPEND="${JAVA_ANT_E_DEPEND}" 71DEPEND="${JAVA_ANT_E_DEPEND}"
72 72
143# 143#
144# src_configure rewrites the build.xml files 144# src_configure rewrites the build.xml files
145# ------------------------------------------------------------------------------ 145# ------------------------------------------------------------------------------
146java-ant-2_src_configure() { 146java-ant-2_src_configure() {
147 # if java support is optional, don't perform this when the USE flag is off 147 # if java support is optional, don't perform this when the USE flag is off
148 if hasq java-pkg-opt-2 ${INHERITED}; then 148 if has java-pkg-opt-2 ${INHERITED}; then
149 use ${JAVA_PKG_OPT_USE} || return 149 use ${JAVA_PKG_OPT_USE} || return
150 fi 150 fi
151 151
152 # eant will call us unless called by Portage 152 # eant will call us unless called by Portage
153 [[ -e "${T}/java-ant-2_src_configure-run" ]] && return 153 [[ -e "${T}/java-ant-2_src_configure-run" ]] && return
326 fi 326 fi
327 # Where will our generated javadoc go. 327 # Where will our generated javadoc go.
328 readonly JAVA_ANT_JAVADOC_OUTPUT_DIR="${WORKDIR}/gentoo_javadoc" 328 readonly JAVA_ANT_JAVADOC_OUTPUT_DIR="${WORKDIR}/gentoo_javadoc"
329 mkdir -p "${JAVA_ANT_JAVADOC_OUTPUT_DIR}" || die 329 mkdir -p "${JAVA_ANT_JAVADOC_OUTPUT_DIR}" || die
330 330
331 if hasq doc ${IUSE}; then 331 if has doc ${IUSE}; then
332 if use doc; then 332 if use doc; then
333 if [[ -z ${EANT_DOC_TARGET} ]]; then 333 if [[ -z ${EANT_DOC_TARGET} ]]; then
334 EANT_DOC_TARGET="gentoojavadoc" 334 EANT_DOC_TARGET="gentoojavadoc"
335 else 335 else
336 die "You can't use javadoc adding and set EANT_DOC_TARGET too." 336 die "You can't use javadoc adding and set EANT_DOC_TARGET too."

Legend:
Removed from v.1.50  
changed lines
  Added in v.1.51

  ViewVC Help
Powered by ViewVC 1.1.20