aboutsummaryrefslogtreecommitdiff
blob: 867c0cc02df7aa573a6f68389933104198e50412 (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
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=6

DESCRIPTION="Helsinki Finite State Transducer API and tools"
HOMEPAGE="http://hfst.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="+openfst sfst foma xml +glib"

RDEPEND="
	foma? ( >sci-misc/foma-0.9.13 )
	glib? ( dev-libs/glib:2 )
	openfst? ( >sci-misc/openfst-1.2 )
	sfst? ( >sci-misc/sfst-1.3 )
	xml? ( dev-libs/libxml2:2= dev-cpp/libxmlpp:3.0= )
"
DEPEND="${RDEPEND}
	>=sys-devel/flex-2.5.35
	sys-devel/bison"

src_configure() {
	econf \
		$(use_with openfst) \
		$(use_with sfst) \
		$(use_with foma) \
		$(use_enable xml apertium2fst) \
		$(use_with glib unicodehandler glib) \
		--enable-lexc
}