diff options
author | Serkan Kaba <serkan@gentoo.org> | 2008-10-05 16:41:46 +0000 |
---|---|---|
committer | Serkan Kaba <serkan@gentoo.org> | 2008-10-05 16:41:46 +0000 |
commit | eea107229cef892acf608cf59cea3457f758878e (patch) | |
tree | a809e3a5569f53c4d28bbf1561e5a8b2337f8b69 /dev-java/txw2-runtime/txw2-runtime-20070407-r2.ebuild | |
parent | Keyworded on alpha, bug #237813 (diff) | |
download | historical-eea107229cef892acf608cf59cea3457f758878e.tar.gz historical-eea107229cef892acf608cf59cea3457f758878e.tar.bz2 historical-eea107229cef892acf608cf59cea3457f758878e.zip |
Migrate to stax-api virtual.
Package-Manager: portage-2.2_rc11/cvs/Linux 2.6.25-gentoo-r7 x86_64
Diffstat (limited to 'dev-java/txw2-runtime/txw2-runtime-20070407-r2.ebuild')
-rw-r--r-- | dev-java/txw2-runtime/txw2-runtime-20070407-r2.ebuild | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/dev-java/txw2-runtime/txw2-runtime-20070407-r2.ebuild b/dev-java/txw2-runtime/txw2-runtime-20070407-r2.ebuild new file mode 100644 index 000000000000..9126707fe93e --- /dev/null +++ b/dev-java/txw2-runtime/txw2-runtime-20070407-r2.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/txw2-runtime/txw2-runtime-20070407-r2.ebuild,v 1.1 2008/10/05 16:38:49 serkan Exp $ + +JAVA_PKG_IUSE="doc source" + +inherit eutils java-pkg-2 java-ant-2 + +DESCRIPTION="TXW is a library that allows you to write XML documents." +HOMEPAGE="https://txw.dev.java.net/" +SRC_URI="https://txw.dev.java.net/files/documents/3310/54821/txw2-${PV}.zip" + +LICENSE="CDDL" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd" +IUSE="" + +COMMON_DEP="java-virtuals/stax-api" + +DEPEND=">=virtual/jdk-1.5 + app-arch/unzip + ${COMMON_DEP}" +RDEPEND=">=virtual/jre-1.5 + ${COMMON_DEP}" + +S="${WORKDIR}/txw2-${PV}" + +src_unpack() { + + unpack ${A} + + cd "${S}" + rm -v *.jar || die + cd "${S}/lib" + rm -v *.jar || die + + java-pkg_jarfrom --build-only ant-core + java-pkg_jarfrom --virtual stax-api + + cd "${S}" + unzip -qq txw2-src.zip -d runtime || die unzip failed + unzip -qq txw2c-src.zip -d compiler || die unzip failed + + cp -i "${FILESDIR}/build.xml-20070407" "${S}/build.xml" || die cp failed + +} + +EANT_BUILD_TARGET="runtime-jar" +EANT_DOC_TARGET="" + +src_install() { + java-pkg_newjar txw2.jar + + use doc && java-pkg_dojavadoc javadoc + use source && java-pkg_dosrc runtime/* +} |