summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-java/txw2-runtime')
-rw-r--r--dev-java/txw2-runtime/ChangeLog8
-rw-r--r--dev-java/txw2-runtime/txw2-runtime-20070407-r1.ebuild56
2 files changed, 63 insertions, 1 deletions
diff --git a/dev-java/txw2-runtime/ChangeLog b/dev-java/txw2-runtime/ChangeLog
index 8734ac1dc100..b39663657236 100644
--- a/dev-java/txw2-runtime/ChangeLog
+++ b/dev-java/txw2-runtime/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-java/txw2-runtime
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/txw2-runtime/ChangeLog,v 1.9 2008/03/28 18:09:40 nixnut Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-java/txw2-runtime/ChangeLog,v 1.10 2008/07/30 19:38:48 betelgeuse Exp $
+
+*txw2-runtime-20070407-r1 (30 Jul 2008)
+
+ 30 Jul 2008; Petteri Räty <betelgeuse@gentoo.org>
+ +txw2-runtime-20070407-r1.ebuild:
+ Remove a bunch of unneeded dependencies.
28 Mar 2008; nixnut <nixnut@gentoo.org> txw2-runtime-20070407.ebuild:
Stable on ppc wrt bug 214778
diff --git a/dev-java/txw2-runtime/txw2-runtime-20070407-r1.ebuild b/dev-java/txw2-runtime/txw2-runtime-20070407-r1.ebuild
new file mode 100644
index 000000000000..593a8d015d15
--- /dev/null
+++ b/dev-java/txw2-runtime/txw2-runtime-20070407-r1.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-r1.ebuild,v 1.1 2008/07/30 19:38:48 betelgeuse 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="dev-java/jsr173"
+
+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 jsr173
+
+ 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/*
+}