summaryrefslogtreecommitdiff
path: root/dev-util/weka
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-06-23 00:11:31 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-06-23 00:11:31 +0100
commitbff543bb632933380da922cbfc07c67157d72d42 (patch)
treedf2e5eebc3dbd8e29153ab3a869b3be8d9be9f19 /dev-util/weka
parent491d0101c89d81dec507f28215b3cb094800d600 (diff)
gentoo auto-resync : 23:06:2024 - 00:11:30
Diffstat (limited to 'dev-util/weka')
-rw-r--r--dev-util/weka/Manifest2
-rw-r--r--dev-util/weka/weka-3.8.6.ebuild60
2 files changed, 62 insertions, 0 deletions
diff --git a/dev-util/weka/Manifest b/dev-util/weka/Manifest
index 84970d60124f..092e64cfdc8f 100644
--- a/dev-util/weka/Manifest
+++ b/dev-util/weka/Manifest
@@ -1,4 +1,6 @@
AUX weka-3.8.0-build.xml.patch 568 BLAKE2B 777233f959ec5adcfffb0e12042e11c0dce154a1ab8d54068a6a4d3bffcc059102ebbd96776c24488159230b4b6426a6d7ed7c55810cd98fe95347d340ec010c SHA512 8b1cd5ff6867bf5d43ec1b95d98288f1d035f37878c8fd99f33bb6389dd24e29ba8112f718c02b25cfbae6ed67f02c22643af39cae06e3a2d58081600a918c39
DIST weka-3-8-0.zip 50550487 BLAKE2B 85d7e68155c02f89e296ea1a4ee6e544287458135a941a4f618807f5c5b3e88edc6952fbdf632cfb642ef08fafcb7084dda3bda9269629610e8c532dd63d165e SHA512 7e38646a59e3d3d5fa314d269747ed7c526605253339e20f24bae55684a6cd77eeefb267b05825d8de44ae0e827873ba11ce6759b1d78a1a1975d100fd910b33
+DIST weka-3-8-6.zip 59573134 BLAKE2B 00957c9c524a9a61f961146d8c8dd2e2272997584f89e8a94d6a22e1caf711a5b082e4977cc5f42b70f82ac556b96a83b86fc780a02eb267eba190b89bf8f29a SHA512 9499e1921fde51b827243b4905708d0e36a1ab454b92889f1d33eafce9638ec8039bb769c09aefba0654b2a83e66ec99f300c1fdba4652831e5e871ca2bb4916
EBUILD weka-3.8.0-r1.ebuild 1675 BLAKE2B c8ea7bf08562ca4d5236c78318be4eb4c061d0f7c8f592c46c0f42f1eec7b9ab7bcb6292f53b0f2104f8d3017a4d8dfdec5f1e4c8c1b642b967e9875fe33e77d SHA512 2f7936581ef3e9cbad3207637150e963447db806e7f262aae3ce4deb50c7f91962ba36931d3105faf24e748b05e350cebc2510672ece8401c3eb87645ea4dcb5
+EBUILD weka-3.8.6.ebuild 1599 BLAKE2B 1754038495354e1ea4455721c8d7274b8873b2d114894071a280bb343fc96a8672078d6cfa445aff9c39524c7647c769f75713a3df90da458247bc18b1612297 SHA512 0cba7a0ddd1403dab6fc81ff4ca750d4a3ef1f945112d5268fcdc3069d9ea5678dfb3709dc359ac8f608c7fa681d23e1172be331ed32bce9ef7daeec0cddb755
MISC metadata.xml 441 BLAKE2B 57e012777845edb06bf71cf440da0732148d1df26f83d5256adc3934c4a7d28654c93844532b0ada1038b776641bd372f896a6bc43cf894ede04a94fd51d61bb SHA512 46ca61a2faa1c21740356d1c49efab974e020f723fb8aa5595f98a753b0657f5cef9358619d689bee27690c04cd316215824534736c2a5c6e48fdbb8476d3eca
diff --git a/dev-util/weka/weka-3.8.6.ebuild b/dev-util/weka/weka-3.8.6.ebuild
new file mode 100644
index 000000000000..d75d6aaf5b12
--- /dev/null
+++ b/dev-util/weka/weka-3.8.6.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+JAVA_PKG_IUSE="doc source"
+
+inherit java-pkg-2 java-pkg-simple
+
+DESCRIPTION="A Java data mining package"
+HOMEPAGE="https://ml.cms.waikato.ac.nz/weka"
+SRC_URI="https://downloads.sourceforge.net/project/weka/weka-3-8/${PV}/weka-${PV//./-}.zip"
+S="${WORKDIR}/${P//./-}"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+BDEPEND="app-arch/unzip"
+CP_DEPEND="dev-java/javacup:0"
+DEPEND="${CP_DEPEND}
+ virtual/jdk:1.8"
+RDEPEND="${CP_DEPEND}
+ >=virtual/jre-1.8:*"
+
+JAVA_GENTOO_CLASSPATH_EXTRA="lib/bounce.jar:lib/mtj.jar:lib/jfilechooser-bookmarks-0.1.6.jar"
+JAVA_MAIN_CLASS="weka.gui.GUIChooser"
+JAVA_RESOURCE_DIRS="src/main/res"
+JAVA_SRC_DIR="src/main/java"
+
+src_prepare() {
+ java-pkg-2_src_prepare
+ unzip -qq "${PN}-src.jar" -d . || die "Failed to unpack the source"
+ java-pkg_clean \
+ ! -path ./lib/bounce.jar \
+ ! -path ./lib/core.jar \
+ ! -path ./lib/jfilechooser-bookmarks-0.1.6.jar \
+ ! -path ./lib/mtj.jar
+
+ # java-pkg-simple wants resources in JAVA_RESOURCE_DIRS.
+ mkdir -p src/main/res || die
+ pushd src/main/java > /dev/null || die
+ find -type f \
+ ! -name '*.java' \
+ | xargs cp --parent -t ../res || die
+ popd > /dev/null || die
+}
+
+src_install() {
+ java-pkg-simple_src_install
+ java-pkg_dojar lib/{bounce,core,mtj}.jar
+ java-pkg_dojar lib/jfilechooser-bookmarks-0.1.6.jar
+
+ # Really need a virtual to list all available drivers and pull the ones
+ # instaled
+ java-pkg_register-optional-dependency hsqldb,jdbc-mysql,mckoi-1
+
+ insinto /usr/share/weka/data/
+ doins data/*
+}