blob: 13c0274346bfa69568e0eead397e831172968f39 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-misc/tinysvm/tinysvm-0.09-r2.ebuild,v 1.1 2008/11/03 01:20:20 matsuu Exp $
inherit eutils perl-module toolchain-funcs
MY_P="TinySVM-${PV}"
DESCRIPTION="TinySVM is an implementation of Support Vector Machines (SVMs) for
pattern recognition."
HOMEPAGE="http://chasen.org/~taku/software/TinySVM/"
SRC_URI="http://chasen.org/~taku/software/TinySVM/src/${MY_P}.tar.gz"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64 ~x86"
#IUSE="java perl python ruby"
IUSE="perl"
S="${WORKDIR}/${MY_P}"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}/${PF}-pm.patch"
ln -s . src/TinySVM
}
src_compile() {
tc-export CC CXX
econf || die
emake CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" || die
if use perl ; then
(
cd perl
perl-module_src_compile || die "compile failed in perl"
)
fi
## currently it fails to compile under python-2.4
#if use python ; then
# (
# cd python
# emake -f Makefile.pre.in boot || die "compile failed in python"
# emake || die
# )
#fi
## currently it fails to compile under gcc-3.4
#if use ruby ; then
# (
# cd ruby
# ruby extconf.rb || die
# emake || die
# )
#fi
}
src_install() {
emake DESTDIR="${D}" install || die
dodoc AUTHORS README THANKS
if use perl ; then
(
cd perl
perl-module_src_install || die "install failed in perl"
)
fi
#if use python ; then
# (
# cd python
# emake DESTDIR="${D}" install || die "install failed in python"
# )
#fi
#if use ruby ; then
# (
# cd ruby
# emake DESTDIR="${D}" install || die "install failed in ruby"
# )
#fi
}
|