summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /dev-util/weka
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'dev-util/weka')
-rw-r--r--dev-util/weka/Manifest2
-rw-r--r--dev-util/weka/files/weka-3.6.12-build.xml.patch23
-rw-r--r--dev-util/weka/files/weka-3.6.6-build.xml.patch23
-rw-r--r--dev-util/weka/metadata.xml11
-rw-r--r--dev-util/weka/weka-3.6.12.ebuild71
-rw-r--r--dev-util/weka/weka-3.6.6-r1.ebuild71
6 files changed, 201 insertions, 0 deletions
diff --git a/dev-util/weka/Manifest b/dev-util/weka/Manifest
new file mode 100644
index 000000000000..91f6154144cf
--- /dev/null
+++ b/dev-util/weka/Manifest
@@ -0,0 +1,2 @@
+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
diff --git a/dev-util/weka/files/weka-3.6.12-build.xml.patch b/dev-util/weka/files/weka-3.6.12-build.xml.patch
new file mode 100644
index 000000000000..29310866649c
--- /dev/null
+++ b/dev-util/weka/files/weka-3.6.12-build.xml.patch
@@ -0,0 +1,23 @@
+--- build.xml 2010-04-17 08:12:29.000000000 +0300
++++ build.xml.fixed 2010-04-17 08:37:58.000000000 +0300
+@@ -90,11 +90,6 @@
+ </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>
+ </target>
+
+ <!-- Make the javadocs -->
+@@ -139,7 +134,7 @@
+ </target>
+
+ <!-- compile the testcases -->
+- <target name="compile_tests" depends="init_tests, compile"
++ <target name="compile_tests" depends="init_tests"
+ description="Compile unit tests into build/testcases">
+ <javac srcdir="${src-test}"
+ fork="yes" memoryMaximumSize="${javac_max_memory}"
diff --git a/dev-util/weka/files/weka-3.6.6-build.xml.patch b/dev-util/weka/files/weka-3.6.6-build.xml.patch
new file mode 100644
index 000000000000..29310866649c
--- /dev/null
+++ b/dev-util/weka/files/weka-3.6.6-build.xml.patch
@@ -0,0 +1,23 @@
+--- build.xml 2010-04-17 08:12:29.000000000 +0300
++++ build.xml.fixed 2010-04-17 08:37:58.000000000 +0300
+@@ -90,11 +90,6 @@
+ </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>
+ </target>
+
+ <!-- Make the javadocs -->
+@@ -139,7 +134,7 @@
+ </target>
+
+ <!-- compile the testcases -->
+- <target name="compile_tests" depends="init_tests, compile"
++ <target name="compile_tests" depends="init_tests"
+ description="Compile unit tests into build/testcases">
+ <javac srcdir="${src-test}"
+ fork="yes" memoryMaximumSize="${javac_max_memory}"
diff --git a/dev-util/weka/metadata.xml b/dev-util/weka/metadata.xml
new file mode 100644
index 000000000000..90427530e907
--- /dev/null
+++ b/dev-util/weka/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>java</herd>
+ <maintainer>
+ <email>amynka@gentoo.org</email>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">weka</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/weka/weka-3.6.12.ebuild b/dev-util/weka/weka-3.6.12.ebuild
new file mode 100644
index 000000000000..187c62a81d6c
--- /dev/null
+++ b/dev-util/weka/weka-3.6.12.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+JAVA_PKG_IUSE="doc 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 ~ppc ~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}"
+
+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 *.jar lib/*.jar || die
+ rm -rf doc || die
+ java-pkg_jar-from --into lib javacup
+ epatch "${FILESDIR}"/${P}-build.xml.patch
+ sed -i -e "s/256m/$(weka_get_max_memory)/g" build.xml || die
+}
+
+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
+ if use doc; then
+ java-pkg_dojavadoc doc/
+ insinto /usr/share/doc/${PF}
+ doins WekaManual.pdf || die
+ fi
+
+ dodir /usr/share/${PN}/data/
+ insinto /usr/share/${PN}/data/
+ doins data/*
+
+ newicon "${S}/weka.gif" "${PN}".png
+ #make_desktop_entry "${PN}" "Waikato Environment for Knowledge Analysis" "${PN}" "Education;Science;ArtificialIntelligence;" "Comment=Start Weka"
+}
diff --git a/dev-util/weka/weka-3.6.6-r1.ebuild b/dev-util/weka/weka-3.6.6-r1.ebuild
new file mode 100644
index 000000000000..f0621ba35a83
--- /dev/null
+++ b/dev-util/weka/weka-3.6.6-r1.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+JAVA_PKG_IUSE="doc 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 ppc x86"
+DEPEND=">=virtual/jdk-1.5
+ app-arch/unzip
+ >=dev-java/javacup-0.11a_beta20060608:0"
+RDEPEND=">=virtual/jre-1.5
+ >=dev-java/javacup-0.11a_beta20060608:0"
+IUSE=""
+
+S="${WORKDIR}/${MY_P}"
+
+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 *.jar lib/*.jar || die
+ rm -rf doc || die
+ java-pkg_jar-from --into lib javacup
+ epatch "${FILESDIR}"/${P}-build.xml.patch
+ sed -i -e "s/256m/$(weka_get_max_memory)/g" build.xml || die
+}
+
+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
+ if use doc; then
+ java-pkg_dojavadoc doc/
+ insinto /usr/share/doc/${PF}
+ doins WekaManual.pdf || die
+ fi
+
+ dodir /usr/share/${PN}/data/
+ insinto /usr/share/${PN}/data/
+ doins data/*
+
+ newicon "${S}/weka.gif" "${PN}".png
+ make_desktop_entry "${PN}" "Waikato Environment for Knowledge Analysis" "${PN}" "Education;Science;ArtificialIntelligence;" "Comment=Start Weka"
+}