# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/sci-misc/tinysvm/tinysvm-0.09-r1.ebuild,v 1.2 2006/06/19 23:45:41 usata Exp $ inherit perl-module flag-o-matic eutils MY_PN="TinySVM" MY_P="${MY_PN}-${PV}" S="${WORKDIR}/${MY_P}" 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="~x86" IUSE="perl" #IUSE="java ruby python" DEPEND="" #RDEPEND="" src_unpack() { unpack ${A} cd ${S} epatch ${FILESDIR}/${P}-pm.patch cd ${S}/src ln -s . TinySVM } src_compile() { append-ldflags -lstdc++ econf || die emake || die if use perl ; then cd perl perl-module_src_compile || die "compile failed in perl" cd - fi # currently it fails to compile under python-2.4 #if use python ; then # cd python # make -f Makefile.pre.in boot || die "compile failed in python" # make || die # cd - #fi # currently it fails to compile under gcc-3.4 #if use ruby ; then # cd ruby # ruby extconf.rb || die # make || die # cd - ##fi } src_test() { make check || die } src_install() { make DESTDIR=${D} install || die dodoc AUTHORS README THANKS if use perl ; then cd perl perl-module_src_install || die "install failed in perl" cd - fi #if use python ; then # cd python # make DESTDIR=${D} install || die "install failed in python" # cd - #fi #if use ruby ; then # cd ruby # make DESTDIR=${D} install || die "install failed in ruby" # cd - #fi }