commit:     d472cb651c1e61ae9e0ceca2a7f123b3c55ff2e0
Author:     Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
AuthorDate: Tue Apr 20 13:28:18 2021 +0000
Commit:     Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
CommitDate: Tue Apr 20 13:28:39 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d472cb65

dev-java/jackcess: fixed tests in 4.0.0 + re-added arches

Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org>

 dev-java/jackcess/files/jackcess-4.0.0-fix-tests.patch | 13 +++++++++++++
 dev-java/jackcess/jackcess-4.0.0.ebuild                | 14 ++++++++++++--
 2 files changed, 25 insertions(+), 2 deletions(-)

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
new file mode 100644
index 00000000000..221710f4fbe
--- /dev/null
+++ b/dev-java/jackcess/files/jackcess-4.0.0-fix-tests.patch
@@ -0,0 +1,13 @@
+diff --git a/src/test/java/com/healthmarketscience/jackcess/DatabaseTest.java 
b/src/test/java/com/healthmarketscience/jackcess/DatabaseTest.java
+index d127f9f..03885f2 100644
+--- a/src/test/java/com/healthmarketscience/jackcess/DatabaseTest.java
++++ b/src/test/java/com/healthmarketscience/jackcess/DatabaseTest.java
+@@ -687,7 +687,7 @@ public class DatabaseTest extends TestCase
+ 
+   public void testAncientDates() throws Exception
+   {
+-    TimeZone tz = TimeZone.getTimeZone("America/New_York");
++    TimeZone tz = TimeZone.getTimeZone("UTC");
+     SimpleDateFormat sdf = DatabaseBuilder.createDateFormat("yyyy-MM-dd");
+     sdf.getCalendar().setTimeZone(tz);
+ 

diff --git a/dev-java/jackcess/jackcess-4.0.0.ebuild 
b/dev-java/jackcess/jackcess-4.0.0.ebuild
index c46dd19bf78..cd0a7e10eb1 100644
--- a/dev-java/jackcess/jackcess-4.0.0.ebuild
+++ b/dev-java/jackcess/jackcess-4.0.0.ebuild
@@ -18,7 +18,7 @@ 
SRC_URI="https://github.com/jahlborn/${PN}/archive/refs/tags/${P}.tar.gz -> ${P}
 
 LICENSE="Apache-2.0"
 SLOT="1"
-KEYWORDS="~amd64 ~ppc64 ~x86"
+KEYWORDS="~amd64 ~ppc64 ~x86 ~amd64-linux ~ppc-macos ~x86-linux"
 
 # Common dependencies
 # POM: pom.xml
@@ -43,6 +43,10 @@ RDEPEND="
 
 S="${WORKDIR}/${PN}-${P}"
 
+PATCHES=(
+       "${FILESDIR}/${P}-fix-tests.patch"
+)
+
 JAVA_GENTOO_CLASSPATH="commons-logging,commons-lang-3.6,poi"
 JAVA_SRC_DIR="src/main/java"
 JAVA_RESOURCE_DIRS="src/main/resources"
@@ -57,7 +61,13 @@ JAVA_TEST_EXCLUDES=(
        "com.healthmarketscience.jackcess.TestUtil"
 )
 
+src_prepare() {
+       default
+       java-utils-2_src_prepare
+}
+
 src_test() {
-       TZ=UTC
+       export TZ=UTC
+       export LC_ALL=C
        java-pkg-simple_src_test
 }

Reply via email to