aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Schmaus <flow@gentoo.org>2022-07-23 12:32:23 +0200
committerFlorian Schmaus <flow@gentoo.org>2022-07-23 12:32:23 +0200
commit34ecafa03b04681ab13ca0aab20f544067a62365 (patch)
tree493b0447aa045e91d94b18c16f596e4d82a1e5d3
parentdev-java/saxon: treeclean (diff)
downloadjava-34ecafa03b04681ab13ca0aab20f544067a62365.tar.gz
java-34ecafa03b04681ab13ca0aab20f544067a62365.tar.bz2
java-34ecafa03b04681ab13ca0aab20f544067a62365.zip
dev-java/h2: treeclean
Signed-off-by: Florian Schmaus <flow@gentoo.org>
-rw-r--r--dev-java/h2/Manifest1
-rw-r--r--dev-java/h2/files/osgi-5.patch21
-rw-r--r--dev-java/h2/h2-1.3.176.ebuild86
-rw-r--r--dev-java/h2/metadata.xml13
4 files changed, 0 insertions, 121 deletions
diff --git a/dev-java/h2/Manifest b/dev-java/h2/Manifest
deleted file mode 100644
index 91bafa69..00000000
--- a/dev-java/h2/Manifest
+++ /dev/null
@@ -1 +0,0 @@
-DIST h2-2014-04-05.zip 7791840 SHA256 0febacc399c405e4b58f945f57ac5a38ed6f6c64c049b2fec73f258874a1d346 SHA512 fa778e7d0d3fd1f69a11fa55b0668b6a8e06bc0ea811b904342c92108326f7339ed3e0bb8c86dfff9a16e8954a8c153958f0ebdb2789c8830753330a105159b9 WHIRLPOOL 595a1a2833d16073c0e126b6d5ecaabc9dc8e12e59665553cdc698b757fd1a6b8bcbef1f020fd7d7f319532c022382aec07555d8103786f82450027d344bfb29
diff --git a/dev-java/h2/files/osgi-5.patch b/dev-java/h2/files/osgi-5.patch
deleted file mode 100644
index 7250d2e6..00000000
--- a/dev-java/h2/files/osgi-5.patch
+++ /dev/null
@@ -1,21 +0,0 @@
---- src/main/org/h2/util/DbDriverActivator.java.orig 2016-05-01 22:56:54.730869535 +0100
-+++ src/main/org/h2/util/DbDriverActivator.java 2016-05-01 23:03:37.354040220 +0100
-@@ -6,7 +6,8 @@
- */
- package org.h2.util;
-
--import java.util.Properties;
-+import java.util.Dictionary;
-+import java.util.Hashtable;
- import org.h2.engine.Constants;
- import org.osgi.framework.BundleActivator;
- import org.osgi.framework.BundleContext;
-@@ -27,7 +28,7 @@
- @Override
- public void start(BundleContext bundleContext) {
- org.h2.Driver driver = org.h2.Driver.load();
-- Properties properties = new Properties();
-+ Dictionary<String, Object> properties = new Hashtable<String, Object>();
- properties.put(
- DataSourceFactory.OSGI_JDBC_DRIVER_CLASS,
- org.h2.Driver.class.getName());
diff --git a/dev-java/h2/h2-1.3.176.ebuild b/dev-java/h2/h2-1.3.176.ebuild
deleted file mode 100644
index acbc6570..00000000
--- a/dev-java/h2/h2-1.3.176.ebuild
+++ /dev/null
@@ -1,86 +0,0 @@
-# Copyright 1999-2016 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI=5
-
-MY_PV="2014-04-05"
-JAVA_PKG_IUSE="doc"
-
-inherit eutils 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"
-
-# The tests are highly explosive, even using upstream's scripts, and
-# take ages to run. They seem to require quite a particular environment.
-RESTRICT="test"
-
-CDEPEND="dev-java/jts-core:0
- dev-java/lucene:3.6
- dev-java/osgi-core-api:0
- dev-java/osgi-enterprise-api:0
- dev-java/slf4j-api:0
- java-virtuals/servlet-api:2.4"
-
-DEPEND="${CDEPEND}
- app-arch/unzip
- app-arch/zip
- >=virtual/jdk-1.7"
-
-RDEPEND="${CDEPEND}
- >=virtual/jre-1.7"
-
-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="jts-core,lucene-3.6,osgi-core-api,osgi-enterprise-api,servlet-api-2.4,slf4j-api"
-
-java_prepare() {
- # Compatibility with OSGi 5.
- epatch "${FILESDIR}/osgi-5.patch"
-
- # Uncomment the Java 7 methods as we are at least targeting that.
- find -name "*.java" -exec sed -i "/\/\*## Java 1\.7 ##/s:/*://:" {} + || 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() {
- 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-4.0,jdbc-mysql,jdbc-postgresql
-
- if use doc; then
- dodoc "docs/${PN}.pdf"
- docinto html
- dodoc -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
deleted file mode 100644
index 1e435a1e..00000000
--- a/dev-java/h2/metadata.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
-<maintainer type="project">
-<email>java@gentoo.org</email>
-<name>Java</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>