summaryrefslogtreecommitdiff
path: root/games-puzzle/pauker
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
commit8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch)
tree7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /games-puzzle/pauker
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'games-puzzle/pauker')
-rw-r--r--games-puzzle/pauker/Manifest4
-rw-r--r--games-puzzle/pauker/files/pauker_bundledjars.patch14
-rw-r--r--games-puzzle/pauker/metadata.xml11
-rw-r--r--games-puzzle/pauker/pauker-1.8-r1.ebuild69
4 files changed, 98 insertions, 0 deletions
diff --git a/games-puzzle/pauker/Manifest b/games-puzzle/pauker/Manifest
new file mode 100644
index 000000000000..9edccff11199
--- /dev/null
+++ b/games-puzzle/pauker/Manifest
@@ -0,0 +1,4 @@
+AUX pauker_bundledjars.patch 903 BLAKE2B 944e338bf1f0b4501ae68accaf44dcb6cd0c286722ac5077ce7748e93c524ff262a4e21fcfd2a576d2dc5c5d7d5ef9e04354e11d6e0b2a4fc9a0f018daf61708 SHA512 fd6d525fb49b956bfcecaf44e8f8044251d91341844418e1980db96bcfc6e91e86ec60aa08d112a84b1fe1c40b87e0429edfdbfaa1ea100993e89eded230bf6e
+DIST pauker-1.8.src.jar 33886665 BLAKE2B 9dddd9f7e5d5dbc9e7bc18b69e708ba3a4ea67e17b513b218eb14a77094fe40ef3d404e8dc85311ee2cd4d69587625828084cfbbf1d05534c90f40948e8ef8f4 SHA512 2d329571e857a05116ba499c4bd82669f0c99a748ca375ab06e701492a814b97fcc09bbf0ae4f48c52b05c67768a14d70a4217fee9680762424c96ab7f4341ae
+EBUILD pauker-1.8-r1.ebuild 1704 BLAKE2B 51df59fb8de90a8cb03f93fbbae9e60ecc68b076eae4bab2b1a3695b716296fb1ac2828382d2ea7d8a6c553e19a588c30d240a7b373499bf9d8451f1f2dc3203 SHA512 056bfe6a4fdf2490f02a5b1681a5173b34933b29aeb8abc24e89ba4d972933e549486c10aab32f929b9058ee4f9716a7840e309de953c09a6f99a4100a6f7da2
+MISC metadata.xml 329 BLAKE2B ac3b4fc371bc34aec1c68eccb0be370cc51c1dffb14fa0b13c5e50aa3476a5e557686a10922379026eccc8d61e60133bc199c9746484cd6a5ff588dcdfe61f67 SHA512 392a3af58bf88c1cfa5ad5f3a240b7c16d2cf4a469700d3e7628917923606b69d3aa65c01d258e17d1ad362fa4f64c424e75a73f849f4fd438f97ba951df8203
diff --git a/games-puzzle/pauker/files/pauker_bundledjars.patch b/games-puzzle/pauker/files/pauker_bundledjars.patch
new file mode 100644
index 000000000000..bebcbd088b12
--- /dev/null
+++ b/games-puzzle/pauker/files/pauker_bundledjars.patch
@@ -0,0 +1,14 @@
+--- 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/**"
+ excludes="pauker/Changes.txt,pauker/TODO.txt,**/*BeanInfo*,**/GraphicalStatisticPanel.gif">
+- <zipfileset src="${libs.swing-layout.classpath}"/>
+- <zipfileset src="libs/jhall.jar" excludes="META-INF/**"/>
+- <zipfileset src="libs/lucene-core-2.4.0.jar" excludes="META-INF/**"/>
+- <zipfileset src="libs/BrowserLauncher2-1_3.jar"
+- excludes="META-INF/**,classes/,source/,package?cache/,.**,*.txt,build.xml"/>
+ <manifest>
+ <attribute name="Main-Class" value="pauker.program.gui.swing.PaukerFrame"/>
+ <attribute name="SplashScreen-Image" value="pauker/icons/Splash.png"/>
diff --git a/games-puzzle/pauker/metadata.xml b/games-puzzle/pauker/metadata.xml
new file mode 100644
index 000000000000..80f7ca2adf2d
--- /dev/null
+++ b/games-puzzle/pauker/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">pauker</remote-id>
+ </upstream>
+</pkgmetadata>
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
+}