Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
24 changes: 24 additions & 0 deletions games-puzzle/pauker/files/pauker-1.8-r3-project.properties.patch
Original file line number Diff line number Diff line change
@@ -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}
Original file line number Diff line number Diff line change
@@ -1,41 +1,42 @@
# Copyright 1999-2021 Gentoo Authors
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=6
EAPI=8

JAVA_PKG_IUSE="doc source"

inherit desktop java-pkg-2 java-ant-2

DESCRIPTION="A java based flashcard program"
HOMEPAGE="http://pauker.sourceforge.net/"
SRC_URI="mirror://sourceforge/pauker/${P}.src.jar"
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"
IUSE=""

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:*
"
>=virtual/jre-1.8:*"
DEPEND="${COMMON_DEP}
>=virtual/jdk-1.8:*
app-arch/unzip
"
>=virtual/jdk-1.8:*"
BDEPEND="app-arch/unzip"

S="${WORKDIR}"
PATCHES=(
"${FILESDIR}/${PN}_bundledjars.patch"
"${FILESDIR}/pauker-1.8-r3-project.properties.patch"
)

src_prepare() {
default
find . -iname '*.jar' -delete

eapply "${FILESDIR}/${PN}_bundledjars.patch"
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
Expand All @@ -46,7 +47,7 @@ src_prepare() {
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.5.home="${JAVA_HOME}" jar $(use_doc javadoc)
-Dplatforms.JDK_1.8.home="${JAVA_HOME}" jar $(use_doc javadoc)
}

#test depend on jemmy, a netbeans module. so unless it is packaged separately
Expand Down