/[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.34 Revision 1.36
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.34 2009/09/02 21:41:29 betelgeuse Exp $ 8# $Header: /var/cvsroot/gentoo-x86/eclass/java-pkg-2.eclass,v 1.36 2011/07/08 11:35:01 ssuominen Exp $
9 9
10inherit java-utils-2 10inherit java-utils-2
11 11
12# ----------------------------------------------------------------------------- 12# -----------------------------------------------------------------------------
13# @eclass-begin 13# @eclass-begin
47if [[ ${CATEGORY} = dev-java && ${PN} = commons-* ]]; then 47if [[ ${CATEGORY} = dev-java && ${PN} = commons-* ]]; then
48 HOMEPAGE="http://commons.apache.org/${PN#commons-}/" 48 HOMEPAGE="http://commons.apache.org/${PN#commons-}/"
49 SRC_URI="mirror://apache/${PN/-///}/source/${P}-src.tar.gz" 49 SRC_URI="mirror://apache/${PN/-///}/source/${P}-src.tar.gz"
50fi 50fi
51 51
52case "${EAPI:-0}" in
52EXPORT_FUNCTIONS pkg_setup src_compile pkg_preinst 53 0|1) EXPORT_FUNCTIONS pkg_setup src_compile pkg_preinst ;;
53[[ "${EAPI:-0}" == "2" ]] && EXPORT_FUNCTIONS src_prepare 54 *) EXPORT_FUNCTIONS pkg_setup src_prepare src_compile pkg_preinst ;;
55esac
54 56
55# ------------------------------------------------------------------------------ 57# ------------------------------------------------------------------------------
56# @eclass-pkg_setup 58# @eclass-pkg_setup
57# 59#
58# pkg_setup initializes the Java environment 60# pkg_setup initializes the Java environment
89java-pkg-2_src_compile() { 91java-pkg-2_src_compile() {
90 if [[ -e "${EANT_BUILD_XML:=build.xml}" ]]; then 92 if [[ -e "${EANT_BUILD_XML:=build.xml}" ]]; then
91 [[ "${EANT_FILTER_COMPILER}" ]] && \ 93 [[ "${EANT_FILTER_COMPILER}" ]] && \
92 java-pkg_filter-compiler ${EANT_FILTER_COMPILER} 94 java-pkg_filter-compiler ${EANT_FILTER_COMPILER}
93 local antflags="${EANT_BUILD_TARGET:=jar}" 95 local antflags="${EANT_BUILD_TARGET:=jar}"
94 if hasq doc ${IUSE} && [[ -n "${EANT_DOC_TARGET=javadoc}" ]]; then 96 if has doc ${IUSE} && [[ -n "${EANT_DOC_TARGET=javadoc}" ]]; then
95 antflags="${antflags} $(use_doc ${EANT_DOC_TARGET})" 97 antflags="${antflags} $(use_doc ${EANT_DOC_TARGET})"
96 fi 98 fi
97 local tasks 99 local tasks
98 [[ ${EANT_ANT_TASKS} ]] && tasks="${ANT_TASKS} ${EANT_ANT_TASKS}" 100 [[ ${EANT_ANT_TASKS} ]] && tasks="${ANT_TASKS} ${EANT_ANT_TASKS}"
99 ANT_TASKS="${tasks:-${ANT_TASKS}}" \ 101 ANT_TASKS="${tasks:-${ANT_TASKS}}" \

Legend:
Removed from v.1.34  
changed lines
  Added in v.1.36

  ViewVC Help
Powered by ViewVC 1.1.20