summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetteri Räty <betelgeuse@gentoo.org>2007-12-07 19:03:18 +0000
committerPetteri Räty <betelgeuse@gentoo.org>2007-12-07 19:03:18 +0000
commit614f20b15902347f23b725db14af73e9e17cb64b (patch)
treeed18624551f16213cb5573613b762abe3171eada /dev-util/weka
parentVersion bump. (diff)
downloadgentoo-2-614f20b15902347f23b725db14af73e9e17cb64b.tar.gz
gentoo-2-614f20b15902347f23b725db14af73e9e17cb64b.tar.bz2
gentoo-2-614f20b15902347f23b725db14af73e9e17cb64b.zip
Version bump. Fixes bug #200874.
(Portage version: 2.1.4_rc3)
Diffstat (limited to 'dev-util/weka')
-rw-r--r--dev-util/weka/ChangeLog7
-rw-r--r--dev-util/weka/files/digest-weka-3.5.63
-rw-r--r--dev-util/weka/weka-3.5.6.ebuild77
3 files changed, 86 insertions, 1 deletions
diff --git a/dev-util/weka/ChangeLog b/dev-util/weka/ChangeLog
index 4333def338b7..afb5f311d0fd 100644
--- a/dev-util/weka/ChangeLog
+++ b/dev-util/weka/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-util/weka
# Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/weka/ChangeLog,v 1.23 2007/12/07 18:41:37 betelgeuse Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-util/weka/ChangeLog,v 1.24 2007/12/07 19:03:17 betelgeuse Exp $
+
+*weka-3.5.6 (07 Dec 2007)
+
+ 07 Dec 2007; Petteri Räty <betelgeuse@gentoo.org> +weka-3.5.6.ebuild:
+ Version bump. Fixes bug #200874.
07 Dec 2007; Petteri Räty <betelgeuse@gentoo.org> -weka-3.4.6.ebuild:
Delete generation 1 ebuild.
diff --git a/dev-util/weka/files/digest-weka-3.5.6 b/dev-util/weka/files/digest-weka-3.5.6
new file mode 100644
index 000000000000..171ee041a727
--- /dev/null
+++ b/dev-util/weka/files/digest-weka-3.5.6
@@ -0,0 +1,3 @@
+MD5 2ee0fe455ded80a5685a19ee77f1f7ee weka-3-5-6.zip 15837683
+RMD160 aca163936277649c09a1cd8c750111e53f680851 weka-3-5-6.zip 15837683
+SHA256 395997f526b184ababb2573ee998dde97326da215f3d33f985f7301dd139a650 weka-3-5-6.zip 15837683
diff --git a/dev-util/weka/weka-3.5.6.ebuild b/dev-util/weka/weka-3.5.6.ebuild
new file mode 100644
index 000000000000..fa8d858d8c4d
--- /dev/null
+++ b/dev-util/weka/weka-3.5.6.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/weka/weka-3.5.6.ebuild,v 1.1 2007/12/07 19:03:17 betelgeuse Exp $
+
+JAVA_PKG_IUSE="doc source"
+
+inherit eutils java-pkg-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"
+RDEPEND=">=virtual/jre-1.5"
+IUSE=""
+
+S="${WORKDIR}/${MY_P}"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ unzip -qq "${PN}-src.jar" -d src || die "Failed to unpack the source"
+
+ rm -v *.jar || die
+}
+
+src_compile() {
+ mkdir build dist
+ echo "Compiling sources"
+ # We need to set the maximum heap size to 128m to avoid
+ # OutOfMemoryErrors
+ find src/ -name "*.java" | xargs javac -J-Xmx128m -d build \
+ $(java-pkg_javac-args) -sourcepath src/ -nowarn \
+ || die "Failed to compile sources"
+
+ echo "Copying resources"
+ cd src
+ find . -type f -not -name '*.java' -and -not -name "*.MF" -print | \
+ while read file; do
+ mkdir -p $(dirname "../build/${file}")
+ cp "${file}" "../build/${file}" || die "Failed to extract resources"
+ done
+ cd ..
+
+ echo "Creating JAR"
+ jar cf dist/${PN}.jar -C build . || die "Failed to create JAR archive"
+
+ if use doc ; then
+ mkdir -p dist/doc
+ echo "Generating javadocs"
+ find src/ -name "*.java" | xargs javadoc -d dist/doc/ \
+ -J-Xmx128m -quiet || die "Failed to generate javadoc"
+ fi
+}
+
+src_install() {
+ java-pkg_dojar dist/*.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/weka
+
+ dodoc README || die
+ use doc && java-pkg_dojavadoc dist/doc/
+
+ dodir /usr/share/${PN}/data/
+ insinto /usr/share/${PN}/data/
+ doins data/*
+}