Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 230971 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/portage/app-text/enchant/enchant-1.3.0.ebuild (-12 / +26 lines)
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
inherit libtool confutils
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 10-29 Link Here
10
10
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="aspell ispell hunspell zemberek"
15
# FIXME : some sort of proper spellchecker selection needed
16
15
17
# The || is meant to make sure there is a a default spell lib to work with
16
COMMON_DEPENDS=">=dev-libs/glib-2
18
# 25 Aug 2003; foser <foser@gentoo.org>
17
	aspell? ( virtual/aspell-dict )
18
	hunspell? ( app-text/hunspell )
19
	zemberek? ( dev-libs/dbus-glib )"
19
20
20
RDEPEND=">=dev-libs/glib-2
21
RDEPEND="${COMMON_DEPENDS}
21
	|| ( virtual/aspell-dict app-text/ispell app-text/hunspell )"
22
	zemberek? ( app-text/zemberek-server )"
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="${COMMON_DEPENDS}
25
	dev-util/pkgconfig"
26
	dev-util/pkgconfig"
26
27
28
pkg_setup() {
29
	confutils_require_any aspell ispell hunspell zemberek
30
}
31
27
src_unpack() {
32
src_unpack() {
28
	unpack ${A}
33
	unpack ${A}
29
	cd "${S}"
34
	cd "${S}"
Lines 32-38 Link Here
32
	elibtoolize
37
	elibtoolize
33
}
38
}
34
39
40
src_compile() {
41
	econf \
42
		$(use_enable aspell) \
43
		$(use_enable ispell) \
44
		$(use_enable hunspell myspell) \
45
		$(use_enable zemberek) || die "econf failed"
46
	emake || die "emake failed"
47
}
48
35
src_install() {
49
src_install() {
36
	emake -j1 DESTDIR="${D}" install || die
50
	emake DESTDIR="${D}" install || die "emake install failed"
37
	dodoc AUTHORS BUGS ChangeLog HACKING MAINTAINERS NEWS README TODO
51
	dodoc AUTHORS BUGS ChangeLog HACKING MAINTAINERS NEWS README TODO
38
}
52
}

Return to bug 230971