summaryrefslogtreecommitdiff
blob: 96b8830c0120c1d74310c3c9e63eb1132daa8d65 (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
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=5

inherit eutils autotools
DESCRIPTION="The intelligent predictive text entry system"
HOMEPAGE="http://presage.sourceforge.net"
SRC_URI="mirror://sourceforge/${PN}/${PV}/${P}.tar.gz"

LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="~amd64 ~arm ~x86"
IUSE="doc examples gtk python sqlite test"

RDEPEND="
	examples? ( sys-libs/ncurses )
	gtk? ( x11-libs/gtk+ )
	python? ( dev-lang/python dev-python/dbus-python )
	sqlite? ( dev-db/sqlite )
	app-text/dos2unix
"

DEPEND="${COMMON_DEPEND}
	doc? ( app-doc/doxygen )
	python? ( dev-lang/swig )
	test? ( dev-util/cppunit )
	sys-apps/help2man
"

src_prepare() {
	epatch "${FILESDIR}/${PN}-0.8.9-automagic.patch"
	rm -r "presage-0.8.9/apps/gtk/gprompter"
	eautoreconf
}

src_configure() {

    #   $(use_enable gtk gprompter)

	local myeconfargs=(
		$(use_enable doc documentation)
		$(use_enable examples curses)
        $(use_enable gtk gpresagemate)
		$(use_enable python)
		$(use_enable python python-binding)
		$(use_enable sqlite)
		$(use_enable test)
	)
	econf ${myeconfargs}
}