1 |
welp |
1.1 |
# Copyright 1999-2007 Gentoo Foundation |
2 |
|
|
# Distributed under the terms of the GNU General Public License v2 |
3 |
welp |
1.4 |
# $Header: /var/cvsroot/gentoo-x86/app-editors/tea/tea-16.0.5.ebuild,v 1.3 2007/04/15 21:20:08 armin76 Exp $ |
4 |
welp |
1.1 |
|
5 |
|
|
inherit eutils |
6 |
|
|
|
7 |
|
|
DESCRIPTION="Small, lightweight GTK+ text editor" |
8 |
|
|
HOMEPAGE="http://tea-editor.sourceforge.net/" |
9 |
|
|
SRC_URI="mirror://sourceforge/tea-editor/${P}.tar.bz2" |
10 |
|
|
|
11 |
|
|
LICENSE="GPL-2" |
12 |
|
|
SLOT="0" |
13 |
armin76 |
1.3 |
KEYWORDS="~amd64 ~ia64 x86 ~x86-fbsd" |
14 |
welp |
1.1 |
IUSE="enchant gnome hacking ipv6 sounds spell" |
15 |
|
|
|
16 |
|
|
RDEPEND="x11-libs/gtk+ |
17 |
|
|
gnome? ( x11-libs/gtksourceview |
18 |
|
|
gnome-base/gnome-vfs )" |
19 |
|
|
DEPEND="${RDEPEND} |
20 |
|
|
x11-libs/libX11 |
21 |
|
|
sounds? ( media-libs/gstreamer ) |
22 |
|
|
spell? ( app-text/aspell ) |
23 |
|
|
enchant? ( app-text/enchant ) |
24 |
|
|
dev-util/pkgconfig" |
25 |
|
|
|
26 |
|
|
src_compile() { |
27 |
|
|
local myconf |
28 |
|
|
|
29 |
|
|
myconf="${myconf} --disable-debian" |
30 |
|
|
if use sounds; then |
31 |
|
|
myconf="${myconf} --enable-sounds" |
32 |
|
|
fi |
33 |
|
|
if use hacking; then |
34 |
|
|
myconf="${myconf} --enable-hacking" |
35 |
|
|
fi |
36 |
|
|
if ! use gnome; then |
37 |
|
|
myconf="${myconf} --enable-legacy" |
38 |
|
|
fi |
39 |
|
|
if use enchant; then |
40 |
|
|
myconf="${myconf} --enable-enchant" |
41 |
|
|
fi |
42 |
|
|
|
43 |
|
|
econf \ |
44 |
|
|
$(use_enable ipv6) \ |
45 |
|
|
${myconf} || die "econf failed!" |
46 |
|
|
|
47 |
|
|
emake || die "emake failed!" |
48 |
|
|
} |
49 |
|
|
|
50 |
|
|
src_install() { |
51 |
|
|
emake DESTDIR="${D}" install || die "emake install failed!" |
52 |
|
|
|
53 |
|
|
doicon ${FILESDIR}/tea_icon_v2.png |
54 |
|
|
make_desktop_entry tea Tea tea_icon_v2.png Office |
55 |
|
|
} |
56 |
|
|
|
57 |
|
|
pkg_postinst() { |
58 |
|
|
if use spell ; then |
59 |
|
|
elog "To get full spellchecking functuality, ensure that you install" |
60 |
|
|
elog "the relevant language pack" |
61 |
|
|
fi |
62 |
|
|
} |