summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Nichols <nichoj@gentoo.org>2005-12-06 02:11:34 +0000
committerJoshua Nichols <nichoj@gentoo.org>2005-12-06 02:11:34 +0000
commit589fabb72cb6fbb329e424457a0b94cf3fb9b65d (patch)
treed9198df136d24d050c9fdb8cac4da31559092f74
parentvulnerabilities in included xpdf code, #114429 (diff)
downloadgentoo-2-589fabb72cb6fbb329e424457a0b94cf3fb9b65d.tar.gz
gentoo-2-589fabb72cb6fbb329e424457a0b94cf3fb9b65d.tar.bz2
gentoo-2-589fabb72cb6fbb329e424457a0b94cf3fb9b65d.zip
Version bump (bug #108911).
(Portage version: 2.0.53_rc7)
-rw-r--r--dev-util/weka/ChangeLog8
-rw-r--r--dev-util/weka/Manifest16
-rw-r--r--dev-util/weka/files/digest-weka-3.4.61
-rw-r--r--dev-util/weka/weka-3.4.6.ebuild78
4 files changed, 90 insertions, 13 deletions
diff --git a/dev-util/weka/ChangeLog b/dev-util/weka/ChangeLog
index beedc8bdb3b0..a20bdbe5d5a7 100644
--- a/dev-util/weka/ChangeLog
+++ b/dev-util/weka/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-util/weka
# Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/weka/ChangeLog,v 1.10 2005/05/07 20:51:44 dholm Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-util/weka/ChangeLog,v 1.11 2005/12/06 02:11:34 nichoj Exp $
+
+*weka-3.4.6 (06 Dec 2005)
+
+ 06 Dec 2005; Joshua Nichols <nichoj@gentoo.org> +weka-3.4.6.ebuild:
+ Version bump (bug #108911). Ebuild contributed by Stefan de Konink
+ <skinkie@xs4all.nl>.
07 May 2005; David Holm <dholm@gentoo.org> weka-3.4.3_p20041113.ebuild:
Added to ~ppc.
diff --git a/dev-util/weka/Manifest b/dev-util/weka/Manifest
index c77732d21277..a07aa2bb8514 100644
--- a/dev-util/weka/Manifest
+++ b/dev-util/weka/Manifest
@@ -1,15 +1,7 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
-MD5 f3c42bc97f73602a7acce5fe05ab5d5e weka-3.4.3_p20041113.ebuild 1458
MD5 fe0469f782d6b007d89df8b976d11ec1 ChangeLog 1511
-MD5 a6ec7d7724fbd068ffb39b5be56134ed metadata.xml 157
MD5 e6cdfc65e52842dc2d8910061cdbb9e7 files/digest-weka-3.4.3_p20041113 143
+MD5 9727935f12238d4296b8f3fbecae24c3 files/digest-weka-3.4.6 60
MD5 60179e67fd9dadf4d3fc08c2b89317a6 files/weka-build_xml.patch 2035
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.1 (GNU/Linux)
-
-iD8DBQFC3ChQ/rLF9B432nYRAsp/AJ4tjy4U+Ku6e6FrU8B2O/pEBR9X3wCgmQik
-oVwwRmpSlzYFnGB9lgrDaK8=
-=QF67
------END PGP SIGNATURE-----
+MD5 a6ec7d7724fbd068ffb39b5be56134ed metadata.xml 157
+MD5 f3c42bc97f73602a7acce5fe05ab5d5e weka-3.4.3_p20041113.ebuild 1458
+MD5 ff86e501e16d2424c18d47c7827cd6fd weka-3.4.6.ebuild 1816
diff --git a/dev-util/weka/files/digest-weka-3.4.6 b/dev-util/weka/files/digest-weka-3.4.6
new file mode 100644
index 000000000000..b70ee97d6ecc
--- /dev/null
+++ b/dev-util/weka/files/digest-weka-3.4.6
@@ -0,0 +1 @@
+MD5 bf7f384e00aa6616719b8812bafc8f34 weka-3-4-6.zip 9069957
diff --git a/dev-util/weka/weka-3.4.6.ebuild b/dev-util/weka/weka-3.4.6.ebuild
new file mode 100644
index 000000000000..aee513ec71d0
--- /dev/null
+++ b/dev-util/weka/weka-3.4.6.ebuild
@@ -0,0 +1,78 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/weka/weka-3.4.6.ebuild,v 1.1 2005/12/06 02:11:34 nichoj Exp $
+
+inherit eutils java-pkg 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="~x86 ~amd64 ~ppc"
+DEPEND=">=virtual/jdk-1.4
+ app-arch/unzip
+ source? ( app-arch/zip )"
+RDEPEND=">=virtual/jre-1.4
+ virtual/x11"
+IUSE="doc source"
+
+S=${WORKDIR}/${MY_P}
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+
+ unzip -qq ${PN}-src.jar -d src || die "Failed to unpack the source"
+
+ rm *.jar
+}
+
+src_compile() {
+ mkdir build dist
+ einfo "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 \
+ -sourcepath src/ -nowarn || die "Failed to compile ${i}"
+
+ einfo "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 ..
+
+ einfo "Creating JAR"
+ jar cf dist/${PN}.jar -C build . || die "Failed to create JAR archive"
+
+ if use doc ; then
+ mkdir -p dist/doc
+ einfo "Generating javadocs"
+ find src/ -name "*.java" | xargs javadoc -d dist/doc/ \
+ -quiet || die "Failed to generate javadoc"
+ fi
+}
+
+src_install() {
+ java-pkg_dojar dist/*.jar
+
+ cat > ${PN} <<-END
+#!/bin/sh
+exec \$(java-config --java) -classpath \$(java-config -p ${PN}) \
+ ${PN}.gui.GUIChooser "\$@"
+ END
+ dobin ${PN}
+
+ use source && java-pkg_dosrc src/*
+
+ dodoc README
+ use doc && java-pkg_dohtml -r dist/doc/*
+
+ dodir /usr/share/${PN}/data/
+ insinto /usr/share/${PN}/data/
+ doins data/*
+}