summaryrefslogtreecommitdiff
path: root/dev-util/weka
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 /dev-util/weka
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-util/weka')
-rw-r--r--dev-util/weka/Manifest7
-rw-r--r--dev-util/weka/files/weka-3.7.13-build.xml.patch16
-rw-r--r--dev-util/weka/files/weka-3.8.0-build.xml.patch16
-rw-r--r--dev-util/weka/metadata.xml14
-rw-r--r--dev-util/weka/weka-3.7.13.ebuild65
-rw-r--r--dev-util/weka/weka-3.8.0.ebuild74
6 files changed, 192 insertions, 0 deletions
diff --git a/dev-util/weka/Manifest b/dev-util/weka/Manifest
new file mode 100644
index 000000000000..53e05263416a
--- /dev/null
+++ b/dev-util/weka/Manifest
@@ -0,0 +1,7 @@
+AUX weka-3.7.13-build.xml.patch 576 BLAKE2B aa7535a003410f9ec6aa091e3fd98918206803b1cba85684739648790ace23b4de82f5f07911983deebc91f64ed2882254179eaba490516c1fc11d537f5e180f SHA512 7d187da1ebd6f2e774ff8441d742eed37c9e804da2b9f6df905c02ceea2a5fdc2c210b7a195b052e7b4eeb062225b8bed315ad38ac9323adf8a3cf11fc29e143
+AUX weka-3.8.0-build.xml.patch 568 BLAKE2B 777233f959ec5adcfffb0e12042e11c0dce154a1ab8d54068a6a4d3bffcc059102ebbd96776c24488159230b4b6426a6d7ed7c55810cd98fe95347d340ec010c SHA512 8b1cd5ff6867bf5d43ec1b95d98288f1d035f37878c8fd99f33bb6389dd24e29ba8112f718c02b25cfbae6ed67f02c22643af39cae06e3a2d58081600a918c39
+DIST weka-3-7-13.zip 42159458 BLAKE2B ede4e225dac3d2eb875eaddfee8209a8c50b0095a885c4c9384703aa476d75ec9f1bc4dfcdc2e2874b623f0cf4090f281fe77d8363c1fb5300409c4a6e119f44 SHA512 aa15b857d3b3b35720468206e42a157cc8c63d6bf3f4fdda93845da7e4e4ffca0201b2b92056486a2245681f7e0052dc75959194be954d84b391e812bd49ce5e
+DIST weka-3-8-0.zip 50550487 BLAKE2B 85d7e68155c02f89e296ea1a4ee6e544287458135a941a4f618807f5c5b3e88edc6952fbdf632cfb642ef08fafcb7084dda3bda9269629610e8c532dd63d165e SHA512 7e38646a59e3d3d5fa314d269747ed7c526605253339e20f24bae55684a6cd77eeefb267b05825d8de44ae0e827873ba11ce6759b1d78a1a1975d100fd910b33
+EBUILD weka-3.7.13.ebuild 1468 BLAKE2B 1082a67e52f5425ca08b2664b8203f59b48639dbb025541e8b934e1f8390e202e5e48ab711643a2eb4ab9d4a1ac9a6ff2dbb5dd26a079cced1c6e88e2a80c987 SHA512 2f746f8e8874497a66650d5561412ee92996fd97adb9282a423a34452a261845a9a2d9d6370f01cbd7d6af3c188ac885eb1210058e4722eefa02f87adc54e733
+EBUILD weka-3.8.0.ebuild 1776 BLAKE2B 233d1f1d2e51086bc78a5b8c6d2b99dea0eef5a998f8ba99a6c5ceccf22e99b243cae5c171fb69acac04a751d1115fe398615c51c2bdfd37d0348e44820c552c SHA512 f684824f58f527210c932662124d3ab3e3ff77398c4e592bf5e238a3caf57329d8536155a1a54e0efe14a9def8306325ef524ee5d00c1703d6bf1dc7448d80b1
+MISC metadata.xml 388 BLAKE2B 5f655f856c468f07f1b65024d9f86466f633b94f57f8ab384a47959975a8a96ebe910e6c7220c3226c83c90e6ebf3d3128c6d354517b100eb018891a02c3bb69 SHA512 db8902561c4e18c56a16e2445822e5f8592822f911c4f098c444f5345599956d877b8d0a9982c2cd143443231d78bc7931e635657ccb9880a54f8631055d8c54
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 000000000000..05da33df23d6
--- /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/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/metadata.xml b/dev-util/weka/metadata.xml
new file mode 100644
index 000000000000..1a7ed67ed610
--- /dev/null
+++ b/dev-util/weka/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>amynka@gentoo.org</email>
+ </maintainer>
+ <maintainer type="project">
+ <email>java@gentoo.org</email>
+ <name>Java</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">weka</remote-id>
+ </upstream>
+</pkgmetadata>
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 000000000000..7f39cee56198
--- /dev/null
+++ b/dev-util/weka/weka-3.7.13.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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.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
+}
+
+src_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/*
+}
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..134f1ad611ba
--- /dev/null
+++ b/dev-util/weka/weka-3.8.0.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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
+}
+
+src_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/*
+}
+
+pkg_postinst() {
+ elog "If you are upgrading from weka 3.7 to later"
+ elog "and your package manager does not start please delete"
+ elog "file installedPackageCache.ser from packages folder"
+ elog "in wekafiles located in your user home."
+ elog
+ elog "rm \${HOME}/wekafiles/packages/installedPackageCache.ser"
+}