/[gentoo-x86]/app-editors/tea/tea-17.5.4.ebuild
Gentoo

Contents of /app-editors/tea/tea-17.5.4.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sat Mar 1 19:03:07 2008 UTC (6 years, 1 month ago) by armin76
Branch: MAIN
Changes since 1.1: +2 -2 lines
x86 stable
(Portage version: 2.1.4.4)

1 # Copyright 1999-2008 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-editors/tea/tea-17.5.4.ebuild,v 1.1 2008/01/25 10:04:56 drac Exp $
4
5 inherit autotools 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 KEYWORDS="~amd64 ~ia64 x86 ~x86-fbsd"
14 IUSE="enchant gnome hacking ipv6 spell"
15
16 RDEPEND=">=x11-libs/gtk+-2
17 x11-libs/libX11
18 gnome? ( >=x11-libs/gtksourceview-2
19 gnome-base/gnome-vfs )"
20 DEPEND="${RDEPEND}
21 spell? ( app-text/aspell )
22 enchant? ( app-text/enchant )
23 dev-util/pkgconfig"
24
25 src_unpack() {
26 unpack ${A}
27 cd "${S}"
28 epatch "${FILESDIR}"/${P}-forced-cflags-and-compiler-warnings.patch
29 eautoconf
30 }
31
32 src_compile() {
33 local myconf
34
35 if use hacking; then
36 myconf="${myconf} --enable-hacking"
37 fi
38 if ! use gnome; then
39 myconf="${myconf} --enable-legacy"
40 fi
41 if use enchant; then
42 myconf="${myconf} --enable-enchant"
43 fi
44
45 econf \
46 $(use_enable ipv6) \
47 ${myconf} || die "econf failed!"
48
49 emake || die "emake failed!"
50 }
51
52 src_install() {
53 emake DESTDIR="${D}" install || die "emake install failed!"
54
55 make_desktop_entry tea Tea /usr/share/tea/pixmaps/tea_icon_v2.png Development
56
57 # insinto /usr/share/doc/tea/
58 # doins AUTHORS COPYING NEWS README TODO ChangeLog doc/*
59
60 # insinto /usr/share/pixmaps/
61 # doins pixmaps/*
62 }
63
64 pkg_postinst() {
65 if use spell ; then
66 elog "To get full spellchecking functuality, ensure that you install"
67 elog "the relevant language pack(s)"
68 fi
69 }

  ViewVC Help
Powered by ViewVC 1.1.20