summaryrefslogtreecommitdiff
blob: 659de49339eda5f868da41e23d34477d59a8a993 (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
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-text/yamcha/yamcha-0.33-r1.ebuild,v 1.2 2006/11/02 17:52:04 usata Exp $

inherit perl-module eutils
# inherit distutils

DESCRIPTION="Yet Another Multipurpose CHunk Annotator"
HOMEPAGE="http://chasen.org/~taku/software/yamcha/"
SRC_URI="http://chasen.org/~taku/software/yamcha/src/${P}.tar.gz"

LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="x86 ~amd64"

IUSE="perl"
#IUSE="python ruby"

DEPEND="sci-misc/tinysvm
	dev-lang/perl"
#RDEPEND=""

src_unpack() {
	unpack ${A}
	cd ${S}
	epatch ${FILESDIR}/${P}-pm.patch
}

src_compile() {
	econf || die
	emake || die

	if use perl ; then
		cd ${S}/perl
		perl-module_src_compile || die
	fi

	# python module doesn't work on my box :(
	#if use python ; then
	#	cd ${S}/python
	#	distutils_src_compile || die
	#fi
}

src_test() {
	make check || die
}

src_install() {
	make DESTDIR=${D} install || die

	dodoc AUTHORS README

	if use perl ; then
		cd ${S}/perl
		perl-module_src_install || die
	fi

	# dies when installing
	#if use python ; then
	#	cd ${S}/python
	#	distutils_src_install || die
	#fi
}