blob: 7d6d7b3744792bcf43bb87c11501753cc73da6e6 (
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
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/link-grammar/link-grammar-4.7.2.ebuild,v 1.2 2011/02/23 23:16:28 hwoarang Exp $
EAPI="3"
inherit java-pkg-opt-2
DESCRIPTION="Link Grammar Parser is a syntactic English parser based on
link grammar."
HOMEPAGE="http://www.link.cs.cmu.edu/link/"
SRC_URI="http://www.abisource.com/downloads/${PN}/${PV}/${P}.tar.gz"
LICENSE="as-is"
SLOT="0"
KEYWORDS="~alpha amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
# Set the same default as used in app-text/enchant
IUSE="aspell +hunspell java static-libs threads"
DEPEND="aspell? ( app-text/aspell )
hunspell? ( app-text/hunspell )
java? ( >=virtual/jdk-1.5 )"
RDEPEND="${DEPEND}"
pkg_setup() {
java-pkg-opt-2_pkg_setup
if use aspell && use hunspell; then
ewarn "You have enabled 'aspell' and 'hunspell' support, but both cannot coexist,"
ewarn "only aspell will be build. Press Ctrl+C and set only 'hunspell' USE flag if"
ewarn "you want hunspell support."
fi
}
src_configure() {
econf \
--enable-shared \
$(use_enable aspell) \
$(use_enable hunspell) \
$(use_with hunspell hunspell-dictdir=/usr/share/myspell) \
$(use_enable java java-bindings) \
$(use_enable static-libs static) \
$(use_enable threads pthreads)
}
src_install() {
emake DESTDIR="${D}" install || die "install failed"
dodoc AUTHORS ChangeLog README || die
}
|