summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiroslav Šulc <fordfrog@gentoo.org>2012-01-06 10:55:01 +0000
committerMiroslav Šulc <fordfrog@gentoo.org>2012-01-06 10:55:01 +0000
commita511707aa57332c19f6a5a51cb8d848880785370 (patch)
treeb9ee76c47ee4eabfcd11feef137f1dacda0e61d8 /dev-java/ws-commons-util
parentold (diff)
downloadgentoo-2-a511707aa57332c19f6a5a51cb8d848880785370.tar.gz
gentoo-2-a511707aa57332c19f6a5a51cb8d848880785370.tar.bz2
gentoo-2-a511707aa57332c19f6a5a51cb8d848880785370.zip
dev-java/ws-commons-util: new package
(Portage version: 2.1.10.44/cvs/Linux x86_64)
Diffstat (limited to 'dev-java/ws-commons-util')
-rw-r--r--dev-java/ws-commons-util/ChangeLog10
-rw-r--r--dev-java/ws-commons-util/metadata.xml6
-rw-r--r--dev-java/ws-commons-util/ws-commons-util-1.0.1.ebuild42
3 files changed, 58 insertions, 0 deletions
diff --git a/dev-java/ws-commons-util/ChangeLog b/dev-java/ws-commons-util/ChangeLog
new file mode 100644
index 000000000000..db6dcaf298c4
--- /dev/null
+++ b/dev-java/ws-commons-util/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for dev-java/ws-commons-util
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/ws-commons-util/ChangeLog,v 1.1 2012/01/06 10:55:01 fordfrog Exp $
+
+*ws-commons-util-1.0.1 (06 Jan 2012)
+
+ 06 Jan 2012; Miroslav Šulc <fordfrog@gentoo.org>
+ +ws-commons-util-1.0.1.ebuild, +metadata.xml:
+ New package, moved from java-overlay
+
diff --git a/dev-java/ws-commons-util/metadata.xml b/dev-java/ws-commons-util/metadata.xml
new file mode 100644
index 000000000000..604e0a4238bb
--- /dev/null
+++ b/dev-java/ws-commons-util/metadata.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>java</herd>
+</pkgmetadata>
+
diff --git a/dev-java/ws-commons-util/ws-commons-util-1.0.1.ebuild b/dev-java/ws-commons-util/ws-commons-util-1.0.1.ebuild
new file mode 100644
index 000000000000..b6e43f0e2996
--- /dev/null
+++ b/dev-java/ws-commons-util/ws-commons-util-1.0.1.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/ws-commons-util/ws-commons-util-1.0.1.ebuild,v 1.1 2012/01/06 10:55:01 fordfrog Exp $
+
+EAPI="1"
+JAVA_PKG_IUSE="source test"
+inherit java-pkg-2
+
+DESCRIPTION="Utility classes that allow high performance XML processing based on SAX"
+HOMEPAGE="http://ws.apache.org/commons/util/"
+SRC_URI="mirror://apache/ws/commons/util/sources/${P}-src.tar.gz"
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND=">=virtual/jdk-1.4
+ test? ( dev-java/junit:0 )"
+
+RDEPEND=">=virtual/jre-1.4"
+
+src_compile() {
+ mkdir -p bin || die
+ ejavac -d bin `find src/main -name "*.java" || die`
+ `java-config -j` cvf "${PN}.jar" -C bin . || die
+}
+
+src_install() {
+ java-pkg_dojar "${PN}.jar"
+ use source && java-pkg_dosrc src/main/java/*
+}
+
+src_test() {
+ local class files=`find src/test -name "*.java" || die`
+ ejavac -cp bin:`java-pkg_getjars junit` -d bin ${files}
+
+ for class in ${files} ; do
+ class=${class#src/test/java/}
+ class=${class%.java}
+ ejunit -cp bin ${class//\//.}
+ done
+}