summaryrefslogtreecommitdiff
blob: 68d1cda31eb469b40ead3e14ff39d111971a8c20 (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
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=5

DESCRIPTION="Digramic Bayesian text classifier"
HOMEPAGE="http://www.lbreyer.com/gpl.html"
SRC_URI="http://www.lbreyer.com/gpl/${P}.tar.gz"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="amd64 s390 x86 ~amd64-linux ~x86-linux ~ppc-macos"
IUSE="interactive"

RDEPEND="interactive? (
		sys-libs/slang:=
		sys-libs/readline:=
		sys-libs/ncurses:= )"

DEPEND="${RDEPEND}"

src_prepare() {
	# See bug #352636 for reference
	export ac_cv_lib_ncurses_initscr=$(usex interactive)
	export ac_cv_lib_readline_readline=$(usex interactive)
	export ac_cv_lib_slang_SLsmg_init_smg=$(usex interactive)
}