summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Köster <fabian.koester@posteo.de>2015-10-10 16:08:52 +0200
committerFabian Köster <fabian.koester@posteo.de>2015-10-10 16:08:52 +0200
commit49aa54ae2c0740da0de1e7a38b55ca3ef57ce385 (patch)
tree42fb6ae4ad5432f8e21445f4a4138873e691b934 /dev-java
parentUse consistent repository names (diff)
downloadhibiscus-49aa54ae2c0740da0de1e7a38b55ca3ef57ce385.tar.gz
hibiscus-49aa54ae2c0740da0de1e7a38b55ca3ef57ce385.tar.bz2
hibiscus-49aa54ae2c0740da0de1e7a38b55ca3ef57ce385.zip
Copy dev-java/h2 and dev-java/swtcalendar from java overlay in order to
make this repository self-contained.
Diffstat (limited to 'dev-java')
-rw-r--r--dev-java/h2/Manifest3
-rw-r--r--dev-java/h2/h2-1.3.161.ebuild86
-rw-r--r--dev-java/h2/metadata.xml15
-rw-r--r--dev-java/swtcalendar/Manifest1
-rw-r--r--dev-java/swtcalendar/metadata.xml9
-rw-r--r--dev-java/swtcalendar/swtcalendar-0.5.ebuild40
6 files changed, 152 insertions, 2 deletions
diff --git a/dev-java/h2/Manifest b/dev-java/h2/Manifest
index d6bdba1..4ef6aa1 100644
--- a/dev-java/h2/Manifest
+++ b/dev-java/h2/Manifest
@@ -1,2 +1 @@
-DIST h2-2013-10-19.zip 7563851 SHA256 2f7d36f2ef5ec2274e46019ddb1fbf7e98870513a46fd6771760102d74cbe194 SHA512 818c0a61db06a79f1843447097eaf308d894be8a6870f455be592dfe50a937cbd1cf297fbc0779560f4e81072af981d5039ba90c520194aa44de83d02fed6254 WHIRLPOOL 30ceabb674951c679d4e97f1832d7e6c7c742e5b66ba5467fb8ce06cb179228a4c187f41678db497ba0822c256e4b88e25a0bd02183d0351a02e064524ff699f
-EBUILD h2-1.3.174.ebuild 2453 SHA256 31f174176848054e617878f403f120db4fd9e7fb98e47c433a54ba0217d2b903 SHA512 a42a4b8c3c970ce1f0418ba2f03d896acf952a3eede1bf0ee497f1c84962cd4a7349fc22587bc11ebc70b633e34251a88051dc2f6b1b134106af0ed3e2c783d9 WHIRLPOOL 5c8c3a08e10ac053aa75e6de52487f8426d568d8ee607b3f0ec627c749084d65713862453716628a2935bcf2e9376991f1d943ef47b08114e6c8e68667da426f
+DIST h2-2011-10-28.zip 6008034 SHA256 83b3b9a92a84d192ccf450618b1d52b76ff8fb940e8ceab6e18918a60d3e67ef
diff --git a/dev-java/h2/h2-1.3.161.ebuild b/dev-java/h2/h2-1.3.161.ebuild
new file mode 100644
index 0000000..1c03830
--- /dev/null
+++ b/dev-java/h2/h2-1.3.161.ebuild
@@ -0,0 +1,86 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="4"
+MY_PV="2011-10-28"
+
+JAVA_PKG_IUSE="doc"
+JAVA_PKG_WANT_BOOTCLASSPATH="1.5"
+
+inherit java-pkg-2 java-pkg-simple
+
+DESCRIPTION="Java SQL Database"
+HOMEPAGE="http://www.h2database.com/"
+SRC_URI="http://www.h2database.com/${PN}-${MY_PV}.zip"
+LICENSE="EPL-1.0 H2-1.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+# Some tests fail even outside of Portage using upstream's own
+# scripts. The failures we get here appear to be the same.
+RESTRICT="test"
+
+CDEPEND="dev-java/lucene:3.0
+ dev-java/slf4j-api:0
+ dev-java/tomcat-servlet-api:2.4"
+
+DEPEND="${CDEPEND}
+ app-arch/unzip
+ app-arch/zip
+ >=virtual/jdk-1.6"
+
+RDEPEND="${CDEPEND}
+ >=virtual/jre-1.6"
+
+S="${WORKDIR}/${PN}"
+JAVA_SRC_DIR="src/main src/tools/org/h2/dev src/tools/org/h2/jaqu src/tools/org/h2/mode"
+JAVA_GENTOO_CLASSPATH="lucene-3.0,slf4j-api,tomcat-servlet-api-2.4"
+
+java_prepare() {
+ if use test; then
+ # This test uses way too much RAM and dies? But isn't that the point?
+ sed -i "/TestOutOfMemory/d" "src/test/org/h2/test/TestAll.java" || die
+ fi
+
+ # Avoid the OSGi Framework stuff.
+ rm -v "src/main/org/h2/util/DbDriverActivator.java" || die
+
+ # Extract metadata from the binary.
+ mkdir -p target/classes || die
+ cd target/classes || die
+ jar xf "${S}/bin/${PN}"-*.jar META-INF || die
+}
+
+src_compile() {
+ JAVAC_ARGS="-Xbootclasspath/p:$(java-pkg_get-bootclasspath 1.5)" java-pkg-simple_src_compile
+
+ # See src/tools/org/h2/build/Build.java.
+ local DATA="org/h2/util/data.zip"
+ cd src/main || die
+ rm -f "${DATA}" || die
+ zip "${DATA}" $(find -type f ! -name "*.MF" ! -name "*.java" ! -name "package.html" ! -name "java.sql.Driver") || die
+ jar uf "${S}/${PN}.jar" "${DATA}" || die
+}
+
+src_install() {
+ java-pkg-simple_src_install
+ java-pkg_dolauncher "${PN}" --main org.h2.tools.Console
+ java-pkg_register-optional-dependency hsqldb,jdbc-jaybird,jdbc-mssqlserver,jdbc-mssqlserver-2005,jdbc-mysql,jdbc-postgresql
+
+ if use doc; then
+ dodoc "docs/${PN}.pdf"
+ dohtml -r docs/index.html docs/html
+ ln -snf "api" "${D}/usr/share/doc/${PF}/html/javadoc" || die
+ ln -snf "../${PN}.pdf" "${D}/usr/share/doc/${PF}/html/" || die
+ fi
+}
+
+src_test() {
+ local CP=$(java-config -t):$(java-config -d -p "${JAVA_GENTOO_CLASSPATH}"):"${S}/${PN}.jar"
+
+ cd src/test || die
+ ejavac -classpath "${CP}" $(find -name "*.java")
+ java -classpath "${CP}:." org.h2.test.TestAll all || die
+}
diff --git a/dev-java/h2/metadata.xml b/dev-java/h2/metadata.xml
new file mode 100644
index 0000000..ee0cab6
--- /dev/null
+++ b/dev-java/h2/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>java</herd>
+<maintainer>
+<email>chewi at aura-online.co.uk</email>
+<name>James Le Cuirot</name>
+</maintainer>
+<longdescription lang="en">
+H2 is a relational database management system written in Java. It can
+be embedded in Java applications or run in the client-server mode. The
+disk footprint (size of the jar file) is about 1 MB.
+</longdescription>
+</pkgmetadata>
+
diff --git a/dev-java/swtcalendar/Manifest b/dev-java/swtcalendar/Manifest
new file mode 100644
index 0000000..4f62f72
--- /dev/null
+++ b/dev-java/swtcalendar/Manifest
@@ -0,0 +1 @@
+DIST swtcalendar-src-0.5.zip 25326 SHA256 06364f4bac498320d5f23dd7710cc87e6ae56452afefa61886a2a50955c6ba0a
diff --git a/dev-java/swtcalendar/metadata.xml b/dev-java/swtcalendar/metadata.xml
new file mode 100644
index 0000000..07d2f44
--- /dev/null
+++ b/dev-java/swtcalendar/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>java</herd>
+ <longdescription lang="en">
+ SWTCalendar is a port of Kai Toedter's JCalendar to Eclipse's SWT. It is a GUI date picker for Java using SWT as the GUI toolkit. SWTCalendar was designed to be a flexible component so developer can embed a date picker in their application or create their own standalone date picker dialog.
+ </longdescription>
+</pkgmetadata>
+
diff --git a/dev-java/swtcalendar/swtcalendar-0.5.ebuild b/dev-java/swtcalendar/swtcalendar-0.5.ebuild
new file mode 100644
index 0000000..ad99f3d
--- /dev/null
+++ b/dev-java/swtcalendar/swtcalendar-0.5.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="2"
+
+JAVA_PKG_IUSE="source"
+
+inherit java-pkg-2 java-ant-2
+
+DESCRIPTION="A port of Kai Toedter's JCalendar to Eclipse's SWT."
+HOMEPAGE="http://swtcalendar.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}/${PN}-src-${PV}.zip"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+
+IUSE=""
+
+COMMON_DEP="dev-java/swt:3.5"
+
+RDEPEND=">=virtual/jre-1.4
+ ${COMMON_DEP}"
+DEPEND=">=virtual/jdk-1.4
+ app-arch/unzip
+ ${COMMON_DEP}"
+
+S="${WORKDIR}/${PN}"
+
+src_prepare() {
+ mkdir -p lib || die
+ java-pkg_jar-from --into lib swt-3.5 swt.jar
+}
+
+src_install() {
+ java-pkg_dojar "${PN}.jar"
+ use source && java-pkg_dosrc src
+}
+