diff options
author | 2015-06-28 07:46:04 +0000 | |
---|---|---|
committer | 2015-06-28 07:46:04 +0000 | |
commit | 0ca6cf9a931e06e4608ba095814f57b11d9accf6 (patch) | |
tree | 001750922caf11eb284a177334f606ebcf3b3d5b /dev-util/weka | |
parent | Cleanup. (diff) | |
download | gentoo-2-0ca6cf9a931e06e4608ba095814f57b11d9accf6.tar.gz gentoo-2-0ca6cf9a931e06e4608ba095814f57b11d9accf6.tar.bz2 gentoo-2-0ca6cf9a931e06e4608ba095814f57b11d9accf6.zip |
New version of weka added. Add myself to maintainers. EAPI version in weka 3.6.6 changed.
(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 34E69781)
Diffstat (limited to 'dev-util/weka')
-rw-r--r-- | dev-util/weka/ChangeLog | 11 | ||||
-rw-r--r-- | dev-util/weka/metadata.xml | 3 | ||||
-rw-r--r-- | dev-util/weka/weka-3.6.12.ebuild | 71 | ||||
-rw-r--r-- | dev-util/weka/weka-3.6.6-r1.ebuild | 6 |
4 files changed, 86 insertions, 5 deletions
diff --git a/dev-util/weka/ChangeLog b/dev-util/weka/ChangeLog index b900dd0c81a2..ef04f6801c03 100644 --- a/dev-util/weka/ChangeLog +++ b/dev-util/weka/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for dev-util/weka -# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-util/weka/ChangeLog,v 1.48 2013/12/10 07:24:56 mr_bones_ Exp $ +# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-util/weka/ChangeLog,v 1.49 2015/06/28 07:46:04 amynka Exp $ + +*weka-3.6.12 (28 Jun 2015) + + 28 Jun 2015; <amy@gentoo.org> +weka-3.6.12.ebuild, metadata.xml, + weka-3.6.6-r1.ebuild: + New version of weka added. Add myself to maintainers. EAPI version in weka + 3.6.6 changed. 10 Dec 2013; Michael Sterrett <mr_bones_@gentoo.org> -files/weka-3.6.0-build.xml.patch, -files/weka-3.6.2-build.xml.patch, diff --git a/dev-util/weka/metadata.xml b/dev-util/weka/metadata.xml index a21ab42c8384..90427530e907 100644 --- a/dev-util/weka/metadata.xml +++ b/dev-util/weka/metadata.xml @@ -2,6 +2,9 @@ <!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> 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..c23839082028 --- /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 +# $Header: /var/cvsroot/gentoo-x86/dev-util/weka/weka-3.6.12.ebuild,v 1.1 2015/06/28 07:46:04 amynka Exp $ + +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 index e95574d23f8d..75b800ed2691 100644 --- a/dev-util/weka/weka-3.6.6-r1.ebuild +++ b/dev-util/weka/weka-3.6.6-r1.ebuild @@ -1,8 +1,8 @@ -# Copyright 1999-2012 Gentoo Foundation +# Copyright 1999-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-util/weka/weka-3.6.6-r1.ebuild,v 1.4 2012/08/23 05:46:36 xmw Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-util/weka/weka-3.6.6-r1.ebuild,v 1.5 2015/06/28 07:46:04 amynka Exp $ -EAPI="3" +EAPI="5" JAVA_PKG_IUSE="doc source" |