diff options
author | Amy Winston <amynka@gentoo.org> | 2016-05-15 11:19:52 +0200 |
---|---|---|
committer | Amy Winston <amynka@gentoo.org> | 2016-05-15 11:26:35 +0200 |
commit | 21928b2d55fb9e3be330e51672fd8f72e2a63042 (patch) | |
tree | e8956f5268990be1bdf68083afd29c489d40c9f3 /dev-util/weka | |
parent | games-board/goatee-gtk: bump up to 0.3.1 (diff) | |
download | gentoo-21928b2d55fb9e3be330e51672fd8f72e2a63042.tar.gz gentoo-21928b2d55fb9e3be330e51672fd8f72e2a63042.tar.bz2 gentoo-21928b2d55fb9e3be330e51672fd8f72e2a63042.zip |
dev-util/weka: version bump 3.8.0
Package-Manager: portage-2.2.26
Diffstat (limited to 'dev-util/weka')
-rw-r--r-- | dev-util/weka/Manifest | 1 | ||||
-rw-r--r-- | dev-util/weka/files/weka-3.8.0-build.xml.patch | 16 | ||||
-rw-r--r-- | dev-util/weka/weka-3.8.0.ebuild | 66 |
3 files changed, 83 insertions, 0 deletions
diff --git a/dev-util/weka/Manifest b/dev-util/weka/Manifest index dbf36ba2b193..8ca0b8b3226c 100644 --- a/dev-util/weka/Manifest +++ b/dev-util/weka/Manifest @@ -1,3 +1,4 @@ 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 +DIST weka-3-8-0.zip 50550487 SHA256 2586298688059a025e2810b1ffc73f4fb3cf81ebf2183d8d19b0763d33857f61 SHA512 7e38646a59e3d3d5fa314d269747ed7c526605253339e20f24bae55684a6cd77eeefb267b05825d8de44ae0e827873ba11ce6759b1d78a1a1975d100fd910b33 WHIRLPOOL 127566483c9ed3764ef6e8eaebc6d6b5613b766b2e8c0438db0b27213bd837b14618d7d06026d9041be5f78e91dbc7840b3c2e0a57192f001ecd50b7cdb38c2c diff --git a/dev-util/weka/files/weka-3.8.0-build.xml.patch b/dev-util/weka/files/weka-3.8.0-build.xml.patch new file mode 100644 index 000000000000..ca8264dc2291 --- /dev/null +++ b/dev-util/weka/files/weka-3.8.0-build.xml.patch @@ -0,0 +1,16 @@ +--- a/build.xml 2016-05-15 10:56:04.011409745 +0200 ++++ b/build.xml 2016-05-15 10:57:43.971411711 +0200 +@@ -618,13 +618,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}/bounce.jar" dest="${build}/classes"> + <patternset> + <include name="org/**/*"/> diff --git a/dev-util/weka/weka-3.8.0.ebuild b/dev-util/weka/weka-3.8.0.ebuild new file mode 100644 index 000000000000..739f112ae718 --- /dev/null +++ b/dev-util/weka/weka-3.8.0.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 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.7 + app-arch/unzip + >=dev-java/javacup-0.11a_beta20060608:0" +RDEPEND=">=virtual/jre-1.7 + >=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 + + dodir /usr/share/${PN}/data/ + insinto /usr/share/${PN}/data/ + doins data/* +} |