commit: dd362020e8ac94dbd79ae3362df3130f2838bb32 Author: Amy Winston <amynka <AT> gentoo <DOT> org> AuthorDate: Mon Apr 11 19:53:16 2016 +0000 Commit: Amy Winston <amynka <AT> gentoo <DOT> org> CommitDate: Mon Apr 11 19:53:16 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dd362020
dev-util/weka: version bump 3.7.13 Package-Manager: portage-2.2.26 dev-util/weka/Manifest | 1 + dev-util/weka/files/weka-3.7.13-build.xml.patch | 16 ++++++ dev-util/weka/weka-3.7.13.ebuild | 66 +++++++++++++++++++++++++ 3 files changed, 83 insertions(+) diff --git a/dev-util/weka/Manifest b/dev-util/weka/Manifest index 91f6154..dbf36ba 100644 --- a/dev-util/weka/Manifest +++ b/dev-util/weka/Manifest @@ -1,2 +1,3 @@ DIST weka-3-6-12.zip 24335916 SHA256 504f8ccc0915cd6664eb6aff74bcf5b3796dbdd55917e0b37c3d976cc38eb069 SHA512 4301e1c2a751e26ff8d860e24e54e71511276f8cb90020c935595aaaab547f8614381ca8087b83a670d13ef0ff3fa13084f4984b9249e16042703ef9f43c0bd1 WHIRLPOOL 0c09e8c476f69ae0b13ebdd03ca220ffebd0aa0369597fc3424d7e71be81acb817e46a725d42d56d9679e032e414d9533eb79f03393f2b93b740cb44ed86b91a DIST weka-3-6-6.zip 22444607 SHA256 a548bea251b7e774427158cfbd52f2d22706cebde1bde703748f3c7df4519e1c SHA512 e06e4a2b213fb161255d3c5ab3dfa4e176ddfc40ff8261608957d2fcd101eddde2cec789bf15f99d2c75156a4b5c42e28a1702d27ac8c09967a54f8321781f6e WHIRLPOOL 412759cdd2c8ef24c39171926f299c658057f72ebba32b492812d1f63a10c15430f559997a991b57aa411d3f752ef949bc7761116640931ca0b707a007a3266e +DIST weka-3-7-13.zip 42159458 SHA256 8d856d52be9964da580e7d396deecb03b83016f5b218c3159a40d2d4df38ecb5 SHA512 aa15b857d3b3b35720468206e42a157cc8c63d6bf3f4fdda93845da7e4e4ffca0201b2b92056486a2245681f7e0052dc75959194be954d84b391e812bd49ce5e WHIRLPOOL 2fb4f56de6321d6edd96752c57a5a90eabbabd0e7be6c2ec3e2c2517dc92df6a74d9c27b50524c537035f8c313a09db71fc9ba0a0c8f19352c15138d7f88047e diff --git a/dev-util/weka/files/weka-3.7.13-build.xml.patch b/dev-util/weka/files/weka-3.7.13-build.xml.patch new file mode 100644 index 0000000..05da33d --- /dev/null +++ b/dev-util/weka/files/weka-3.7.13-build.xml.patch @@ -0,0 +1,16 @@ +--- a/build.xml 2016-04-11 16:45:18.592385569 +0200 ++++ b/build.xml 2016-04-11 16:48:01.756389582 +0200 +@@ -603,13 +603,6 @@ + <include name="**/*.default"/> + </fileset> + </copy> +- <rmic base="${build}/classes" +- classname="weka.experiment.RemoteEngine"/> +- <unzip src="${lib}/java-cup.jar" dest="${build}/classes"> +- <patternset> +- <include name="java_cup/runtime/**/*"/> +- </patternset> +- </unzip> + <unzip src="${lib}/packageManager.jar" dest="${build}/classes"> + <patternset> + <include name="org/**/*"/> diff --git a/dev-util/weka/weka-3.7.13.ebuild b/dev-util/weka/weka-3.7.13.ebuild new file mode 100644 index 0000000..6c48bdf --- /dev/null +++ b/dev-util/weka/weka-3.7.13.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="6" + +JAVA_PKG_IUSE="source" + +inherit eutils java-pkg-2 java-ant-2 versionator + +MY_P="${PN}-$(replace_all_version_separators '-')" +DESCRIPTION="A Java data mining package" +SRC_URI="mirror://sourceforge/${PN}/${MY_P}.zip" +HOMEPAGE="http://www.cs.waikato.ac.nz/ml/weka/" +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="~amd64 ~x86" +DEPEND=">=virtual/jdk-1.6 + app-arch/unzip + >=dev-java/javacup-0.11a_beta20060608:0" +RDEPEND=">=virtual/jre-1.6 + >=dev-java/javacup-0.11a_beta20060608:0" +IUSE="" + +S="${WORKDIR}/${MY_P}" + +PATCHES=("${FILESDIR}"/${P}-build.xml.patch) + +EANT_BUILD_TARGET="exejar" +EANT_DOC_TARGET="docs" +JAVA_ANT_IGNORE_SYSTEM_CLASSES="true" + +weka_get_max_memory() { + if use amd64; then + echo 512m + else + echo 256m + fi +} + +java_prepare() { + unzip -qq "${PN}-src.jar" -d . || die "Failed to unpack the source" + rm -v weka.jar || die + rm -rf doc || die + java-pkg_jar-from --into lib javacup + + sed -i -e "s/256m/$(weka_get_max_memory)/g" build.xml || die + default +} + +src_install() { + java-pkg_dojar dist/${PN}.jar + java-pkg_dolauncher weka --main "${PN}.gui.GUIChooser" + + # Really need a virtual to list all available drivers and pull the ones + # instaled + java-pkg_register-optional-dependency hsqldb,jdbc-mysql,mckoi-1 + + use source && java-pkg_dosrc src/main/java/weka/ + + dodoc README || die + + dodir /usr/share/${PN}/data/ + insinto /usr/share/${PN}/data/ + doins data/* +}