diff options
Diffstat (limited to 'games-puzzle/pauker')
-rw-r--r-- | games-puzzle/pauker/Manifest | 6 | ||||
-rw-r--r-- | games-puzzle/pauker/files/pauker_bundledjars.patch | 14 | ||||
-rw-r--r-- | games-puzzle/pauker/metadata.xml | 11 | ||||
-rw-r--r-- | games-puzzle/pauker/pauker-1.8.ebuild | 69 |
4 files changed, 100 insertions, 0 deletions
diff --git a/games-puzzle/pauker/Manifest b/games-puzzle/pauker/Manifest new file mode 100644 index 000000000000..86525583cc07 --- /dev/null +++ b/games-puzzle/pauker/Manifest @@ -0,0 +1,6 @@ +AUX pauker_bundledjars.patch 899 SHA256 4853a7e49a247d700fcac224363acf859b185fe64633b3c06fa9d66b0709e2bf SHA512 ed7d47165871488233bcf032bf7e93f7988a231251fa93dbf173774dcaecee1adb735930fbface4009a72912db3f811a09cb9e49a038e7c01fda9a44e8515a22 WHIRLPOOL f107f86dfec77e6e5d3a95c25cb935f670d4a6ffcd1f7a562955977c46931e3cb0011fe3ec2c686510c2816f1f61661da6f266fcd2b26716bed26f3a122175da +DIST pauker-1.8.src.jar 33886665 SHA256 061be727408413696d148285d268a2cb37262a19d6d8a26b67d2233507545e05 SHA512 2d329571e857a05116ba499c4bd82669f0c99a748ca375ab06e701492a814b97fcc09bbf0ae4f48c52b05c67768a14d70a4217fee9680762424c96ab7f4341ae WHIRLPOOL fc3e6cbcc0164656337002e89f880b4f1f075892f62ef561deb25671b764f25872e438d54cf72e1ff701e0b8c9ceab621027d9b360eed65f2d3d23682f8d20e5 +EBUILD pauker-1.8.ebuild 1795 SHA256 4f4c1fcd1dbe4e8ecdbbf3cdc0c31a6ce8412ffbcde2c6e16b2294a540a6349c SHA512 38e837383660a0d9977c961038c9cac6e899ad2a745de76b43a33e80fc285733b47658a4ad0337cf9b1e8d32117f5bcb0dd3a9fa73caa94222f168f4187fd08b WHIRLPOOL c407cc7025fa6179aa4ecc8471f8f5528a880b28a588ea81de2d9a5bed90331699d6fd085b884ec22c1a98cc4027a8514d64fe9952eea35f549cd3f83207ad1f +MISC ChangeLog 2592 SHA256 241454489906740e9c504c4acd88c536892ce97610970599501a0322b426a0a4 SHA512 98e64259f264f4ddfad99c9cc47e011c7d95bfb9623d3910976f165df946149d428a1f0285e3f03fc89896c6fae38f66f19c7c55a18affa3508dd6bca86226a5 WHIRLPOOL d3c7abfdac0f4d324b3ead29aa17fc518b14bb5768936ce463948a9c70cebc6f3581682d9d89f552363bd1ea41f487ffe3ca51567b532286e0c5bff1440abfad +MISC ChangeLog-2015 3508 SHA256 5e476baedf48acf04a891c34f26fcc0a0ce61b9134b3896c3a9767a902f40365 SHA512 f6b35674e7cbda89d45b26862a9aff0de72db9ea634b4982c7d3ec1b9fab82f8c6834874b9ed88b2f55c3257268d2adfeac317542c371877d58a39b87ea2ba59 WHIRLPOOL 133e1ed54df9ec80a5424943e536a7548159ae2f17c4b9bdd9510d0787c570725c1459ee6f60c0dcfdebb8edb48ae2a241f9c28f288d4ef287726147f85c748b +MISC metadata.xml 329 SHA256 776e4f9a0f7d33ac9de6b94fcac85404006c13026008a9d22849d3447f2d9419 SHA512 392a3af58bf88c1cfa5ad5f3a240b7c16d2cf4a469700d3e7628917923606b69d3aa65c01d258e17d1ad362fa4f64c424e75a73f849f4fd438f97ba951df8203 WHIRLPOOL c48818675b419f91fd5a76416cc528f761f7bd9ddbdebd0208bdb85e6a3efaba5da1f64bc365e947889454f11ecef2ff07e1fa44effcfb1bdfed6881f8086172 diff --git a/games-puzzle/pauker/files/pauker_bundledjars.patch b/games-puzzle/pauker/files/pauker_bundledjars.patch new file mode 100644 index 000000000000..1ed79dbe4d86 --- /dev/null +++ b/games-puzzle/pauker/files/pauker_bundledjars.patch @@ -0,0 +1,14 @@ +--- build.xml.orig 2008-11-24 20:24:55.000000000 +1300 ++++ 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.ebuild b/games-puzzle/pauker/pauker-1.8.ebuild new file mode 100644 index 000000000000..8a9d34a94d32 --- /dev/null +++ b/games-puzzle/pauker/pauker-1.8.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +JAVA_PKG_IUSE="doc source" +inherit eutils java-pkg-2 java-ant-2 games + +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=">=virtual/jre-1.5 + ${COMMON_DEP}" +DEPEND=">=virtual/jdk-1.5 + app-arch/unzip + ${COMMON_DEP}" + +S=${WORKDIR} + +pkg_setup() { + games_pkg_setup + java-pkg-2_pkg_setup +} + +src_prepare() { + find . -iname '*.jar' -delete + + epatch "${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 "${GAMES_DATADIR}/${PN}" + java-pkg_newjar "dist/${P}.jar" + + java-pkg_dolauncher ${PN} \ + -into "${GAMES_PREFIX}" \ + --pwd "${GAMES_DATADIR}"/${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 + prepgamesdirs +} |