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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Tue Jun 1 15:03:44 2010 UTC (4 years, 4 months ago) by josejx
Branch: MAIN
Changes since 1.3: +2 -2 lines
Marked ppc stable for bug #315685.
(Portage version: 2.1.8.3/cvs/Linux x86_64)

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.2.ebuild,v 1.3 2010/05/31 08:44:14 phajdan.jr 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 >=dev-java/javacup-0.11a_beta20060608:0"
21 RDEPEND=">=virtual/jre-1.5
22 >=dev-java/javacup-0.11a_beta20060608:0"
23 IUSE=""
24
25 S="${WORKDIR}/${MY_P}"
26
27 EANT_BUILD_TARGET="exejar"
28 EANT_DOC_TARGET="docs"
29 JAVA_ANT_IGNORE_SYSTEM_CLASSES="true"
30
31 weka_get_max_memory() {
32 if use amd64; then
33 echo 512m
34 else
35 echo 256m
36 fi
37 }
38
39 java_prepare() {
40 unzip -qq "${PN}-src.jar" -d . || die "Failed to unpack the source"
41 rm -v *.jar lib/*.jar || die
42 rm -rf doc || die
43 java-pkg_jar-from --into lib javacup
44 epatch "${FILESDIR}"/${P}-build.xml.patch
45 sed -i -e "s/256m/$(weka_get_max_memory)/g" build.xml || die
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