Lines 1-8
Link Here
|
1 |
# Copyright 1999-2007 Gentoo Foundation |
1 |
# Copyright 1999-2008 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/app-text/enchant/enchant-1.3.0.ebuild,v 1.9 2007/12/11 11:01:36 vapier Exp $ |
3 |
# $Header: $ |
4 |
|
4 |
|
5 |
inherit libtool |
5 |
EAPI="1" |
|
|
6 |
inherit libtool confutils |
6 |
|
7 |
|
7 |
DESCRIPTION="Spellchecker wrapping library" |
8 |
DESCRIPTION="Spellchecker wrapping library" |
8 |
HOMEPAGE="http://www.abisource.com/enchant/" |
9 |
HOMEPAGE="http://www.abisource.com/enchant/" |
Lines 10-38
Link Here
|
10 |
|
11 |
|
11 |
LICENSE="LGPL-2.1" |
12 |
LICENSE="LGPL-2.1" |
12 |
SLOT="0" |
13 |
SLOT="0" |
13 |
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sh sparc x86 ~x86-fbsd" |
14 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd" |
14 |
IUSE="" |
15 |
IUSE="aspell +hunspell zemberek" |
15 |
# FIXME : some sort of proper spellchecker selection needed |
|
|
16 |
|
16 |
|
17 |
# The || is meant to make sure there is a a default spell lib to work with |
17 |
COMMON_DEPENDS=">=dev-libs/glib-2 |
18 |
# 25 Aug 2003; foser <foser@gentoo.org> |
18 |
aspell? ( virtual/aspell-dict ) |
|
|
19 |
hunspell? ( >=app-text/hunspell-1.2.1 ) |
20 |
zemberek? ( dev-libs/dbus-glib )" |
19 |
|
21 |
|
20 |
RDEPEND=">=dev-libs/glib-2 |
22 |
RDEPEND="${COMMON_DEPENDS} |
21 |
|| ( virtual/aspell-dict app-text/ispell app-text/hunspell )" |
23 |
zemberek? ( app-text/zemberek-server )" |
22 |
|
24 |
|
23 |
# libtool is needed for the install-sh to work |
25 |
# libtool is needed for the install-sh to work |
24 |
DEPEND="${RDEPEND} |
26 |
DEPEND="${COMMON_DEPENDS} |
25 |
dev-util/pkgconfig" |
27 |
dev-util/pkgconfig" |
26 |
|
28 |
|
|
|
29 |
pkg_setup() { |
30 |
confutils_require_any aspell hunspell zemberek |
31 |
} |
32 |
|
27 |
src_unpack() { |
33 |
src_unpack() { |
28 |
unpack ${A} |
34 |
unpack ${A} |
29 |
cd "${S}" |
35 |
cd "${S}" |
30 |
|
36 |
|
31 |
# FreeBSD requires this for sane versionsing and install fixes |
37 |
# FreeBSD requires this for sane versioning and install fixes |
32 |
elibtoolize |
38 |
elibtoolize |
33 |
} |
39 |
} |
34 |
|
40 |
|
|
|
41 |
src_compile() { |
42 |
econf $(use_enable aspell) \ |
43 |
$(use_enable hunspell myspell) \ |
44 |
$(use_enable zemberek) \ |
45 |
--disable-ispell \ |
46 |
--with-myspell-dir=/usr/share/myspell/ \ |
47 |
--with-aspell-prefix=/usr/lib/aspell-0.60/ || die "econf failed" |
48 |
emake || die "emake failed" |
49 |
} |
50 |
|
35 |
src_install() { |
51 |
src_install() { |
36 |
emake -j1 DESTDIR="${D}" install || die |
52 |
emake -j1 DESTDIR="${D}" install || die "emake install failed" |
37 |
dodoc AUTHORS BUGS ChangeLog HACKING MAINTAINERS NEWS README TODO |
53 |
dodoc AUTHORS BUGS ChangeLog HACKING MAINTAINERS NEWS README TODO |
38 |
} |
54 |
} |