summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavide Pesavento <pesa@gentoo.org>2012-03-16 15:17:53 +0000
committerDavide Pesavento <pesa@gentoo.org>2012-03-16 15:17:53 +0000
commit7f26f487e8dd152798cf2e918e601da15ffcee0b (patch)
tree75d72bd5322f30da2bf54d42b311a72c523961f1 /app-editors/tea
parentFix bug #408201, patch by Ben Kohler <bkohler@gmail.com>. Add missing dep on ... (diff)
downloadgentoo-2-7f26f487e8dd152798cf2e918e601da15ffcee0b.tar.gz
gentoo-2-7f26f487e8dd152798cf2e918e601da15ffcee0b.tar.bz2
gentoo-2-7f26f487e8dd152798cf2e918e601da15ffcee0b.zip
Version bump, #407915 by Michael (kensington). Remove old.
(Portage version: 2.2.0_alpha90/cvs/Linux x86_64)
Diffstat (limited to 'app-editors/tea')
-rw-r--r--app-editors/tea/ChangeLog9
-rw-r--r--app-editors/tea/files/tea-17.5.4-forced-cflags-and-compiler-warnings.patch39
-rw-r--r--app-editors/tea/metadata.xml6
-rw-r--r--app-editors/tea/tea-17.6.6.ebuild75
-rw-r--r--app-editors/tea/tea-32.0.1.ebuild68
5 files changed, 78 insertions, 119 deletions
diff --git a/app-editors/tea/ChangeLog b/app-editors/tea/ChangeLog
index f4a19972d48e..555b5b4d1929 100644
--- a/app-editors/tea/ChangeLog
+++ b/app-editors/tea/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for app-editors/tea
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-editors/tea/ChangeLog,v 1.52 2012/03/16 10:23:30 patrick Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-editors/tea/ChangeLog,v 1.53 2012/03/16 15:17:52 pesa Exp $
+
+*tea-32.0.1 (16 Mar 2012)
+
+ 16 Mar 2012; Davide Pesavento <pesa@gentoo.org> +tea-32.0.1.ebuild,
+ -files/tea-17.5.4-forced-cflags-and-compiler-warnings.patch,
+ -tea-17.6.6.ebuild, metadata.xml:
+ Version bump, #407915 by Michael (kensington). Remove old.
*tea-32.0.0 (16 Mar 2012)
diff --git a/app-editors/tea/files/tea-17.5.4-forced-cflags-and-compiler-warnings.patch b/app-editors/tea/files/tea-17.5.4-forced-cflags-and-compiler-warnings.patch
deleted file mode 100644
index 9a6d7a7b278e..000000000000
--- a/app-editors/tea/files/tea-17.5.4-forced-cflags-and-compiler-warnings.patch
+++ /dev/null
@@ -1,39 +0,0 @@
-diff -ur tea-17.5.4.orig/configure.in tea-17.5.4/configure.in
---- tea-17.5.4.orig/configure.in 2008-01-12 15:20:33.000000000 +0200
-+++ tea-17.5.4/configure.in 2008-01-25 12:00:38.000000000 +0200
-@@ -55,9 +55,9 @@
- CFLAGS="$CFLAGS -DDARWIN -pipe"
- else
- if test -n "$enable_debug"; then
-- CFLAGS="$CFLAGS -w -pipe"
-+ CFLAGS="$CFLAGS -g"
- else
-- CFLAGS="$CFLAGS -w -s -pipe"
-+ CFLAGS="$CFLAGS"
- fi
- fi
-
-diff -ur tea-17.5.4.orig/src/tea_options.c tea-17.5.4/src/tea_options.c
---- tea-17.5.4.orig/src/tea_options.c 2008-01-11 16:05:42.000000000 +0200
-+++ tea-17.5.4/src/tea_options.c 2008-01-25 11:32:36.000000000 +0200
-@@ -16,6 +16,8 @@
- * *
- ***************************************************************************/
-
-+#include <string.h>
-+
- #ifdef HAVE_CONFIG_H
- # include <config.h>
- #endif
-diff -ur tea-17.5.4.orig/src/tea_spell.c tea-17.5.4/src/tea_spell.c
---- tea-17.5.4.orig/src/tea_spell.c 2007-10-12 13:42:57.000000000 +0300
-+++ tea-17.5.4/src/tea_spell.c 2008-01-25 11:32:17.000000000 +0200
-@@ -15,6 +15,8 @@
- * *
- ***************************************************************************/
-
-+#include <string.h>
-+
- #ifdef HAVE_CONFIG_H
- # include <config.h>
- #endif
diff --git a/app-editors/tea/metadata.xml b/app-editors/tea/metadata.xml
index 49e454fcc744..79ad70798a5b 100644
--- a/app-editors/tea/metadata.xml
+++ b/app-editors/tea/metadata.xml
@@ -8,9 +8,7 @@
It can also read lots of 'other' filetypes.
</longdescription>
<use>
- <flag name='aspell'>Enable spell checking using aspell</flag>
- <flag name='enchant'>Enable spell checking using enchant</flag>
- <flag name='hacking'>Enable hacking support</flag>
- <flag name='hunspell'>Enable spellchecking using hunspell</flag>
+ <flag name="aspell">Enable spellchecking using <pkg>app-text/aspell</pkg></flag>
+ <flag name="hunspell">Enable spellchecking using <pkg>app-text/hunspell</pkg></flag>
</use>
</pkgmetadata>
diff --git a/app-editors/tea/tea-17.6.6.ebuild b/app-editors/tea/tea-17.6.6.ebuild
deleted file mode 100644
index f7f16454c5fd..000000000000
--- a/app-editors/tea/tea-17.6.6.ebuild
+++ /dev/null
@@ -1,75 +0,0 @@
-# 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.2 2008/11/14 12:26:43 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
-}
diff --git a/app-editors/tea/tea-32.0.1.ebuild b/app-editors/tea/tea-32.0.1.ebuild
new file mode 100644
index 000000000000..b6a165c6485a
--- /dev/null
+++ b/app-editors/tea/tea-32.0.1.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-editors/tea/tea-32.0.1.ebuild,v 1.1 2012/03/16 15:17:52 pesa Exp $
+
+EAPI=4
+LANGS="de fr ru"
+
+inherit eutils qt4-r2
+
+DESCRIPTION="Small, lightweight Qt text editor"
+HOMEPAGE="http://tea-editor.sourceforge.net/"
+SRC_URI="mirror://sourceforge/tea-editor/${P}.tar.bz2"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~ia64 ~x86 ~x86-fbsd"
+IUSE="aspell hunspell"
+
+RDEPEND="sys-libs/zlib
+ x11-libs/qt-core:4
+ x11-libs/qt-gui:4
+ aspell? ( app-text/aspell )
+ hunspell? ( app-text/hunspell )"
+DEPEND="${RDEPEND}
+ hunspell? ( dev-util/pkgconfig )"
+
+DOCS="AUTHORS ChangeLog NEWS TODO"
+
+src_configure() {
+ local myopts
+
+ if use aspell; then
+ myopts="USE_ASPELL=true"
+ else
+ myopts="USE_ASPELL=false"
+ fi
+
+ if use hunspell; then
+ myopts="${myopts} USE_HUNSPELL=true"
+ else
+ myopts="${myopts} USE_HUNSPELL=false"
+ fi
+
+ eqmake4 src.pro PREFIX="/usr/bin" ${myopts}
+}
+
+src_install() {
+ qt4-r2_src_install
+
+ newicon icons/tea_icon_v2.png ${PN}.png
+ make_desktop_entry ${PN} Tea ${PN}
+
+ # translations
+ insinto /usr/share/qt4/translations
+ local lang
+ for lang in ${LANGS}; do
+ if use linguas_${lang}; then
+ doins translations/${PN}_${lang}.qm
+ fi
+ done
+
+ # docs
+ dohtml manuals/en.html
+ if use linguas_ru; then
+ dodoc NEWS-RU
+ dohtml manuals/ru.html
+ fi
+}