public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: games-puzzle/pauker/, games-puzzle/pauker/files/
@ 2023-09-14 18:35 Arthur Zamarin
  0 siblings, 0 replies; 2+ messages in thread
From: Arthur Zamarin @ 2023-09-14 18:35 UTC (permalink / raw
  To: gentoo-commits

commit:     1466cdc554483f57bf0e94c8706cb0ad7ee059a3
Author:     Volkmar W. Pogatzki <gentoo <AT> pogatzki <DOT> net>
AuthorDate: Thu Sep 14 08:29:28 2023 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Thu Sep 14 18:35:17 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1466cdc5

games-puzzle/pauker: add 1.8-r3, update EAPI 6 -> 8

Bug: https://bugs.gentoo.org/914175
Bug: https://bugs.gentoo.org/831894
Signed-off-by: Volkmar W. Pogatzki <gentoo <AT> pogatzki.net>
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>

 .../files/pauker-1.8-r3-project.properties.patch   | 24 ++++++++
 games-puzzle/pauker/pauker-1.8-r3.ebuild           | 70 ++++++++++++++++++++++
 2 files changed, 94 insertions(+)

diff --git a/games-puzzle/pauker/files/pauker-1.8-r3-project.properties.patch b/games-puzzle/pauker/files/pauker-1.8-r3-project.properties.patch
new file mode 100644
index 000000000000..b063b1055621
--- /dev/null
+++ b/games-puzzle/pauker/files/pauker-1.8-r3-project.properties.patch
@@ -0,0 +1,24 @@
+diff --git a/nbproject/project.properties b/nbproject/project.properties
+index 02aef46..edca271 100644
+--- a/nbproject/project.properties
++++ b/nbproject/project.properties
+@@ -37,8 +37,8 @@ javac.classpath=\
+ # Space-separated list of extra javac options
+ javac.compilerargs=-Xlint:all,-serial
+ javac.deprecation=true
+-javac.source=1.5
+-javac.target=1.5
++javac.source=1.8
++javac.target=1.8
+ javac.test.classpath=\
+     ${javac.classpath}:\
+     ${build.classes.dir}:\
+@@ -64,7 +64,7 @@ jnlp.signed=false
+ main.class=pauker.program.gui.swing.PaukerFrame
+ manifest.file=manifest.mf
+ meta.inf.dir=${src.dir}/META-INF
+-platform.active=JDK_1.5
++platform.active=JDK_1.8
+ run.classpath=\
+     ${javac.classpath}:\
+     ${build.classes.dir}

diff --git a/games-puzzle/pauker/pauker-1.8-r3.ebuild b/games-puzzle/pauker/pauker-1.8-r3.ebuild
new file mode 100644
index 000000000000..c41b5e3153e2
--- /dev/null
+++ b/games-puzzle/pauker/pauker-1.8-r3.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+JAVA_PKG_IUSE="doc source"
+
+inherit desktop java-pkg-2 java-ant-2
+
+DESCRIPTION="A java based flashcard program"
+HOMEPAGE="https://pauker.sourceforge.net/"
+SRC_URI="mirror://sourceforge/project/pauker/pauker/${PV}/${P}.src.jar"
+S="${WORKDIR}"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+BDEPEND="app-arch/unzip"
+COMMON_DEP="
+	dev-java/browserlauncher2:1.0
+	dev-java/javahelp
+	dev-java/lucene:2.4
+	dev-java/swing-layout:1
+"
+RDEPEND="${COMMON_DEP}
+	>=virtual/jre-1.8:*"
+DEPEND="${COMMON_DEP}
+	>=virtual/jdk-1.8:*"
+BDEPEND="app-arch/unzip"
+
+PATCHES=(
+	"${FILESDIR}/${PN}_bundledjars.patch"
+	"${FILESDIR}/pauker-1.8-r3-project.properties.patch"
+)
+
+src_prepare() {
+	default
+	find . -iname '*.jar' -delete || die
+
+	java-pkg_jar-from --into libs browserlauncher2-1.0 browserlauncher2.jar BrowserLauncher2-1_3.jar
+	java-pkg_jar-from --into libs javahelp jhall.jar
+	java-pkg_jar-from --into libs lucene-2.4 lucene-core.jar lucene-core-2.4.0.jar
+	java-pkg_jar-from --into libs swing-layout-1 swing-layout.jar
+}
+
+src_compile() {
+	eant -Dfile.reference.BrowserLauncher2-1_3.jar="libs/BrowserLauncher2-1_3.jar" \
+		-Dlibs.swing-layout.classpath="libs/swing-layout.jar" \
+		-Dplatforms.JDK_1.8.home="${JAVA_HOME}" jar $(use_doc javadoc)
+}
+
+#test depend on jemmy, a netbeans module.  so unless it is packaged separately
+#tests cannot be build.
+
+src_install() {
+	java-pkg_jarinto "/usr/share/${PN}"
+	java-pkg_newjar "dist/${P}.jar"
+
+	java-pkg_dolauncher ${PN} \
+		-into "/usr" \
+		--pwd /usr/share/${PN} \
+		--main pauker.program.gui.swing.PaukerFrame
+
+	use doc && java-pkg_dojavadoc dist/javadoc
+	use source && java-pkg_dosrc src
+
+	newicon src/pauker/icons/repeat.png ${PN}.png
+	make_desktop_entry pauker Pauker
+}


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: games-puzzle/pauker/, games-puzzle/pauker/files/
@ 2024-06-09 15:19 James Le Cuirot
  0 siblings, 0 replies; 2+ messages in thread
From: James Le Cuirot @ 2024-06-09 15:19 UTC (permalink / raw
  To: gentoo-commits

commit:     53f65ab74e4cf0b91f9c9aebab916231db1dc5fd
Author:     Volkmar W. Pogatzki <gentoo <AT> pogatzki <DOT> net>
AuthorDate: Sat Nov 18 18:33:22 2023 +0000
Commit:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Sun Jun  9 15:18:42 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=53f65ab7

games-puzzle/pauker: patch failing javadoc

Closes: https://bugs.gentoo.org/829503
Signed-off-by: Volkmar W. Pogatzki <gentoo <AT> pogatzki.net>
Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>

 games-puzzle/pauker/files/pauker-1.8-javadoc.patch | 34 ++++++++++++++++++++++
 games-puzzle/pauker/pauker-1.8-r3.ebuild           |  1 +
 2 files changed, 35 insertions(+)

diff --git a/games-puzzle/pauker/files/pauker-1.8-javadoc.patch b/games-puzzle/pauker/files/pauker-1.8-javadoc.patch
new file mode 100644
index 000000000000..ab87fe73c723
--- /dev/null
+++ b/games-puzzle/pauker/files/pauker-1.8-javadoc.patch
@@ -0,0 +1,34 @@
+#829503
+--- a/src/pauker/program/gui/swing/LineLabeler.java
++++ b/src/pauker/program/gui/swing/LineLabeler.java
+@@ -25,7 +25,7 @@ import javax.swing.text.JTextComponent;
+ 
+ /**
+  * A panel for labelling the Pauker import dialog
+- * @author Ronny Standtke <Ronny.Standtke@gmx.net>
++ * @author Ronny Standtke
+  */
+ public class LineLabeler extends JPanel implements DocumentListener {
+ 
+--- a/src/pauker/program/Card.java
++++ b/src/pauker/program/Card.java
+@@ -118,7 +118,7 @@ public class Card {
+     /**
+      * sets if the card is learned or not
+      * @param learned if true the cards state is set to learned and the current date is used as
+-     * </CODE>learnedDate</CODE>
++     * <CODE>learnedDate</CODE>
+      */
+     public void setLearned(boolean learned) {
+         frontSide.setLearned(learned);
+LongTermBatch.java:101: error: @param name not found
+--- a/src/pauker/program/LongTermBatch.java
++++ b/src/pauker/program/LongTermBatch.java
+@@ -98,7 +98,6 @@ public class LongTermBatch extends Batch {
+     }
+ 
+     /** gets an expired card
+-     * @param i the index of the expired card
+      * @return the expired card
+      */
+     public Card getOldestExpiredCard() {

diff --git a/games-puzzle/pauker/pauker-1.8-r3.ebuild b/games-puzzle/pauker/pauker-1.8-r3.ebuild
index 6fb8a63cf540..cadeed423644 100644
--- a/games-puzzle/pauker/pauker-1.8-r3.ebuild
+++ b/games-puzzle/pauker/pauker-1.8-r3.ebuild
@@ -31,6 +31,7 @@ BDEPEND="app-arch/unzip"
 PATCHES=(
 	"${FILESDIR}/${PN}_bundledjars.patch"
 	"${FILESDIR}/pauker-1.8-r3-project.properties.patch"
+	"${FILESDIR}/pauker-1.8-javadoc.patch"
 )
 
 src_prepare() {


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-06-09 15:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-09 15:19 [gentoo-commits] repo/gentoo:master commit in: games-puzzle/pauker/, games-puzzle/pauker/files/ James Le Cuirot
  -- strict thread matches above, loose matches on Subject: below --
2023-09-14 18:35 Arthur Zamarin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox