ChangeLog

# ChangeLog for app-editors/tea
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/app-editors/tea/ChangeLog,v 1.41 2008/09/05 21:34:37 coldwind Exp $

05 Sep 2008; Santiago M. Mola tea-17.6.3.ebuild:
amd64 stable wrt bug #219907

*tea-17.6.6 (03 Sep 2008)

03 Sep 2008; Raúl Porcel +tea-17.6.6.ebuild:
Version bump

03 Sep 2008; Raúl Porcel tea-17.6.3.ebuild:
x86 stable, fix bug #219907

28 Jul 2008; Ulrich Mueller metadata.xml:
Add USE flag description to metadata wrt GLEP 56.

*tea-17.6.3 (03 Jul 2008)

03 Jul 2008; Thomas Anderson +tea-17.6.3.ebuild:
Version bump

23 Apr 2008; Raúl Porcel tea-17.6.0.ebuild:
x86 stable

21 Mar 2008; Peter Weller tea-17.6.0.ebuild:
Fix patch; bug 213903

17 Mar 2008; Raúl Porcel tea-17.6.0.ebuild:
Fix patch, welp fails

*tea-17.6.0 (17 Mar 2008)

17 Mar 2008; Peter Weller +tea-17.6.0.ebuild:
Bump

01 Mar 2008; Raúl Porcel tea-17.5.4.ebuild:
x86 stable

02 Feb 2008; Raúl Porcel tea-17.5.0.ebuild:
x86 stable

*tea-17.5.4 (25 Jan 2008)

25 Jan 2008; Samuli Suominen
+files/tea-17.5.4-forced-cflags-and-compiler-warnings.patch,
+tea-17.5.4.ebuild:
Version bump. Stop installing stripped binary. Include string.h where strlen
is used, was hidden by forced -w in CFLAGS.

*tea-17.5.1 (07 Jan 2008)

07 Jan 2008; +tea-17.5.1.ebuild:
Bump

*tea-17.5.0 (02 Jan 2008)

02 Jan 2008; Peter Weller +tea-17.5.0.ebuild:
Bump

30 Dec 2007; Samuli Suominen -files/tea_icon_v2.png,
-tea-16.1.1.ebuild, -tea-16.1.1-r1.ebuild, -tea-17.0.0.ebuild,
-tea-17.0.2.ebuild, -tea-17.3.5.ebuild, tea-17.4.1.ebuild:
amd64 stable, closing also #200306, leaving QA bugs 200229 and 200304 open -
not a regression.

16 Dec 2007; Raúl Porcel tea-17.4.1.ebuild:
x86 stable

29 Nov 2007; Raúl Porcel tea-17.3.5.ebuild:
x86 stable

*tea-17.4.1 (17 Nov 2007)

17 Nov 2007; Peter Weller +tea-17.4.1.ebuild:
Bump

22 Oct 2007; ChangeLog:
Bump to 17.3.5, remove sounds USE in previous versions. Fixes bugs 196402
and 188371, respectively.

11 Oct 2007; Rémi Cardona tea-16.1.1.ebuild,
tea-16.1.1-r1.ebuild, tea-17.0.0.ebuild, tea-17.0.2.ebuild:
update gtksourceview deps (see bug #195366)

05 Sep 2007; Raúl Porcel tea-17.0.2.ebuild:
x86 stable

08 Jul 2007; Raúl Porcel tea-17.0.0.ebuild:
Re-add ~ia64/~x86 because welp fails

*tea-17.0.0 (07 Jul 2007)
*tea-16.1.1-r1 (07 Jul 2007)

07 Jul 2007; Peter Weller -tea-15.0.1.ebuild,
-tea-16.0.3.ebuild, -tea-16.0.5.ebuild, tea-16.1.1.ebuild,
+tea-16.1.1-r1.ebuild, +tea-17.0.0.ebuild:
Clean up old versions, bump, revbump to fix install locations

27 Jun 2007; Christoph Mende tea-16.1.1.ebuild:
Stable on amd64 wrt bug 183366

08 Jun 2007; Raúl Porcel tea-16.1.1.ebuild:
x86 stable

*tea-16.1.1 (08 May 2007)

08 May 2007; Raúl Porcel -tea-16.1.0.ebuild,
+tea-16.1.1.ebuild:
Version bump, remove oldish, as it was broken, and rekeyword ~ia64, on
behalf of welp

15 Apr 2007; Raúl Porcel tea-16.0.5.ebuild:
Add ~ia64, stable x86

*tea-16.1.0 (15 Apr 2007)

15 Apr 2007; Peter Weller +tea-16.1.0.ebuild:
Bumped wrt bug 174683

31 Mar 2007; Raúl Porcel tea-16.0.3.ebuild:
x86 stable

10 Mar 2007; Peter Weller tea-16.0.5.ebuild:
Keyworded ~x86-fbsd

*tea-16.0.5 (07 Mar 2007)

07 Mar 2007; Peter Weller -tea-14.3.1.ebuild,
-tea-15.0.0.ebuild, tea-15.0.1.ebuild, +tea-16.0.5.ebuild:
Punted old versions, 15.0.1 stable on amd64, bumped.

28 Feb 2007; Peter Weller ChangeLog:
New version, bumped ebuild

07 Feb 2007; Peter Weller tea-15.0.0.ebuild:
Minor fixes

06 Feb 2007; Raúl Porcel tea-15.0.1.ebuild:
x86 stable

08 Jan 2007; Peter Weller (welp) tea-15.0.0.ebuild,
tea-15.0.1.ebuild:
Fixed a couple of things as upstream have no --disable :(

07 Jan 2007; Peter Weller (welp) tea-15.0.0.ebuild,
tea-15.0.1.ebuild:
Removed sounds USE flag as package is b0rked

*tea-15.0.1 (06 Jan 2007)

06 Jan 2007; Peter Weller (welp) tea-14.3.1.ebuild,
tea-15.0.0.ebuild, +tea-15.0.1.ebuild:
Bumped to 15.0.1, various other edits

*tea-15.0.0 (30 Dec 2006)

30 Dec 2006; Peter Weller +tea-15.0.0.ebuild:
New release of tea, bumpz0r!

18 Dec 2006; Peter Weller tea-14.3.1.ebuild:
Updated ebuild to reflect new icon

18 Dec 2006; Peter Weller +files/tea_icon_v2.png:
Removed obslete icon and added new icon

*tea-14.3.1 (10 Dec 2006)

10 Dec 2006; Peter Weller +metadata.xml,
+tea-14.3.1.ebuild:
Added tea-14.3.1 to the tree wrt bug #153602

Manifest

AUX tea-17.5.4-forced-cflags-and-compiler-warnings.patch 1341 RMD160 ca6c51158737d72fe9c89ba6ffab6aff3d145f28 SHA1 d15f57c4accb50353de170d0344f41234e8bc506 SHA256 5df31857b563b7a4c2e3e7205771c9bf464ec2293ad12b10d8e650211714fca3
DIST tea-17.4.1.tar.bz2 452605 RMD160 2cd3fc0c8f8902ed6fbd569b2ae779c0c3028fbc SHA1 13e703239555378e507bdcaf601e73415d001f23 SHA256 482cae0ce18da21fa4a81b6525018db740fa0cfb5b236670c5e63949f397fa39
DIST tea-17.5.0.tar.bz2 453318 RMD160 6bf9ac483aea02e0678ad8c6a0ed9069f85264bd SHA1 80efc11bd54953f928ac58ef067a2a20a4917eb1 SHA256 52065ec87cbdadeaf0bdc2c0d9d03a9e894e407b024587f2cc92512685826530
DIST tea-17.5.1.tar.bz2 453601 RMD160 6c8f980acbf7a8fe62e3a6228ffe23db310af34d SHA1 dabf175e9ea6d3f8be513f6b682ca7bd44bcceb5 SHA256 bf426e492dcac2f3591ee673b3640837d7cb05c46e85ad761d3c2a976b2e0b3d
DIST tea-17.5.4.tar.bz2 454905 RMD160 a2d689247f09a144b70954b771a521de6f952d1b SHA1 757315db8f94dfcb4989437d9a37cf23f63a657c SHA256 99fdd3eb6ed1dd2f74f491262f585565ae60d2eb8e34fafe7fc10ac4228b6185
DIST tea-17.6.0.tar.bz2 456737 RMD160 a0a0acb7620a4503a782252876476b0d160043a5 SHA1 3cca4b2d78ff73de72d5568f79e91030e40d7efa SHA256 cd5b06fdb9274380e6b455ca479b597e089cabe04eabe7f37c0d2871bfff7a01
DIST teagtk-17.6.3.tar.bz2 454818 RMD160 3b9e053f649ffee6a151786ed6a3fae5fb1440c2 SHA1 347c029c5349c8461f6725f0efe08c90e3136187 SHA256 a5381fb4bdc63580c9cc224e61171da2fef84257de48cb7cc647965ef4c63d7b
DIST teagtk-17.6.6.tar.bz2 479197 RMD160 e8b6aabd7dfb86c43db88bceb7ebaec5f9738594 SHA1 17c3019c9dc6b53d87a9a3bc1cc02784d256f234 SHA256 e2583776fb38331f1e7989f7f8ea23bbae593af26f4c3cdeeae61a793b6bd752
EBUILD tea-17.4.1.ebuild 1462 RMD160 827d9b4d9deb9a060cc2df3033ec92dcbbb35f6a SHA1 46eca2021b3d1b812bcab7bc041fb40be4be890f SHA256 d1163aa446be897c614ab71c9bf65cd5149f53d02c672c730948bec38a520f96
EBUILD tea-17.5.0.ebuild 1466 RMD160 10c4707cc003ed275eac59334c9054aca9c30468 SHA1 a7927c4b784f29c8debc8b9a1d92cd9a3f40616e SHA256 a010d91fdbb3bc1da90940ea1c4954c6cfe33ae5af09e8d7721c0d5b7fb370f5
EBUILD tea-17.5.1.ebuild 1464 RMD160 d33fbe91531fd82e534e88073f20dc8ac71ece0c SHA1 dbcc7999ba55932dc5763170135e08d3dfc226af SHA256 5178bffc2b9155f89d2860fe27682e8a82b96807f29366f4f96f003847bdc2a0
EBUILD tea-17.5.4.ebuild 1601 RMD160 4e15a978e25af5e75be054ab5cf2328f16af887e SHA1 e4be4f906ce5f327a5f127d481675d1f25fa7221 SHA256 882469d154c0e6b1ac709b89e0a9e1eddd7099e19ea01f49d91d073f796e587d
EBUILD tea-17.6.0.ebuild 1624 RMD160 7d0ea7476145b3d85412e35537a79fd7ac2a2b7a SHA1 9d54c2b1cc3f920fef73bce5682ddd2c25297c75 SHA256 8502b6ec77b0f14e9cc26f2918ba2db00e2d8858364829c06b569983a6fd1d85
EBUILD tea-17.6.3.ebuild 1683 RMD160 40a8fd9d4be93680a432a4b5191fabec76fb204b SHA1 eb02341fe2f44f4ba06a1446377ffa59698f1dc0 SHA256 c3b375a8dac3c3b03b804981df8578b82f09d6da944de6785d693d37ec052a3d
EBUILD tea-17.6.6.ebuild 1684 RMD160 49b136988826093b8824fbf9954232065d526ecc SHA1 4200c16041b24d98b2fbd73f901ebdbfb506d22c SHA256 4d9705485be327c17e7cec558269952a922cf1d27279e483285758e770c4cb5e
MISC ChangeLog 5343 RMD160 b53064d0dbdac9b37e478c8068d61ebbb8309a31 SHA1 f8ee5b5cda256874780878b6ffea504e9a5bd572 SHA256 391783d8cf87e04f6192c002df498b62488219c5c2237de4fd01d629264847b1
MISC metadata.xml 648 RMD160 f88a163e36f8839c02b3f9940317ef8edd529732 SHA1 73291271af97355111317ae47b629e2c323a4936 SHA256 1b1bd191dc86997a95a17c6562e541b6c6ab49b590436bb5e96ca436c2e20c11

files

metadata.xml




no-herd

welp@gentoo.org
Peter Weller


This is an very small GTK2 text editor. It has lots of extra features
including syntax hilighting and a built in file manager as well as a
built in image viewer. It can also read lots of 'other' filetypes.


Enable spell checking using enchant
Enable hacking support

tea-17.4.1.ebuild

# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-editors/tea/tea-17.4.1.ebuild,v 1.3 2007/12/30 12:19:24 drac Exp $

inherit eutils

DESCRIPTION="Small, lightweight GTK+ text editor"
HOMEPAGE="http://tea-editor.sourceforge.net/"
SRC_URI="mirror://sourceforge/tea-editor/${P}.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ~ia64 x86 ~x86-fbsd"
IUSE="enchant gnome hacking ipv6 spell"

RDEPEND="x11-libs/gtk+
x11-libs/libX11
gnome? ( =x11-libs/gtksourceview-1*
gnome-base/gnome-vfs )"
DEPEND="${RDEPEND}
spell? ( app-text/aspell )
enchant? ( app-text/enchant )
dev-util/pkgconfig"

src_compile() {
local myconf

if use hacking; then
myconf="${myconf} --enable-hacking"
fi
if ! use gnome; then
myconf="${myconf} --enable-legacy"
fi
if use enchant; then
myconf="${myconf} --enable-enchant"
fi

econf \
$(use_enable ipv6) \
${myconf} || die "econf failed!"

emake || die "emake failed!"
}

src_install() {
emake DESTDIR="${D}" install || die "emake install failed!"

make_desktop_entry tea Tea /usr/share/tea/pixmaps/tea_icon_v2.png Development

# insinto /usr/share/doc/tea/
# doins AUTHORS COPYING NEWS README TODO ChangeLog doc/*

# insinto /usr/share/pixmaps/
# doins pixmaps/*
}

pkg_postinst() {
if use spell ; then
elog "To get full spellchecking functuality, ensure that you install"
elog "the relevant language pack(s)"
fi
}

tea-17.5.0.ebuild

# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-editors/tea/tea-17.5.0.ebuild,v 1.2 2008/02/02 12:41:16 armin76 Exp $

inherit eutils

DESCRIPTION="Small, lightweight GTK+ text editor"
HOMEPAGE="http://tea-editor.sourceforge.net/"
SRC_URI="mirror://sourceforge/tea-editor/${P}.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ia64 x86 ~x86-fbsd"
IUSE="enchant gnome hacking ipv6 spell"

RDEPEND="x11-libs/gtk+
x11-libs/libX11
gnome? ( =x11-libs/gtksourceview-1*
gnome-base/gnome-vfs )"
DEPEND="${RDEPEND}
spell? ( app-text/aspell )
enchant? ( app-text/enchant )
dev-util/pkgconfig"

src_compile() {
local myconf

if use hacking; then
myconf="${myconf} --enable-hacking"
fi
if ! use gnome; then
myconf="${myconf} --enable-legacy"
fi
if use enchant; then
myconf="${myconf} --enable-enchant"
fi

econf \
$(use_enable ipv6) \
${myconf} || die "econf failed!"

emake || die "emake failed!"
}

src_install() {
emake DESTDIR="${D}" install || die "emake install failed!"

make_desktop_entry tea Tea /usr/share/tea/pixmaps/tea_icon_v2.png Development

# insinto /usr/share/doc/tea/
# doins AUTHORS COPYING NEWS README TODO ChangeLog doc/*

# insinto /usr/share/pixmaps/
# doins pixmaps/*
}

pkg_postinst() {
if use spell ; then
elog "To get full spellchecking functuality, ensure that you install"
elog "the relevant language pack(s)"
fi
}

tea-17.5.1.ebuild

# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-editors/tea/tea-17.5.1.ebuild,v 1.1 2008/01/07 19:59:59 welp Exp $

inherit eutils

DESCRIPTION="Small, lightweight GTK+ text editor"
HOMEPAGE="http://tea-editor.sourceforge.net/"
SRC_URI="mirror://sourceforge/tea-editor/${P}.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ia64 ~x86 ~x86-fbsd"
IUSE="enchant gnome hacking ipv6 spell"

RDEPEND="x11-libs/gtk+
x11-libs/libX11
gnome? ( =x11-libs/gtksourceview-1*
gnome-base/gnome-vfs )"
DEPEND="${RDEPEND}
spell? ( app-text/aspell )
enchant? ( app-text/enchant )
dev-util/pkgconfig"

src_compile() {
local myconf

if use hacking; then
myconf="${myconf} --enable-hacking"
fi
if ! use gnome; then
myconf="${myconf} --enable-legacy"
fi
if use enchant; then
myconf="${myconf} --enable-enchant"
fi

econf \
$(use_enable ipv6) \
${myconf} || die "econf failed!"

emake || die "emake failed!"
}

src_install() {
emake DESTDIR="${D}" install || die "emake install failed!"

make_desktop_entry tea Tea /usr/share/tea/pixmaps/tea_icon_v2.png Development

# insinto /usr/share/doc/tea/
# doins AUTHORS COPYING NEWS README TODO ChangeLog doc/*

# insinto /usr/share/pixmaps/
# doins pixmaps/*
}

pkg_postinst() {
if use spell ; then
elog "To get full spellchecking functuality, ensure that you install"
elog "the relevant language pack(s)"
fi
}

tea-17.5.4.ebuild

# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-editors/tea/tea-17.5.4.ebuild,v 1.2 2008/03/01 19:03:07 armin76 Exp $

inherit autotools eutils

DESCRIPTION="Small, lightweight GTK+ text editor"
HOMEPAGE="http://tea-editor.sourceforge.net"
SRC_URI="mirror://sourceforge/tea-editor/${P}.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ia64 x86 ~x86-fbsd"
IUSE="enchant gnome hacking ipv6 spell"

RDEPEND=">=x11-libs/gtk+-2
x11-libs/libX11
gnome? ( >=x11-libs/gtksourceview-2
gnome-base/gnome-vfs )"
DEPEND="${RDEPEND}
spell? ( app-text/aspell )
enchant? ( app-text/enchant )
dev-util/pkgconfig"

src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${P}-forced-cflags-and-compiler-warnings.patch
eautoconf
}

src_compile() {
local myconf

if use hacking; then
myconf="${myconf} --enable-hacking"
fi
if ! use gnome; then
myconf="${myconf} --enable-legacy"
fi
if use enchant; then
myconf="${myconf} --enable-enchant"
fi

econf \
$(use_enable ipv6) \
${myconf} || die "econf failed!"

emake || die "emake failed!"
}

src_install() {
emake DESTDIR="${D}" install || die "emake install failed!"

make_desktop_entry tea Tea /usr/share/tea/pixmaps/tea_icon_v2.png Development

# insinto /usr/share/doc/tea/
# doins AUTHORS COPYING NEWS README TODO ChangeLog doc/*

# insinto /usr/share/pixmaps/
# doins pixmaps/*
}

pkg_postinst() {
if use spell ; then
elog "To get full spellchecking functuality, ensure that you install"
elog "the relevant language pack(s)"
fi
}

tea-17.6.0.ebuild

# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-editors/tea/tea-17.6.0.ebuild,v 1.4 2008/04/23 17:40:04 armin76 Exp $

inherit autotools eutils

DESCRIPTION="Small, lightweight GTK+ text editor"
HOMEPAGE="http://tea-editor.sourceforge.net"
SRC_URI="mirror://sourceforge/tea-editor/${P}.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ia64 x86 ~x86-fbsd"
IUSE="enchant gnome hacking ipv6 spell"

RDEPEND=">=x11-libs/gtk+-2
x11-libs/libX11
gnome? ( >=x11-libs/gtksourceview-2
gnome-base/gnome-vfs )"
DEPEND="${RDEPEND}
net-misc/curl
spell? ( app-text/aspell )
enchant? ( app-text/enchant )
dev-util/pkgconfig"

src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${PN}-17.5.4-forced-cflags-and-compiler-warnings.patch
eautoconf
}

src_compile() {
local myconf

if use hacking; then
myconf="${myconf} --enable-hacking"
fi
if ! use gnome; then
myconf="${myconf} --enable-legacy"
fi
if use enchant; then
myconf="${myconf} --enable-enchant"
fi

econf \
$(use_enable ipv6) \
${myconf} || die "econf failed!"

emake || die "emake failed!"
}

src_install() {
emake DESTDIR="${D}" install || die "emake install failed!"

make_desktop_entry tea Tea /usr/share/tea/pixmaps/tea_icon_v2.png Development

# insinto /usr/share/doc/tea/
# doins AUTHORS COPYING NEWS README TODO ChangeLog doc/*

# insinto /usr/share/pixmaps/
# doins pixmaps/*
}

pkg_postinst() {
if use spell ; then
elog "To get full spellchecking functuality, ensure that you install"
elog "the relevant language pack(s)"
fi
}

tea-17.6.3.ebuild

# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-editors/tea/tea-17.6.3.ebuild,v 1.3 2008/09/05 21:34:37 coldwind Exp $

EAPI="1"
inherit autotools eutils

MY_P=${P/tea/teagtk}

DESCRIPTION="Small, lightweight GTK+ text editor"
HOMEPAGE="http://tea-editor.sourceforge.net"
SRC_URI="mirror://sourceforge/tea-editor/${MY_P}.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ~ia64 x86 ~x86-fbsd"
IUSE="enchant gnome hacking ipv6 spell"

RDEPEND="x11-libs/gtk+:2
x11-libs/libX11
gnome? ( x11-libs/gtksourceview:2.0
gnome-base/gnome-vfs )"
DEPEND="${RDEPEND}
net-misc/curl
spell? ( app-text/aspell )
enchant? ( app-text/enchant )
dev-util/pkgconfig"

S=${WORKDIR}/${MY_P}

src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${PN}-17.5.4-forced-cflags-and-compiler-warnings.patch
eautoreconf
}

src_compile() {
local myconf

if use hacking; then
myconf="${myconf} --enable-hacking"
fi
if ! use gnome; then
myconf="${myconf} --enable-legacy"
fi
if use enchant; then
myconf="${myconf} --enable-enchant"
fi

econf \
$(use_enable ipv6) \
${myconf} || die "econf failed!"

emake || die "emake failed!"
}

src_install() {
emake DESTDIR="${D}" install || die "emake install failed!"

make_desktop_entry teagtk Tea /usr/share/tea/pixmaps/tea_icon_v2.png Development

# insinto /usr/share/doc/tea/
# doins AUTHORS COPYING NEWS README TODO ChangeLog doc/*

# insinto /usr/share/pixmaps/
# doins pixmaps/*
}

pkg_postinst() {
if use spell ; then
elog "To get full spellchecking functuality, ensure that you install"
elog "the relevant language pack(s)"
fi
}

tea-17.6.6.ebuild

# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-editors/tea/tea-17.6.6.ebuild,v 1.1 2008/09/03 14:03:25 armin76 Exp $

EAPI="1"
inherit autotools eutils

MY_P=${P/tea/teagtk}

DESCRIPTION="Small, lightweight GTK+ text editor"
HOMEPAGE="http://tea-editor.sourceforge.net"
SRC_URI="mirror://sourceforge/tea-editor/${MY_P}.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ia64 ~x86 ~x86-fbsd"
IUSE="enchant gnome hacking ipv6 spell"

RDEPEND="x11-libs/gtk+:2
x11-libs/libX11
gnome? ( x11-libs/gtksourceview:2.0
gnome-base/gnome-vfs )"
DEPEND="${RDEPEND}
net-misc/curl
spell? ( app-text/aspell )
enchant? ( app-text/enchant )
dev-util/pkgconfig"

S=${WORKDIR}/${MY_P}

src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${PN}-17.5.4-forced-cflags-and-compiler-warnings.patch
eautoreconf
}

src_compile() {
local myconf

if use hacking; then
myconf="${myconf} --enable-hacking"
fi
if ! use gnome; then
myconf="${myconf} --enable-legacy"
fi
if use enchant; then
myconf="${myconf} --enable-enchant"
fi

econf \
$(use_enable ipv6) \
${myconf} || die "econf failed!"

emake || die "emake failed!"
}

src_install() {
emake DESTDIR="${D}" install || die "emake install failed!"

make_desktop_entry teagtk Tea /usr/share/tea/pixmaps/tea_icon_v2.png Development

# insinto /usr/share/doc/tea/
# doins AUTHORS COPYING NEWS README TODO ChangeLog doc/*

# insinto /usr/share/pixmaps/
# doins pixmaps/*
}

pkg_postinst() {
if use spell ; then
elog "To get full spellchecking functuality, ensure that you install"
elog "the relevant language pack(s)"
fi
}