diff options
author | Vlastimil Babka <caster@gentoo.org> | 2007-06-01 19:40:06 +0000 |
---|---|---|
committer | Vlastimil Babka <caster@gentoo.org> | 2007-06-01 19:40:06 +0000 |
commit | 0d2cc5ce527c7c28f4a7b6490192f8ac0f0d7818 (patch) | |
tree | 1b1ee7dbddf2647a3135ff2f5670d2599994ff80 /dev-java/jdom/jdom-1.0_beta9-r2.ebuild | |
parent | Stable on ppc wrt bug 180572 (diff) | |
download | historical-0d2cc5ce527c7c28f4a7b6490192f8ac0f0d7818.tar.gz historical-0d2cc5ce527c7c28f4a7b6490192f8ac0f0d7818.tar.bz2 historical-0d2cc5ce527c7c28f4a7b6490192f8ac0f0d7818.zip |
Add examples USE flag, prevent breakage with java-strict due to optional jaxen; prevent breakage with different slot brought by ant task.
Package-Manager: portage-2.1.2.9
Diffstat (limited to 'dev-java/jdom/jdom-1.0_beta9-r2.ebuild')
-rw-r--r-- | dev-java/jdom/jdom-1.0_beta9-r2.ebuild | 45 |
1 files changed, 26 insertions, 19 deletions
diff --git a/dev-java/jdom/jdom-1.0_beta9-r2.ebuild b/dev-java/jdom/jdom-1.0_beta9-r2.ebuild index 8afe378e7a02..008ff3ae07c5 100644 --- a/dev-java/jdom/jdom-1.0_beta9-r2.ebuild +++ b/dev-java/jdom/jdom-1.0_beta9-r2.ebuild @@ -1,10 +1,10 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-java/jdom/jdom-1.0_beta9-r2.ebuild,v 1.6 2007/05/25 09:24:07 betelgeuse Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-java/jdom/jdom-1.0_beta9-r2.ebuild,v 1.7 2007/06/01 19:40:06 caster Exp $ -inherit java-pkg-2 java-ant-2 +JAVA_PKG_IUSE="doc examples source" -IUSE="doc source" +inherit java-pkg-2 java-ant-2 MY_PN="jdom" MY_PV="b9" @@ -17,40 +17,47 @@ LICENSE="JDOM" SLOT="${PV}" KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" -RDEPEND=">=virtual/jre-1.4 - dev-java/saxpath - dev-java/xalan +COMMON_DEP="dev-java/saxpath >=dev-java/xerces-2.7" +RDEPEND=">=virtual/jre-1.4 + ${COMMON_DEP}" DEPEND=">=virtual/jdk-1.4 - ${RDEPEND}" + ${COMMON_DEP}" +IUSE="" S="${WORKDIR}/${MY_P}" src_unpack() { unpack ${A} - cd ${S} - rm -f build/*.jar lib/*.jar + cd "${S}" + + rm -v build/*.jar lib/*.jar || die + rm -rf build/apidocs || die cd ${S}/lib - java-pkg_jar-from saxpath - java-pkg_jar-from xerces-2 + java-pkg_jar-from saxpath,xerces-2 if has_version '=dev-java/jaxen-1.1*'; then - java-pkg_jar-from jaxen-1.1 + elog "jaxen detected - building jaxen support." + elog "you can ignore the warnings below" + elog "one day there will be better solution" + JAVA_PKG_STRICT="" java-pkg_jar-from jaxen-1.1 fi } -EANT_BUILD_TARGET="package" -EANT_DOC_TARGET="" -# to prevent a newer jdom from going into cp -ANT_TASKS="none" +src_compile() { + # to prevent a newer jdom from going into cp + # (EANT_ANT_TASKS doesn't work with none) + ANT_TASKS="none" eant package $(use_doc) +} src_install() { java-pkg_dojar build/*.jar - dodoc CHANGES.txt COMMITTERS.txt README.txt TODO.txt - use doc && java-pkg_dohtml -r build/apidocs/* - use source && java-pkg_dosrc src/java/* + dodoc CHANGES.txt COMMITTERS.txt README.txt TODO.txt || die + use doc && java-pkg_dojavadoc build/apidocs + use examples && java-pkg_doexamples samples + use source && java-pkg_dosrc src/java/org } pkg_postinst() { |