blob: 50dcbac8e3bd9d024dc51c013579abfdbc6ff5e6 (
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
66
67
68
|
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
GCONF_DEBUG="no"
GNOME2_LA_PUNT="yes"
PYTHON_COMPAT=( python{2_7,3_4,3_5} )
inherit autotools eutils gnome2 java-pkg-opt-2 python-any-r1
DESCRIPTION="A Syntactic English parser"
HOMEPAGE="http://www.abisource.com/projects/link-grammar/ http://www.link.cs.cmu.edu/link/"
SRC_URI="https://github.com/opencog/${PN}/archive/${P}.tar.gz"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
IUSE="aspell +hunspell java python static-libs threads"
RDEPEND="
aspell? ( app-text/aspell )
hunspell? ( app-text/hunspell )
java? (
>=virtual/jdk-1.6:*
dev-java/ant-core )
python? ( ${PYTHON_DEPS} )
"
DEPEND="${RDEPEND}
dev-lang/swig:0
"
S="${WORKDIR}/${PN}-${P}"
pkg_setup() {
if use aspell && use hunspell; then
ewarn "You have enabled 'aspell' and 'hunspell' support, but both cannot coexist,"
ewarn "only hunspell will be built. Press Ctrl+C and set only 'aspell' USE flag if"
ewarn "you want aspell support."
fi
use java && java-pkg-opt-2_pkg_setup
use python && python-any-r1_pkg_setup
}
src_prepare() {
use java && java-pkg-opt-2_src_prepare
AT_M4DIR="ac-helpers/" eautoreconf
gnome2_src_prepare
}
src_configure() {
gnome2_src_configure \
--disable-perl-bindings \
--enable-shared \
$(use_enable aspell) \
$(use_enable hunspell) \
$(usex hunspell --with-hunspell-dictdir=/usr/share/myspell) \
$(use_enable java java-bindings) \
$(use_enable python python-bindings) \
$(use_enable static-libs static) \
$(use_enable threads pthreads)
}
pkg_preinst() {
use java && java-pkg-opt-2_pkg_preinst
gnome2_pkg_preinst
}
|