1 |
commit: 1be22fc2540af3d5a9023fde3255b3d53db1958a |
2 |
Author: James Le Cuirot <chewi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon May 2 14:41:19 2016 +0000 |
4 |
Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon May 2 14:41:19 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/java.git/commit/?id=1be22fc2 |
7 |
|
8 |
dev-java/h2: Version bump to 1.3.176 |
9 |
|
10 |
Package-Manager: portage-2.2.28 |
11 |
|
12 |
dev-java/h2/Manifest | 2 +- |
13 |
dev-java/h2/files/osgi-5.patch | 21 +++++++++++ |
14 |
.../h2/{h2-1.3.161.ebuild => h2-1.3.176.ebuild} | 44 +++++++++++----------- |
15 |
3 files changed, 44 insertions(+), 23 deletions(-) |
16 |
|
17 |
diff --git a/dev-java/h2/Manifest b/dev-java/h2/Manifest |
18 |
index 4ef6aa1..91bafa6 100644 |
19 |
--- a/dev-java/h2/Manifest |
20 |
+++ b/dev-java/h2/Manifest |
21 |
@@ -1 +1 @@ |
22 |
-DIST h2-2011-10-28.zip 6008034 SHA256 83b3b9a92a84d192ccf450618b1d52b76ff8fb940e8ceab6e18918a60d3e67ef |
23 |
+DIST h2-2014-04-05.zip 7791840 SHA256 0febacc399c405e4b58f945f57ac5a38ed6f6c64c049b2fec73f258874a1d346 SHA512 fa778e7d0d3fd1f69a11fa55b0668b6a8e06bc0ea811b904342c92108326f7339ed3e0bb8c86dfff9a16e8954a8c153958f0ebdb2789c8830753330a105159b9 WHIRLPOOL 595a1a2833d16073c0e126b6d5ecaabc9dc8e12e59665553cdc698b757fd1a6b8bcbef1f020fd7d7f319532c022382aec07555d8103786f82450027d344bfb29 |
24 |
|
25 |
diff --git a/dev-java/h2/files/osgi-5.patch b/dev-java/h2/files/osgi-5.patch |
26 |
new file mode 100644 |
27 |
index 0000000..7250d2e |
28 |
--- /dev/null |
29 |
+++ b/dev-java/h2/files/osgi-5.patch |
30 |
@@ -0,0 +1,21 @@ |
31 |
+--- src/main/org/h2/util/DbDriverActivator.java.orig 2016-05-01 22:56:54.730869535 +0100 |
32 |
++++ src/main/org/h2/util/DbDriverActivator.java 2016-05-01 23:03:37.354040220 +0100 |
33 |
+@@ -6,7 +6,8 @@ |
34 |
+ */ |
35 |
+ package org.h2.util; |
36 |
+ |
37 |
+-import java.util.Properties; |
38 |
++import java.util.Dictionary; |
39 |
++import java.util.Hashtable; |
40 |
+ import org.h2.engine.Constants; |
41 |
+ import org.osgi.framework.BundleActivator; |
42 |
+ import org.osgi.framework.BundleContext; |
43 |
+@@ -27,7 +28,7 @@ |
44 |
+ @Override |
45 |
+ public void start(BundleContext bundleContext) { |
46 |
+ org.h2.Driver driver = org.h2.Driver.load(); |
47 |
+- Properties properties = new Properties(); |
48 |
++ Dictionary<String, Object> properties = new Hashtable<String, Object>(); |
49 |
+ properties.put( |
50 |
+ DataSourceFactory.OSGI_JDBC_DRIVER_CLASS, |
51 |
+ org.h2.Driver.class.getName()); |
52 |
|
53 |
diff --git a/dev-java/h2/h2-1.3.161.ebuild b/dev-java/h2/h2-1.3.176.ebuild |
54 |
similarity index 63% |
55 |
rename from dev-java/h2/h2-1.3.161.ebuild |
56 |
rename to dev-java/h2/h2-1.3.176.ebuild |
57 |
index 1c03830..acbc657 100644 |
58 |
--- a/dev-java/h2/h2-1.3.161.ebuild |
59 |
+++ b/dev-java/h2/h2-1.3.176.ebuild |
60 |
@@ -1,14 +1,13 @@ |
61 |
-# Copyright 1999-2015 Gentoo Foundation |
62 |
+# Copyright 1999-2016 Gentoo Foundation |
63 |
# Distributed under the terms of the GNU General Public License v2 |
64 |
# $Id$ |
65 |
|
66 |
-EAPI="4" |
67 |
-MY_PV="2011-10-28" |
68 |
+EAPI=5 |
69 |
|
70 |
+MY_PV="2014-04-05" |
71 |
JAVA_PKG_IUSE="doc" |
72 |
-JAVA_PKG_WANT_BOOTCLASSPATH="1.5" |
73 |
|
74 |
-inherit java-pkg-2 java-pkg-simple |
75 |
+inherit eutils java-pkg-2 java-pkg-simple |
76 |
|
77 |
DESCRIPTION="Java SQL Database" |
78 |
HOMEPAGE="http://www.h2database.com/" |
79 |
@@ -16,36 +15,36 @@ SRC_URI="http://www.h2database.com/${PN}-${MY_PV}.zip" |
80 |
LICENSE="EPL-1.0 H2-1.0" |
81 |
SLOT="0" |
82 |
KEYWORDS="~amd64 ~x86" |
83 |
-IUSE="" |
84 |
|
85 |
-# Some tests fail even outside of Portage using upstream's own |
86 |
-# scripts. The failures we get here appear to be the same. |
87 |
+# The tests are highly explosive, even using upstream's scripts, and |
88 |
+# take ages to run. They seem to require quite a particular environment. |
89 |
RESTRICT="test" |
90 |
|
91 |
-CDEPEND="dev-java/lucene:3.0 |
92 |
+CDEPEND="dev-java/jts-core:0 |
93 |
+ dev-java/lucene:3.6 |
94 |
+ dev-java/osgi-core-api:0 |
95 |
+ dev-java/osgi-enterprise-api:0 |
96 |
dev-java/slf4j-api:0 |
97 |
- dev-java/tomcat-servlet-api:2.4" |
98 |
+ java-virtuals/servlet-api:2.4" |
99 |
|
100 |
DEPEND="${CDEPEND} |
101 |
app-arch/unzip |
102 |
app-arch/zip |
103 |
- >=virtual/jdk-1.6" |
104 |
+ >=virtual/jdk-1.7" |
105 |
|
106 |
RDEPEND="${CDEPEND} |
107 |
- >=virtual/jre-1.6" |
108 |
+ >=virtual/jre-1.7" |
109 |
|
110 |
S="${WORKDIR}/${PN}" |
111 |
JAVA_SRC_DIR="src/main src/tools/org/h2/dev src/tools/org/h2/jaqu src/tools/org/h2/mode" |
112 |
-JAVA_GENTOO_CLASSPATH="lucene-3.0,slf4j-api,tomcat-servlet-api-2.4" |
113 |
+JAVA_GENTOO_CLASSPATH="jts-core,lucene-3.6,osgi-core-api,osgi-enterprise-api,servlet-api-2.4,slf4j-api" |
114 |
|
115 |
java_prepare() { |
116 |
- if use test; then |
117 |
- # This test uses way too much RAM and dies? But isn't that the point? |
118 |
- sed -i "/TestOutOfMemory/d" "src/test/org/h2/test/TestAll.java" || die |
119 |
- fi |
120 |
+ # Compatibility with OSGi 5. |
121 |
+ epatch "${FILESDIR}/osgi-5.patch" |
122 |
|
123 |
- # Avoid the OSGi Framework stuff. |
124 |
- rm -v "src/main/org/h2/util/DbDriverActivator.java" || die |
125 |
+ # Uncomment the Java 7 methods as we are at least targeting that. |
126 |
+ find -name "*.java" -exec sed -i "/\/\*## Java 1\.7 ##/s:/*://:" {} + || die |
127 |
|
128 |
# Extract metadata from the binary. |
129 |
mkdir -p target/classes || die |
130 |
@@ -54,7 +53,7 @@ java_prepare() { |
131 |
} |
132 |
|
133 |
src_compile() { |
134 |
- JAVAC_ARGS="-Xbootclasspath/p:$(java-pkg_get-bootclasspath 1.5)" java-pkg-simple_src_compile |
135 |
+ java-pkg-simple_src_compile |
136 |
|
137 |
# See src/tools/org/h2/build/Build.java. |
138 |
local DATA="org/h2/util/data.zip" |
139 |
@@ -67,11 +66,12 @@ src_compile() { |
140 |
src_install() { |
141 |
java-pkg-simple_src_install |
142 |
java-pkg_dolauncher "${PN}" --main org.h2.tools.Console |
143 |
- java-pkg_register-optional-dependency hsqldb,jdbc-jaybird,jdbc-mssqlserver,jdbc-mssqlserver-2005,jdbc-mysql,jdbc-postgresql |
144 |
+ java-pkg_register-optional-dependency hsqldb,jdbc-jaybird,jdbc-mssqlserver-4.0,jdbc-mysql,jdbc-postgresql |
145 |
|
146 |
if use doc; then |
147 |
dodoc "docs/${PN}.pdf" |
148 |
- dohtml -r docs/index.html docs/html |
149 |
+ docinto html |
150 |
+ dodoc -r docs/index.html docs/html |
151 |
ln -snf "api" "${D}/usr/share/doc/${PF}/html/javadoc" || die |
152 |
ln -snf "../${PN}.pdf" "${D}/usr/share/doc/${PF}/html/" || die |
153 |
fi |