Fixes #50414, thanks to Jan 'the powerhouse' Brinkmann.
authorKarl Trygve Kalleberg <karltk@gentoo.org>
Sat, 18 Dec 2004 23:20:02 +0000 (23:20 +0000)
committerKarl Trygve Kalleberg <karltk@gentoo.org>
Sat, 18 Dec 2004 23:20:02 +0000 (23:20 +0000)
dev-util/weka/ChangeLog
dev-util/weka/Manifest
dev-util/weka/files/digest-weka-3.4.3_p20041113 [new file with mode: 0644]
dev-util/weka/files/weka-build_xml.patch [new file with mode: 0644]
dev-util/weka/weka-3.4.3_p20041113.ebuild [new file with mode: 0644]

index c6b97582557af1ee6c17823baa006cfd4272015f..d939e7039506b4513419432d62cce42d43313dc4 100644 (file)
@@ -1,6 +1,13 @@
 # ChangeLog for dev-util/weka
 # Copyright 2000-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/weka/ChangeLog,v 1.6 2004/11/03 11:49:42 axxo Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-util/weka/ChangeLog,v 1.7 2004/12/18 23:20:02 karltk Exp $
+
+*weka-3.4.3_p20041113 (19 Dec 2004)
+
+  19 Dec 2004; <karltk@gentoo.org> +files/weka-build_xml.patch,
+  +weka-3.4.3_p20041113.ebuild:
+  New upstream version. Ebuild submitted by the ever so industriuos Jan
+  Brinkmann <lucky@the-luckyduck.de>. Fixes #50414.
 
   03 Nov 2004; Thomas Matthijs <axxo@gentoo.org> weka-3.4.1-r1.ebuild,
   weka-3.4.1.ebuild:
index 8d5227173b4b92fe52a06eb2e596d013dcdd7678..f9e04f1d1156541393b80e737ce8c5d6f6d3604e 100644 (file)
@@ -1,16 +1,9 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
 MD5 7a6d36a913cbcf5c82d8209436e547c6 weka-3.4.1-r1.ebuild 1401
 MD5 909ac71f974e435286a7a0b7632c24f1 weka-3.4.1.ebuild 773
-MD5 05a75e086ab65465d7d805f4dbb6c712 ChangeLog 877
+MD5 b2dabadb0d9cdeda036d4baf772587df weka-3.4.3_p20041113.ebuild 1519
+MD5 8763c5743895a595254521d026b5105f ChangeLog 1137
 MD5 a6ec7d7724fbd068ffb39b5be56134ed metadata.xml 157
 MD5 6fe760afce2d4d198e9453a6171e7913 files/digest-weka-3.4.1 60
 MD5 6fe760afce2d4d198e9453a6171e7913 files/digest-weka-3.4.1-r1 60
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.2.6 (GNU/Linux)
-
-iD8DBQFBiMXc/rLF9B432nYRAnIQAKCYjAZPYvj8hSZCgjmt5SoCmw49EgCgr4u2
-gAtLGJfwNk7RDQ7PolIUSEg=
-=5p/6
------END PGP SIGNATURE-----
+MD5 e6cdfc65e52842dc2d8910061cdbb9e7 files/digest-weka-3.4.3_p20041113 143
+MD5 60179e67fd9dadf4d3fc08c2b89317a6 files/weka-build_xml.patch 2035
diff --git a/dev-util/weka/files/digest-weka-3.4.3_p20041113 b/dev-util/weka/files/digest-weka-3.4.3_p20041113
new file mode 100644 (file)
index 0000000..c00e1aa
--- /dev/null
@@ -0,0 +1,2 @@
+MD5 8e4e0554f26752932f6ca8a3d51162e3 weka-20041113.tar.bz2 1322061
+MD5 b839ae409802f65bf8767326aede5f90 weka-datasets-20041113.tar.bz2 8628938
diff --git a/dev-util/weka/files/weka-build_xml.patch b/dev-util/weka/files/weka-build_xml.patch
new file mode 100644 (file)
index 0000000..19b6f9c
--- /dev/null
@@ -0,0 +1,50 @@
+diff -uprN weka.orig/build.xml weka/build.xml
+--- weka.orig/build.xml        2004-11-14 17:25:34.451506656 +0100
++++ weka/build.xml     2004-11-14 17:27:31.085775552 +0100
+@@ -45,7 +45,8 @@
+   <target name="compile_inline" depends="init_all"
+    description="Compile weka and leave class files in the source tree">
+      <javac srcdir="${path_modifier}weka"
+-      destdir="${path_modifier}"/>
++      destdir="${path_modifier}"
++      source="1.4" target="1.4" />
+       <rmic base="${path_modifier}" 
+        classname="weka.experiment.RemoteEngine"/>
+   </target>
+@@ -61,7 +62,8 @@
+      <property name="build.compiler.emacs" value="true"/>
+      <javac srcdir="${path_modifier}weka"
+       destdir="${path_modifier}"
+-      deprecation="on" />
++      deprecation="on" 
++      source="1.4" target="1.4" />
+      <rmic base="${path_modifier}" 
+       classname="weka.experiment.RemoteEngine"/>
+   </target>
+@@ -70,7 +72,8 @@
+   <target name="compile" depends="init_compile" 
+    description="Compile weka and deposit class files in ${path_modifier}/build/classes">
+     <javac srcdir="${path_modifier}weka" 
+-    destdir="${path_modifier}${build}/classes"/>
++    destdir="${path_modifier}${build}/classes" 
++    source="1.4" target="1.4" />
+     <copy todir="${path_modifier}${build}/classes" >
+        <fileset dir="${path_modifier}.">
+           <include name="weka/**/*.props"/>
+@@ -117,7 +120,8 @@
+   <target name="compile_tests" depends="init_tests, compile" 
+    description="Compile unit tests into ${path_modifier}/build/testcases">
+      <javac srcdir="${path_modifier}tests" 
+-      destdir="${path_modifier}${build}/testcases">
++      destdir="${path_modifier}${build}/testcases"
++      source="1.4" target="1.4" >
+         <classpath>
+          <pathelement location="${path_modifier}${build}/classes"/>
+          <pathelement path="${path_modifier}${java.class.path}"/>
+@@ -343,4 +347,4 @@
+     <delete dir="${path_modifier}tests"/>
+     <delete dir="${path_modifier}${doc}"/>
+   </target>
+-</project>
+\ No newline at end of file
++</project>
diff --git a/dev-util/weka/weka-3.4.3_p20041113.ebuild b/dev-util/weka/weka-3.4.3_p20041113.ebuild
new file mode 100644 (file)
index 0000000..a334f16
--- /dev/null
@@ -0,0 +1,54 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/weka/weka-3.4.3_p20041113.ebuild,v 1.1 2004/12/18 23:20:02 karltk Exp $
+
+inherit eutils java-pkg
+
+DESCRIPTION="A Java data mining package"
+SRC_URI="http://dev.gentoo.org/~karltk/projects/java/distfiles/${PN}-20041113.tar.bz2
+       http://dev.gentoo.org/~karltk/projects/java/distfiles/${PN}-datasets-20041113.tar.bz2"
+HOMEPAGE="http://www.cs.waikato.ac.nz/ml/weka/"
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~x86 ~amd64"
+DEPEND=">=virtual/jdk-1.4
+       app-arch/unzip"
+#      jikes?( >=dev-java/jikes-1.21 )"
+RDEPEND=">=virtual/jre-1.4"
+IUSE="doc" # jikes"
+
+S=${WORKDIR}/${PN}-20041113
+
+src_unpack() {
+       mkdir ${S}
+       cd ${S}
+       unpack ${A}
+       mv ${PN}-20041113 ${PN}
+       epatch ${FILESDIR}/weka-build_xml.patch
+}
+
+src_compile() {
+       cd weka
+
+       # all attempts to build it with jikes failed
+       antflags="exejar srcjar remotejar"
+       use doc && antflags="${antflags} docs"
+#      use jikes && antflags="${antflags} -Dbuild.compiler=jikes"
+       ant ${antflags} || die "ant build failed"
+}
+
+src_install() {
+       java-pkg_dojar dist/*.jar || die "failed to install"
+
+       mkdir bin
+       echo "#!/bin/sh" > bin/${PN}
+       echo "java -classpath \$(java-config -p weka) weka.gui.GUIChooser" >> bin/${PN}
+       into /usr
+       dobin bin/${PN}
+
+       use doc && java-pkg_dohtml -r doc/*
+
+       dodir /usr/share/${PN}/data/ || die "couldnt create data-dir"
+       cp -r numeric UCI regression-datasets ${D}/usr/share/${PN}/data \
+                                       || die "failed to copy datasets"
+}