Lines 2-8
Link Here
|
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: /var/cvsroot/gentoo-x86/app-text/enchant/enchant-1.3.0.ebuild,v 1.9 2007/12/11 11:01:36 vapier Exp $ |
4 |
|
4 |
|
5 |
inherit libtool |
5 |
inherit libtool eutils autotools |
6 |
|
6 |
|
7 |
DESCRIPTION="Spellchecker wrapping library" |
7 |
DESCRIPTION="Spellchecker wrapping library" |
8 |
HOMEPAGE="http://www.abisource.com/enchant/" |
8 |
HOMEPAGE="http://www.abisource.com/enchant/" |
Lines 11-24
Link Here
|
11 |
LICENSE="LGPL-2.1" |
11 |
LICENSE="LGPL-2.1" |
12 |
SLOT="0" |
12 |
SLOT="0" |
13 |
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sh sparc x86 ~x86-fbsd" |
13 |
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sh sparc x86 ~x86-fbsd" |
14 |
IUSE="" |
14 |
IUSE="hunspell" |
15 |
# FIXME : some sort of proper spellchecker selection needed |
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 |
# The || is meant to make sure there is a a default spell lib to work with |
18 |
# 25 Aug 2003; foser <foser@gentoo.org> |
18 |
# 25 Aug 2003; foser <foser@gentoo.org> |
19 |
|
19 |
|
20 |
RDEPEND=">=dev-libs/glib-2 |
20 |
RDEPEND=">=dev-libs/glib-2 |
21 |
|| ( virtual/aspell-dict app-text/ispell app-text/hunspell )" |
21 |
hunspell? ( >=app-text/hunspell-1.1.9 ) |
|
|
22 |
!hunspell? ( || ( virtual/aspell-dict app-text/ispell ) )" |
22 |
|
23 |
|
23 |
# libtool is needed for the install-sh to work |
24 |
# libtool is needed for the install-sh to work |
24 |
DEPEND="${RDEPEND} |
25 |
DEPEND="${RDEPEND} |
Lines 28-37
Link Here
|
28 |
unpack ${A} |
29 |
unpack ${A} |
29 |
cd "${S}" |
30 |
cd "${S}" |
30 |
|
31 |
|
|
|
32 |
epatch "${FILESDIR}/${P}-external-hunspell.patch" |
33 |
AT_M4DIR="ac-helpers" eautoreconf |
34 |
|
31 |
# FreeBSD requires this for sane versionsing and install fixes |
35 |
# FreeBSD requires this for sane versionsing and install fixes |
32 |
elibtoolize |
36 |
elibtoolize |
33 |
} |
37 |
} |
34 |
|
38 |
|
|
|
39 |
src_compile() { |
40 |
econf \ |
41 |
$(use_enable hunspell myspell external) \ |
42 |
--disable-dependency-tracking \ |
43 |
|| die "econf failed" |
44 |
emake || die "emake failed" |
45 |
} |
46 |
|
35 |
src_install() { |
47 |
src_install() { |
36 |
emake -j1 DESTDIR="${D}" install || die |
48 |
emake -j1 DESTDIR="${D}" install || die |
37 |
dodoc AUTHORS BUGS ChangeLog HACKING MAINTAINERS NEWS README TODO |
49 |
dodoc AUTHORS BUGS ChangeLog HACKING MAINTAINERS NEWS README TODO |