1 |
commit: d472cb651c1e61ae9e0ceca2a7f123b3c55ff2e0 |
2 |
Author: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Apr 20 13:28:18 2021 +0000 |
4 |
Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Apr 20 13:28:39 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d472cb65 |
7 |
|
8 |
dev-java/jackcess: fixed tests in 4.0.0 + re-added arches |
9 |
|
10 |
Package-Manager: Portage-3.0.18, Repoman-3.0.3 |
11 |
Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org> |
12 |
|
13 |
dev-java/jackcess/files/jackcess-4.0.0-fix-tests.patch | 13 +++++++++++++ |
14 |
dev-java/jackcess/jackcess-4.0.0.ebuild | 14 ++++++++++++-- |
15 |
2 files changed, 25 insertions(+), 2 deletions(-) |
16 |
|
17 |
diff --git a/dev-java/jackcess/files/jackcess-4.0.0-fix-tests.patch b/dev-java/jackcess/files/jackcess-4.0.0-fix-tests.patch |
18 |
new file mode 100644 |
19 |
index 00000000000..221710f4fbe |
20 |
--- /dev/null |
21 |
+++ b/dev-java/jackcess/files/jackcess-4.0.0-fix-tests.patch |
22 |
@@ -0,0 +1,13 @@ |
23 |
+diff --git a/src/test/java/com/healthmarketscience/jackcess/DatabaseTest.java b/src/test/java/com/healthmarketscience/jackcess/DatabaseTest.java |
24 |
+index d127f9f..03885f2 100644 |
25 |
+--- a/src/test/java/com/healthmarketscience/jackcess/DatabaseTest.java |
26 |
++++ b/src/test/java/com/healthmarketscience/jackcess/DatabaseTest.java |
27 |
+@@ -687,7 +687,7 @@ public class DatabaseTest extends TestCase |
28 |
+ |
29 |
+ public void testAncientDates() throws Exception |
30 |
+ { |
31 |
+- TimeZone tz = TimeZone.getTimeZone("America/New_York"); |
32 |
++ TimeZone tz = TimeZone.getTimeZone("UTC"); |
33 |
+ SimpleDateFormat sdf = DatabaseBuilder.createDateFormat("yyyy-MM-dd"); |
34 |
+ sdf.getCalendar().setTimeZone(tz); |
35 |
+ |
36 |
|
37 |
diff --git a/dev-java/jackcess/jackcess-4.0.0.ebuild b/dev-java/jackcess/jackcess-4.0.0.ebuild |
38 |
index c46dd19bf78..cd0a7e10eb1 100644 |
39 |
--- a/dev-java/jackcess/jackcess-4.0.0.ebuild |
40 |
+++ b/dev-java/jackcess/jackcess-4.0.0.ebuild |
41 |
@@ -18,7 +18,7 @@ SRC_URI="https://github.com/jahlborn/${PN}/archive/refs/tags/${P}.tar.gz -> ${P} |
42 |
|
43 |
LICENSE="Apache-2.0" |
44 |
SLOT="1" |
45 |
-KEYWORDS="~amd64 ~ppc64 ~x86" |
46 |
+KEYWORDS="~amd64 ~ppc64 ~x86 ~amd64-linux ~ppc-macos ~x86-linux" |
47 |
|
48 |
# Common dependencies |
49 |
# POM: pom.xml |
50 |
@@ -43,6 +43,10 @@ RDEPEND=" |
51 |
|
52 |
S="${WORKDIR}/${PN}-${P}" |
53 |
|
54 |
+PATCHES=( |
55 |
+ "${FILESDIR}/${P}-fix-tests.patch" |
56 |
+) |
57 |
+ |
58 |
JAVA_GENTOO_CLASSPATH="commons-logging,commons-lang-3.6,poi" |
59 |
JAVA_SRC_DIR="src/main/java" |
60 |
JAVA_RESOURCE_DIRS="src/main/resources" |
61 |
@@ -57,7 +61,13 @@ JAVA_TEST_EXCLUDES=( |
62 |
"com.healthmarketscience.jackcess.TestUtil" |
63 |
) |
64 |
|
65 |
+src_prepare() { |
66 |
+ default |
67 |
+ java-utils-2_src_prepare |
68 |
+} |
69 |
+ |
70 |
src_test() { |
71 |
- TZ=UTC |
72 |
+ export TZ=UTC |
73 |
+ export LC_ALL=C |
74 |
java-pkg-simple_src_test |
75 |
} |