summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc-Antoine Perennou <Marc-Antoine@Perennou.com>2010-01-30 11:18:14 +0100
committerMarc-Antoine Perennou <Marc-Antoine@Perennou.com>2010-01-30 11:18:14 +0100
commit6bffece0a472f5d47003adc01e7ca275a7bfcca9 (patch)
treec5cc7263e014966edca726cee104c19a98acca3f /dev-java
parentnm-pptp (diff)
downloadkeruspe-6bffece0a472f5d47003adc01e7ca275a7bfcca9.tar.gz
keruspe-6bffece0a472f5d47003adc01e7ca275a7bfcca9.tar.bz2
keruspe-6bffece0a472f5d47003adc01e7ca275a7bfcca9.zip
jdk[<1.6] is bad
Diffstat (limited to 'dev-java')
-rw-r--r--dev-java/dom4j/Manifest3
-rw-r--r--dev-java/dom4j/dom4j-1.6.1-r3.ebuild72
-rw-r--r--dev-java/icu4j/Manifest4
-rw-r--r--dev-java/icu4j/files/icu4j-3.8.1-manifest21
-rw-r--r--dev-java/icu4j/icu4j-3.8.1-r1.ebuild53
5 files changed, 153 insertions, 0 deletions
diff --git a/dev-java/dom4j/Manifest b/dev-java/dom4j/Manifest
new file mode 100644
index 00000000..f5c51e65
--- /dev/null
+++ b/dev-java/dom4j/Manifest
@@ -0,0 +1,3 @@
+EBUILD dom4j-1.6.1-r3.ebuild 1795 RMD160 92afa52e0bbdb089a0252ff3990315d98f75a774 SHA1 68a61ef9075b5526c4ad1c174640c5f67d83ba81 SHA256 e180744895ceef392e615086ca65d2e17fd421603927f583046f4055d832824a
+DIST dom4j-1.6.1.tar.gz 9687211 RMD160 d990d712a6b58c799366c526b32eb6c84a81e29c SHA1 8a2ab8af1dd039c449032ad50f3dd050647d7ce8 SHA256 01b4abf86bce337a2a900bf121b3107320ba63b4c0f352e1922fbec6e0736c6f
+DIST dom4j-1.6.1-java5.patch.bz2 2900 RMD160 cb153194e3b5d13626486d8f376b76f0925448c8 SHA1 468330fe079e8c1c13e935da18a49b10163dcb86 SHA256 5e7361eac5332c3380420bd88c2d3a2d4dde30984486c6d4f7e4621940abb42d
diff --git a/dev-java/dom4j/dom4j-1.6.1-r3.ebuild b/dev-java/dom4j/dom4j-1.6.1-r3.ebuild
new file mode 100644
index 00000000..f0fd5c4b
--- /dev/null
+++ b/dev-java/dom4j/dom4j-1.6.1-r3.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Copyright 2009-2010 Marc-Antoine Perennou
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="2"
+JAVA_PKG_IUSE="doc source test"
+
+inherit java-pkg-2 java-ant-2
+
+DESCRIPTION="Java library for working with XML"
+HOMEPAGE="http://dom4j.sourceforge.net/"
+SRC_URI="mirror://sourceforge/dom4j/${P}.tar.gz
+ mirror://gentoo/${P}-java5.patch.bz2"
+LICENSE="dom4j"
+SLOT="1"
+KEYWORDS="amd64 ~ia64 ppc ppc64 x86 ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x64-solaris"
+IUSE=""
+RDEPEND=">=virtual/jre-1.4
+ dev-java/jaxme:0
+ dev-java/jsr173:0
+ >=dev-java/msv-20050627-r2:0
+ dev-java/xpp2:0
+ dev-java/xpp3:0
+ dev-java/relaxng-datatype:0
+ dev-java/xerces:2
+ >=dev-java/xsdlib-20050627-r2:0
+ dev-java/xml-commons-external:1.3"
+DEPEND="
+ >=virtual/jdk-1.5
+ dev-java/ant-junit:0
+ dev-java/xalan:0
+ dev-java/junitperf:0
+ ${RDEPEND}"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${WORKDIR}/${P}-java5.patch"
+
+ rm -v ./src/test/org/dom4j/bean/BeansTest.java || die
+ rm -v *.jar || die
+ cd "${S}/lib"
+ rm -f $(echo *.jar | sed 's/jaxen[^ ]\+//')
+ java-pkg_jar-from jaxme
+ java-pkg_jar-from jsr173
+ java-pkg_jar-from msv
+ java-pkg_jar-from xpp2
+ java-pkg_jar-from xpp3
+ java-pkg_jar-from relaxng-datatype
+ java-pkg_jar-from xsdlib
+ java-pkg_jar-from xml-commons-external-1.3
+
+ cd "${S}/lib/endorsed"
+ rm -v *.jar || die
+ java-pkg_jar-from xerces-2 || die
+
+ rm -vr "${S}"/lib/test/* || die
+ if use test; then
+ java-pkg_jar-from --build-only xalan,junitperf,junit
+ fi
+ rm -vr "${S}"/lib/tools/* || die
+}
+
+EANT_BUILD_TARGET="clean package"
+EANT_EXTRA_ARGS="-Dbuild.javadocs=build/doc/api"
+
+src_install() {
+ java-pkg_dojar build/${PN}.jar
+ use doc && java-pkg_dojavadoc build/doc/api
+ use source && java-pkg_dosrc src/java/*
+}
diff --git a/dev-java/icu4j/Manifest b/dev-java/icu4j/Manifest
new file mode 100644
index 00000000..501a1c76
--- /dev/null
+++ b/dev-java/icu4j/Manifest
@@ -0,0 +1,4 @@
+AUX icu4j-3.8.1-manifest 781 RMD160 a7ed98a6cd2977a8dfbcf4231dc06b5fb0b0dcf9 SHA1 57d00b01e51fe5c196ea51bfa841326b6ab6ea63 SHA256 1a1db870dac202bf316d4a13b92551d4223a49b7ed8182a17fd053ed03953826
+EBUILD icu4j-3.8.1-r1.ebuild 1413 RMD160 edcb1372955c0aea1a22ed1a36262ebbec481987 SHA1 e9139aab2e613d212704aa5c9f6b92e6ea0a7e23 SHA256 e97f254f3b1f04b65b689367925a219d3dd8839e0f53889192d1955d8a7b2c4f
+DIST icu4j-3_8_1-src.jar 13782832 RMD160 8b0feb5d956b4d82ecc69e8da89c572c5c25cc8c SHA1 420d988835f6ac4582ebab90a0f97d2800a8bc4e SHA256 c6b42a4a9fe0d13302897ee0bf2c955b8a7a02af1ee01ad9cdb61a515638ca0f
+DIST icu4j-3_8_1-docs.jar 1470606 RMD160 8131fc868505050ded8563618f3a287e0a57d8eb SHA1 261ba7e69c97e1ea98f08c878280f9cc313184af SHA256 e3acbb4523ebf90288bde1ff4ebe16241ff8d5a3e53ce9e29636f569a42f0b46
diff --git a/dev-java/icu4j/files/icu4j-3.8.1-manifest b/dev-java/icu4j/files/icu4j-3.8.1-manifest
new file mode 100644
index 00000000..ae7ac129
--- /dev/null
+++ b/dev-java/icu4j/files/icu4j-3.8.1-manifest
@@ -0,0 +1,21 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: %bundleName
+Bundle-Vendor: %vendorName
+Bundle-SymbolicName: com.ibm.icu; singleton:=true
+Bundle-Version: 3.8.1.1
+Bundle-Localization: plugin
+Export-Package: com.ibm.icu.lang;version="3.8.1",
+ com.ibm.icu.math;version="3.8.1",
+ com.ibm.icu.text;version="3.8.1",
+ com.ibm.icu.util;version="3.8.1",
+ com.ibm.icu.impl;x-internal:=true,
+ com.ibm.icu.impl.data;x-internal:=true,
+ com.ibm.icu.impl.data.icudt38b;x-internal:=true,
+ com.ibm.icu.impl.data.icudt38b.brkitr;x-internal:=true,
+ com.ibm.icu.impl.data.icudt38b.coll;x-internal:=true,
+ com.ibm.icu.impl.data.icudt38b.rbnf;x-internal:=true,
+ com.ibm.icu.impl.data.icudt38b.translit;x-internal:=true
+Eclipse-LazyStart: true
+Bundle-ClassPath: .
+Eclipse-ExtensibleAPI: true
diff --git a/dev-java/icu4j/icu4j-3.8.1-r1.ebuild b/dev-java/icu4j/icu4j-3.8.1-r1.ebuild
new file mode 100644
index 00000000..96ece317
--- /dev/null
+++ b/dev-java/icu4j/icu4j-3.8.1-r1.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Copyright 2009-2010 Marc-Antoine Perennou
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="2"
+JAVA_PKG_IUSE="source"
+
+inherit java-pkg-2 java-ant-2 java-osgi
+
+DESCRIPTION="ICU4J is a set of Java libraries providing Unicode and Globalization support."
+MY_PV=${PV//./_}
+
+SRC_URI="http://download.icu-project.org/files/${PN}/${PV}/${PN}-${MY_PV}-src.jar
+ doc? ( http://download.icu-project.org/files/${PN}/${PV}/${PN}-${MY_PV}-docs.jar )"
+
+HOMEPAGE="http://www.icu-project.org/"
+LICENSE="icu"
+SLOT="0"
+KEYWORDS="amd64 ~ia64 ppc ppc64 x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
+
+RDEPEND=">=virtual/jre-1.4"
+
+DEPEND="
+ || ( =virtual/jdk-1.6* =virtual/jdk-1.5* =virtual/jdk-1.4* )
+ app-arch/unzip"
+
+IUSE="doc"
+
+S="${WORKDIR}"
+
+src_unpack() {
+ jar -xf "${DISTDIR}/${PN}-${MY_PV}-src.jar" || die "Failed to unpack"
+
+ if use doc; then
+ mkdir docs; cd docs
+ jar -xf "${DISTDIR}/${PN}-${MY_PV}-docs.jar" || die "Failed to unpack docs"
+ fi
+}
+
+src_compile() {
+ java-pkg_force-compiler javac
+ eant jar || die "Compile failed"
+}
+
+src_install() {
+ java-osgi_newjar-fromfile --no-auto-version "${PN}.jar" "${FILESDIR}/icu4j-${PV}-manifest" \
+ "International Components for Unicode for Java (ICU4J)"
+ java-pkg_dojar "${PN}-charsets.jar"
+
+ use doc && dohtml -r readme.html docs/*
+ use source && java-pkg_dosrc src/*
+}