summaryrefslogtreecommitdiff
blob: 75ad84d86d85fc6af0619060379ada694fbbdca1 (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
# Copyright 1999-2008 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.3 2008/06/15 20:34:09 loki_val 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
	epatch "${FILESDIR}"/${P}-gcc43.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
}