/[gentoo-x86]/dev-util/weka/weka-3.6.0.ebuild
Gentoo

Contents of /dev-util/weka/weka-3.6.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Mon Apr 26 13:11:14 2010 UTC (4 years, 3 months ago) by phajdan.jr
Branch: MAIN
Changes since 1.1: +3 -3 lines
x86 stable wrt bug #315685
(Portage version: 2.1.8.3/cvs/Linux i686)

1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-util/weka/weka-3.6.0.ebuild,v 1.1 2009/03/28 06:28:36 serkan Exp $
4
5 EAPI="2"
6
7 JAVA_PKG_IUSE="doc source"
8
9 inherit eutils java-pkg-2 java-ant-2 versionator
10
11 MY_P="${PN}-$(replace_all_version_separators '-')"
12 DESCRIPTION="A Java data mining package"
13 SRC_URI="mirror://sourceforge/${PN}/${MY_P}.zip"
14 HOMEPAGE="http://www.cs.waikato.ac.nz/ml/weka/"
15 SLOT="0"
16 LICENSE="GPL-2"
17 KEYWORDS="~amd64 ~ppc x86"
18 DEPEND=">=virtual/jdk-1.5
19 app-arch/unzip"
20 RDEPEND=">=virtual/jre-1.5"
21 IUSE=""
22
23 S="${WORKDIR}/${MY_P}"
24
25 EANT_BUILD_TARGET="exejar"
26 EANT_DOC_TARGET="docs"
27 JAVA_ANT_IGNORE_SYSTEM_CLASSES="true"
28
29 weka_get_max_memory() {
30 if use amd64; then
31 echo 512m
32 else
33 echo 256m
34 fi
35 }
36
37 EANT_EXTRA_ARGS="-Djavac_max_memory=$(weka_get_max_memory)"
38
39 src_prepare() {
40 unzip -qq "${PN}-src.jar" -d . || die "Failed to unpack the source"
41 rm -v *.jar || die
42 rm -rf doc || die
43 mkdir lib || die
44 epatch "${FILESDIR}"/${P}-build.xml.patch
45 java-pkg-2_src_prepare
46 }
47
48 src_install() {
49 java-pkg_dojar dist/${PN}.jar
50 java-pkg_dolauncher weka --main "${PN}.gui.GUIChooser"
51
52 # Really need a virtual to list all available drivers and pull the ones
53 # instaled
54 java-pkg_register-optional-dependency hsqldb,jdbc-mysql,mckoi-1
55
56 use source && java-pkg_dosrc src/main/java/weka/
57
58 dodoc README || die
59 if use doc; then
60 java-pkg_dojavadoc doc/
61 insinto /usr/share/doc/${PF}
62 doins WekaManual.pdf || die
63 fi
64
65 dodir /usr/share/${PN}/data/
66 insinto /usr/share/${PN}/data/
67 doins data/*
68 }

  ViewVC Help
Powered by ViewVC 1.1.20