# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-java/stax-ex/stax-ex-1.0.ebuild,v 1.4 2007/08/19 18:46:30 wltjr Exp $ JAVA_PKG_IUSE="source" inherit java-pkg-2 java-ant-2 eutils DESCRIPTION="Extensions to complement JSR-173 StAX API" HOMEPAGE="http://stax-ex.dev.java.net/" SRC_URI="https://stax-ex.dev.java.net/files/documents/4480/44372/${P}-src.tar.gz" LICENSE="CDDL" SLOT="0" KEYWORDS="amd64 ~ppc x86 ~x86-fbsd" IUSE="" COMMON_DEPEND="dev-java/sun-jaf dev-java/jsr173" RDEPEND=">=virtual/jre-1.5 ${COMMON_DEPEND}" DEPEND=">=virtual/jdk-1.5 ${COMMON_DEPEND}" src_unpack() { unpack ${A} cd "${S}" # build.xml is from maven-1 and tries to download jars to /root/.maven/ rm -f build.xml || die cp "${FILESDIR}/build.xml-${PV}" build.xml || die mkdir "${S}/lib" || die cd "${S}/lib" java-pkg_jar-from sun-jaf java-pkg_jar-from jsr173 } src_install() { java-pkg_dojar "stax-ex.jar" use source && java-pkg_dosrc src/java/* }