public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Miroslav Šulc" <fordfrog@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-java/spin/
Date: Wed, 23 Feb 2022 09:25:51 +0000 (UTC)	[thread overview]
Message-ID: <1645608259.959ee09256fbdea4b4f37a31de9dc81ca91032eb.fordfrog@gentoo> (raw)

commit:     959ee09256fbdea4b4f37a31de9dc81ca91032eb
Author:     Volkmar W. Pogatzki <gentoo <AT> pogatzki <DOT> net>
AuthorDate: Thu Feb 17 12:36:27 2022 +0000
Commit:     Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
CommitDate: Wed Feb 23 09:24:19 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=959ee092

dev-java/spin: Switch to java-pkg-simple, min java 1.8:*

Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Volkmar W. Pogatzki <gentoo <AT> pogatzki.net>
Closes: https://github.com/gentoo/gentoo/pull/24232
Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org>

 dev-java/spin/spin-1.5-r2.ebuild | 93 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 93 insertions(+)

diff --git a/dev-java/spin/spin-1.5-r2.ebuild b/dev-java/spin/spin-1.5-r2.ebuild
new file mode 100644
index 000000000000..00108804a159
--- /dev/null
+++ b/dev-java/spin/spin-1.5-r2.ebuild
@@ -0,0 +1,93 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+# Skeleton command:
+# java-ebuilder --generate-ebuild --workdir . --pom pom.xml --download-uri mirror://sourceforge/project/spin/spin/v1.5/spin-1.5-all.zip --slot 0 --keywords "~amd64 ~x86" --ebuild spin-1.5-r2.ebuild
+
+EAPI=8
+
+JAVA_PKG_IUSE="doc source test"
+MAVEN_ID="spin:spin:1.5"
+JAVA_TESTING_FRAMEWORKS="junit"
+
+inherit java-pkg-2 java-pkg-simple
+
+DESCRIPTION="Transparent threading solution for non-freezing Swing applications."
+HOMEPAGE="http://spin.sourceforge.net"
+SRC_URI="mirror://sourceforge/project/${PN}/${PN}/v${PV}/${P}-all.zip"
+
+LICENSE="LGPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+# Common dependencies
+# POM: pom.xml
+# cglib:cglib-nodep:2.1_3 -> !!!artifactId-not-found!!!
+
+CP_DEPEND="
+	dev-java/cglib:3
+"
+
+DEPEND="
+	>=virtual/jdk-1.8:*
+	${CP_DEPEND}
+"
+
+RDEPEND="
+	>=virtual/jre-1.8:*
+	${CP_DEPEND}"
+
+BDEPEND="app-arch/unzip"
+
+DOCS=( license.txt )
+
+S="${WORKDIR}/${P}"
+
+JAVA_SRC_DIR="src/main/java"
+JAVA_RESOURCE_DIRS="src/main/java"
+
+JAVA_TEST_GENTOO_CLASSPATH="junit"
+JAVA_TEST_SRC_DIR="src/test/java"
+JAVA_TEST_RESOURCE_DIRS="src/test/java"
+
+src_test() {
+	# 1) testEDTNotBlockedDuringInvocation(spin.off.SpinOffTest)java.lang.Error:
+	# Unable to make void java.awt.EventDispatchThread.pumpEvents(java.awt.Conditional) accessible:
+	# module java.desktop does not "opens java.awt" to unnamed module @42bb2aee
+
+	local vm_version="$(java-config -g PROVIDES_VERSION)"
+	if ver_test "${vm_version}" -ge "17" ; then
+		JAVA_TEST_EXTRA_ARGS+=( --add-opens=java.desktop/java.awt=ALL-UNNAMED )
+		JAVA_TEST_EXTRA_ARGS+=( --add-opens=java.base/java.lang=ALL-UNNAMED )
+	fi
+
+	# There was 1 error:
+	# 1) testNonAccessibleInterface(spin.JDKProxyFactoryTest)java.awt.HeadlessException
+	#         at java.desktop/java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:166)
+	#         at java.desktop/java.awt.Window.<init>(Window.java:553)
+	#         at java.desktop/java.awt.Frame.<init>(Frame.java:428)
+	#         at java.desktop/java.awt.Frame.<init>(Frame.java:393)
+	#         at java.desktop/javax.swing.JFrame.<init>(JFrame.java:180)
+	#         at spin.JDKProxyFactoryTest$1.<init>(JDKProxyFactoryTest.java:44)
+	#         at spin.JDKProxyFactoryTest.testNonAccessibleInterface(JDKProxyFactoryTest.java:44)
+	#         at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
+	#         at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
+	#         at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
+
+	# JAVA_TEST_RUN_ONLY="spin.JDKProxyFactoryTest"
+	# java-pkg-simple_src_test
+
+	JAVA_TEST_RUN_ONLY="spin.CGLibProxyFactoryTest"
+	java-pkg-simple_src_test
+
+	JAVA_TEST_RUN_ONLY="spin.off.AWTReflectDispatcherTest"
+	java-pkg-simple_src_test
+
+	JAVA_TEST_RUN_ONLY="spin.off.SpinOffTest"
+	java-pkg-simple_src_test
+}
+
+src_install() {
+	default # https://bugs.gentoo.org/789582
+	java-pkg-simple_src_install
+}


             reply	other threads:[~2022-02-23  9:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-23  9:25 Miroslav Šulc [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-03-10  9:48 [gentoo-commits] repo/gentoo:master commit in: dev-java/spin/ Jakov Smolić
2022-03-10 10:25 Jakov Smolić
2022-03-10 10:29 Jakov Smolić

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1645608259.959ee09256fbdea4b4f37a31de9dc81ca91032eb.fordfrog@gentoo \
    --to=fordfrog@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox