summaryrefslogtreecommitdiff
path: root/dev-util/weka
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-util/weka
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-util/weka')
-rw-r--r--dev-util/weka/Manifest9
-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, 194 insertions, 0 deletions
diff --git a/dev-util/weka/Manifest b/dev-util/weka/Manifest
new file mode 100644
index 000000000000..505b6ec90c98
--- /dev/null
+++ b/dev-util/weka/Manifest
@@ -0,0 +1,9 @@
+AUX weka-3.7.13-build.xml.patch 576 SHA256 c30d30fbc9ab4270f3b204e9bd5582df1d294ddbc3fb05c7e4979bf7ca4e2379 SHA512 7d187da1ebd6f2e774ff8441d742eed37c9e804da2b9f6df905c02ceea2a5fdc2c210b7a195b052e7b4eeb062225b8bed315ad38ac9323adf8a3cf11fc29e143 WHIRLPOOL 786321daa795c192358209ab1303124af36aa0244a8224756428ec74dbd57b79a4ce2481123b80e65f9ac378af9b13694eb1a477cd2501b03a6848fc9927c1f3
+AUX weka-3.8.0-build.xml.patch 568 SHA256 d3c0f329bc61f046239f0e850e48af227800a19bb3e09908a0262cee10fadaa4 SHA512 8b1cd5ff6867bf5d43ec1b95d98288f1d035f37878c8fd99f33bb6389dd24e29ba8112f718c02b25cfbae6ed67f02c22643af39cae06e3a2d58081600a918c39 WHIRLPOOL b1507bfef26c0ceeeacc84820fe352c338e26917e34bcc6fae9991667bb72d492281c5465f289dd0a69a6541fa0906df1869de1f7eae843dd17a8405fddc3846
+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
+EBUILD weka-3.7.13.ebuild 1468 SHA256 6de2c52c5774abdc56ca4ccd763a89a24155a3aa31262f5b33f219c1f6d268fe SHA512 2f746f8e8874497a66650d5561412ee92996fd97adb9282a423a34452a261845a9a2d9d6370f01cbd7d6af3c188ac885eb1210058e4722eefa02f87adc54e733 WHIRLPOOL 883021a6b2e80373cbce27b3f54f8b1f3d2d943ec21be31dd8f0f73f7a93920d1e4fa77d1cb2f70316394ffda496f3d24eaf0d635dc04bda5f74e73c28b5e76a
+EBUILD weka-3.8.0.ebuild 1776 SHA256 143c2bed2a73a2f1c71287c3d133d8a8f10ee4cf8318bd79791b5205fdbc0b34 SHA512 f684824f58f527210c932662124d3ab3e3ff77398c4e592bf5e238a3caf57329d8536155a1a54e0efe14a9def8306325ef524ee5d00c1703d6bf1dc7448d80b1 WHIRLPOOL 271a2a2af49a23ff3ad6c593446131e19e7c520a20678c1a2ddf6c8f2b50e6d4a946d0f55e86e9d08a6ab53b282987dc98638d979c894c67be2c591983386e61
+MISC ChangeLog 4629 SHA256 bfce5deb1b5a3a7951704619ff0b94a41f680d0c409d8d94036a6c9172060497 SHA512 f148d1c210e168e545a745ba5fd688264d49a81c3bc6c8f4047aafb9a5ecc1e554b681d4d57eedfd92660873bce2d427edc66a10b83b8cd41aabf9136f7d1e3e WHIRLPOOL 250aaf27bf77ec13f7e00128b1c25b179456a1f9cb62d2e5c9a1f0ee755f1f9526894a08d2251e09c7f65282dfcf37295986b1686513c55b081e54a62acd1484
+MISC ChangeLog-2015 6749 SHA256 ab1c743292a749d110d2f0fe552d11012aad93343096b45aea8f7c21b9966e75 SHA512 8f01f457c41649639070cf5bd61ae210b165d0d5209f68d94ed0222fbdb40a0af873d1884911ba96697ae44868b3b5357007ea7403b0b577340ae69d7fa6b706 WHIRLPOOL 0e9d9d5601ae103a97b2b6ac2e59756aaf099573d071ae2719eed69ba740c945fb9cdd0a0db8eabde72ee1db12d255964d321835fcd725249d7dfe1178c491e3
+MISC metadata.xml 397 SHA256 0ddddb8b6f11f9de9e4dc9c1d93f4b344a887e9a2b35b83bf7872d0cb3e976be SHA512 7864802fa60e29a0505d15ab5d384c7b3aecefb72ac14a58aa3e150da1fe5c870c7e019aa5ab38a16bf2b1484717e7432c8c3d7d9515dd650becfc748cbef084 WHIRLPOOL aaf58a0e3ce9c09f35ecb08fe01091f8bf795f1f2cd89cce0e7ebc3b24a1a930445fdd6e30216b70769a58cf3c3cbcd49177562ace9f9fc37dac22a043562d45
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..21b778d163c4
--- /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"
+}