1 |
betelgeuse 07/12/07 19:03:17 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: weka-3.5.6.ebuild |
5 |
Log: |
6 |
Version bump. Fixes bug #200874. |
7 |
(Portage version: 2.1.4_rc3) |
8 |
|
9 |
Revision Changes Path |
10 |
1.24 dev-util/weka/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/weka/ChangeLog?rev=1.24&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/weka/ChangeLog?rev=1.24&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/weka/ChangeLog?r1=1.23&r2=1.24 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/dev-util/weka/ChangeLog,v |
19 |
retrieving revision 1.23 |
20 |
retrieving revision 1.24 |
21 |
diff -u -r1.23 -r1.24 |
22 |
--- ChangeLog 7 Dec 2007 18:41:37 -0000 1.23 |
23 |
+++ ChangeLog 7 Dec 2007 19:03:17 -0000 1.24 |
24 |
@@ -1,6 +1,11 @@ |
25 |
# ChangeLog for dev-util/weka |
26 |
# Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/dev-util/weka/ChangeLog,v 1.23 2007/12/07 18:41:37 betelgeuse Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/dev-util/weka/ChangeLog,v 1.24 2007/12/07 19:03:17 betelgeuse Exp $ |
29 |
+ |
30 |
+*weka-3.5.6 (07 Dec 2007) |
31 |
+ |
32 |
+ 07 Dec 2007; Petteri Räty <betelgeuse@g.o> +weka-3.5.6.ebuild: |
33 |
+ Version bump. Fixes bug #200874. |
34 |
|
35 |
07 Dec 2007; Petteri Räty <betelgeuse@g.o> -weka-3.4.6.ebuild: |
36 |
Delete generation 1 ebuild. |
37 |
|
38 |
|
39 |
|
40 |
1.1 dev-util/weka/weka-3.5.6.ebuild |
41 |
|
42 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/weka/weka-3.5.6.ebuild?rev=1.1&view=markup |
43 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/weka/weka-3.5.6.ebuild?rev=1.1&content-type=text/plain |
44 |
|
45 |
Index: weka-3.5.6.ebuild |
46 |
=================================================================== |
47 |
# Copyright 1999-2007 Gentoo Foundation |
48 |
# Distributed under the terms of the GNU General Public License v2 |
49 |
# $Header: /var/cvsroot/gentoo-x86/dev-util/weka/weka-3.5.6.ebuild,v 1.1 2007/12/07 19:03:17 betelgeuse Exp $ |
50 |
|
51 |
JAVA_PKG_IUSE="doc source" |
52 |
|
53 |
inherit eutils java-pkg-2 versionator |
54 |
|
55 |
MY_P="${PN}-$(replace_all_version_separators '-')" |
56 |
DESCRIPTION="A Java data mining package" |
57 |
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.zip" |
58 |
HOMEPAGE="http://www.cs.waikato.ac.nz/ml/weka/" |
59 |
SLOT="0" |
60 |
LICENSE="GPL-2" |
61 |
KEYWORDS="~amd64 ~ppc ~x86" |
62 |
DEPEND=">=virtual/jdk-1.5 |
63 |
app-arch/unzip" |
64 |
RDEPEND=">=virtual/jre-1.5" |
65 |
IUSE="" |
66 |
|
67 |
S="${WORKDIR}/${MY_P}" |
68 |
|
69 |
src_unpack() { |
70 |
unpack ${A} |
71 |
cd "${S}" |
72 |
|
73 |
unzip -qq "${PN}-src.jar" -d src || die "Failed to unpack the source" |
74 |
|
75 |
rm -v *.jar || die |
76 |
} |
77 |
|
78 |
src_compile() { |
79 |
mkdir build dist |
80 |
echo "Compiling sources" |
81 |
# We need to set the maximum heap size to 128m to avoid |
82 |
# OutOfMemoryErrors |
83 |
find src/ -name "*.java" | xargs javac -J-Xmx128m -d build \ |
84 |
$(java-pkg_javac-args) -sourcepath src/ -nowarn \ |
85 |
|| die "Failed to compile sources" |
86 |
|
87 |
echo "Copying resources" |
88 |
cd src |
89 |
find . -type f -not -name '*.java' -and -not -name "*.MF" -print | \ |
90 |
while read file; do |
91 |
mkdir -p $(dirname "../build/${file}") |
92 |
cp "${file}" "../build/${file}" || die "Failed to extract resources" |
93 |
done |
94 |
cd .. |
95 |
|
96 |
echo "Creating JAR" |
97 |
jar cf dist/${PN}.jar -C build . || die "Failed to create JAR archive" |
98 |
|
99 |
if use doc ; then |
100 |
mkdir -p dist/doc |
101 |
echo "Generating javadocs" |
102 |
find src/ -name "*.java" | xargs javadoc -d dist/doc/ \ |
103 |
-J-Xmx128m -quiet || die "Failed to generate javadoc" |
104 |
fi |
105 |
} |
106 |
|
107 |
src_install() { |
108 |
java-pkg_dojar dist/*.jar |
109 |
|
110 |
java-pkg_dolauncher weka --main "${PN}.gui.GUIChooser" |
111 |
# Really need a virtual to list all available drivers and pull the ones |
112 |
# instaled |
113 |
java-pkg_register-optional-dependency hsqldb,jdbc-mysql,mckoi-1 |
114 |
|
115 |
use source && java-pkg_dosrc src/weka |
116 |
|
117 |
dodoc README || die |
118 |
use doc && java-pkg_dojavadoc dist/doc/ |
119 |
|
120 |
dodir /usr/share/${PN}/data/ |
121 |
insinto /usr/share/${PN}/data/ |
122 |
doins data/* |
123 |
} |
124 |
|
125 |
|
126 |
|
127 |
-- |
128 |
gentoo-commits@g.o mailing list |