summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacho Ramos <pacho@gentoo.org>2018-05-01 15:38:10 +0200
committerPacho Ramos <pacho@gentoo.org>2018-05-01 21:33:48 +0200
commitadbe857a94c2f75b4ba39346f0fafdef0ffcd9d1 (patch)
treed3cdf0ed407c919adc9f98bdf84d525cca262521 /games-puzzle/pauker
parentdev-java/lucene: Fix compilation (diff)
downloadgentoo-adbe857a94c2f75b4ba39346f0fafdef0ffcd9d1.tar.gz
gentoo-adbe857a94c2f75b4ba39346f0fafdef0ffcd9d1.tar.bz2
gentoo-adbe857a94c2f75b4ba39346f0fafdef0ffcd9d1.zip
games-puzzle/pauker: Stop using games.eclass
Package-Manager: Portage-2.3.31, Repoman-2.3.9
Diffstat (limited to 'games-puzzle/pauker')
-rw-r--r--games-puzzle/pauker/files/pauker_bundledjars.patch4
-rw-r--r--games-puzzle/pauker/pauker-1.8-r1.ebuild69
2 files changed, 71 insertions, 2 deletions
diff --git a/games-puzzle/pauker/files/pauker_bundledjars.patch b/games-puzzle/pauker/files/pauker_bundledjars.patch
index 1ed79dbe4d86..bebcbd088b12 100644
--- a/games-puzzle/pauker/files/pauker_bundledjars.patch
+++ b/games-puzzle/pauker/files/pauker_bundledjars.patch
@@ -1,5 +1,5 @@
---- build.xml.orig 2008-11-24 20:24:55.000000000 +1300
-+++ build.xml 2008-11-24 20:25:33.000000000 +1300
+--- a/build.xml.orig 2008-11-24 20:24:55.000000000 +1300
++++ b/build.xml 2008-11-24 20:25:33.000000000 +1300
@@ -88,11 +88,6 @@
basedir="build/classes/"
includes="pauker/**,tools/**"
diff --git a/games-puzzle/pauker/pauker-1.8-r1.ebuild b/games-puzzle/pauker/pauker-1.8-r1.ebuild
new file mode 100644
index 000000000000..62c31d7abb45
--- /dev/null
+++ b/games-puzzle/pauker/pauker-1.8-r1.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+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"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+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.5
+"
+DEPEND="${COMMON_DEP}
+ >=virtual/jdk-1.5
+ app-arch/unzip
+"
+
+S="${WORKDIR}"
+
+src_prepare() {
+ default
+ find . -iname '*.jar' -delete
+
+ eapply "${FILESDIR}/${PN}_bundledjars.patch"
+
+ 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.5.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
+}