diff options
author | Gilles Dartiguelongue <eva@gentoo.org> | 2008-10-02 21:41:20 +0000 |
---|---|---|
committer | Gilles Dartiguelongue <eva@gentoo.org> | 2008-10-02 21:41:20 +0000 |
commit | 48df9ea78297e5b4d1ebd3248ec5893bbab74c82 (patch) | |
tree | 9bd052293f1df1547a3eebf7a25e1b89d6bcb5f6 /app-text | |
parent | Version bump to 0.13, bug #238177. (diff) | |
download | historical-48df9ea78297e5b4d1ebd3248ec5893bbab74c82.tar.gz historical-48df9ea78297e5b4d1ebd3248ec5893bbab74c82.tar.bz2 historical-48df9ea78297e5b4d1ebd3248ec5893bbab74c82.zip |
Version bump to 2.0.14.
Package-Manager: portage-2.2_rc11/cvs/Linux 2.6.24-gentoo-r8-mactel x86_64
Diffstat (limited to 'app-text')
-rw-r--r-- | app-text/gtkspell/ChangeLog | 9 | ||||
-rw-r--r-- | app-text/gtkspell/Manifest | 18 | ||||
-rw-r--r-- | app-text/gtkspell/files/gtkspell-2.0.11-enchant.patch | 262 | ||||
-rw-r--r-- | app-text/gtkspell/files/gtkspell-2.0.11-nonls.patch | 22 | ||||
-rw-r--r-- | app-text/gtkspell/gtkspell-2.0.14.ebuild (renamed from app-text/gtkspell/gtkspell-2.0.11-r1.ebuild) | 37 |
5 files changed, 29 insertions, 319 deletions
diff --git a/app-text/gtkspell/ChangeLog b/app-text/gtkspell/ChangeLog index dda74d5f1d2c..b2ff11f62477 100644 --- a/app-text/gtkspell/ChangeLog +++ b/app-text/gtkspell/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for app-text/gtkspell # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-text/gtkspell/ChangeLog,v 1.64 2008/09/26 16:49:16 jer Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-text/gtkspell/ChangeLog,v 1.65 2008/10/02 21:41:19 eva Exp $ + +*gtkspell-2.0.14 (02 Oct 2008) + + 02 Oct 2008; Gilles Dartiguelongue <eva@gentoo.org> + -files/gtkspell-2.0.11-enchant.patch, -files/gtkspell-2.0.11-nonls.patch, + -gtkspell-2.0.11-r1.ebuild, +gtkspell-2.0.14.ebuild: + Version bump to 2.0.14. 26 Sep 2008; Jeroen Roovers <jer@gentoo.org> gtkspell-2.0.13.ebuild: Stable for HPPA (bug #238182). diff --git a/app-text/gtkspell/Manifest b/app-text/gtkspell/Manifest index c31775e3a292..69e2a2416387 100644 --- a/app-text/gtkspell/Manifest +++ b/app-text/gtkspell/Manifest @@ -1,8 +1,16 @@ -AUX gtkspell-2.0.11-enchant.patch 8904 RMD160 5109a1b1fda7d8af38a0d1fbac7ebeb3a51a5697 SHA1 7e18c24b75f0dfdae334cf5b0cc7a697893360de SHA256 9df42ce7c21e548d083e7970a98944225ac54d5db4fef091ecca0e7d1108ae4f -AUX gtkspell-2.0.11-nonls.patch 665 RMD160 14b05a2701840302719c83d7899b640cc97b3456 SHA1 2c0e2060272ded7e4cd221f772fbff6b47891674 SHA256 15dfc847ffbb2dbf91a5269ade6903ee7329850a8f0053102228a7cdf94ab5b7 -DIST gtkspell-2.0.11.tar.gz 347172 RMD160 c5ca1804807f445e246de2b384448a7c7c76855f SHA1 d0e288b2d1456e33083dc7d7c61f013688c5cc65 SHA256 521d6be1e1236706cd491305b10f01d989bf47787ca97242c56c0d2b038e6a12 +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + DIST gtkspell-2.0.13.tar.gz 402294 RMD160 fa04ad5c636ce76c6dbb42bf97566efb5ddd0630 SHA1 e389d791a2a602ce4c948164e18cd8ffb1808bb6 SHA256 497a162ae402eeccd05f38f167144f45094ac8f33f0e5d68558a5a1d957bd3d5 -EBUILD gtkspell-2.0.11-r1.ebuild 1149 RMD160 1ea5cb3ffb6c96e37bf3034ba5fc620f5c735f02 SHA1 fa90c92e342addf100cdce253f259c9a4d2ac858 SHA256 dcaa38994419d3c3fd3ff81492373eb2a4e60ce5f1f0f314d2d6675ea9750c17 +DIST gtkspell-2.0.14.tar.gz 383196 RMD160 23093dcdbc0c0ac57231de47302949b63b1ffb7f SHA1 e6a2e1359e7cf5d309ac3587482329848cb4fdac SHA256 e574e316d243b19659070d91eb827bf353e4a69a4d756e61a8c89574298f228a EBUILD gtkspell-2.0.13.ebuild 930 RMD160 8725f9b281840aff336bd4dcae2eeb484c0823fb SHA1 c065a7ae314458d99e6068be7afc02a0b3446e87 SHA256 baf955f5529c709137cde488c0ff8151fff5e46d3bc8c19d1ab04a7733fda991 -MISC ChangeLog 7364 RMD160 951abd1303e0ac68d82b0ddadf306781f8e213d8 SHA1 ead87e9010f14f596b3fa9cc39936e5330ffa113 SHA256 e6a23d228a49569f140f49255811a4295a3b8ea281b26f2b4b0b0549b16e7b0c +EBUILD gtkspell-2.0.14.ebuild 975 RMD160 cc96ed4a605623d37e74a420f034d069b44a9c37 SHA1 86ad93452e9f35fa7af7ce38de9df6c18567c8f2 SHA256 6d85219ef8549930b5c1729743a09313ea75e71fa9f82db1cd34288239123cbc +MISC ChangeLog 7608 RMD160 1b50a2416053683c6c09cc2c7db88a281de9c6a3 SHA1 d350a6d2e9655a5876462222c22bc98b92aaa404 SHA256 f4268989d9ca8e84f5467e3b7c94c4bcfb8f9f9ab402f8050cfd0d1f8ac8e299 MISC metadata.xml 158 RMD160 c0e2bae8e91bb6be8922bac5e4f597302e06587e SHA1 38f78e9790bcd4382b4a49aa226aa6dda1d3a3d7 SHA256 3a7dbca0fdc557de69783e0663e2d76ddab129ea8a19b2d0ef6d3e5d1b947ce1 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.9 (GNU/Linux) + +iEYEARECAAYFAkjlQAUACgkQ1fmVwcYIWAbTVQCeMI7cFY/XMZumIkauSEJbQ6Bm +sm0AoOkOOYjU0mIgCUY63U6IMi+lP7oW +=ydVg +-----END PGP SIGNATURE----- diff --git a/app-text/gtkspell/files/gtkspell-2.0.11-enchant.patch b/app-text/gtkspell/files/gtkspell-2.0.11-enchant.patch deleted file mode 100644 index 00d9e0320fea..000000000000 --- a/app-text/gtkspell/files/gtkspell-2.0.11-enchant.patch +++ /dev/null @@ -1,262 +0,0 @@ -diff -x '*orig' -uNr gtkspell-2.0.11/configure.ac gtkspell-2.0.11.patched/configure.ac ---- gtkspell-2.0.11/configure.ac 2005-05-27 23:38:33.000000000 +0200 -+++ gtkspell-2.0.11.patched/configure.ac 2006-04-05 15:51:17.000000000 +0200 -@@ -4,18 +4,12 @@ - AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION) - AC_CONFIG_HEADERS([config.h]) - --AC_CHECK_HEADER(aspell.h, [AC_DEFINE(HAVE_ASPELL_H,1, -- [Define to 1 if you have the <aspell.h> header file.] )] ) --AC_CHECK_HEADER(pspell/pspell.h, [AC_DEFINE(HAVE_PSPELL_H,1, -- [Define to 1 if you have the <pspell/pspell.h> header file.] )] ) --AC_CHECK_LIB(aspell, new_aspell_speller, SPELLER_LIB="-laspell", -- [AC_CHECK_LIB(pspell, new_pspell_manager, SPELLER_LIB="-lpspell", -- [AC_MSG_ERROR([You must have the aspell or pspell dev libraries to build gtkspell.]) ] ) ] ) -+SPELLER_LIB=-lenchant - - AC_SUBST(SPELLER_LIB) - GTKSPELL_PACKAGES=gtk+-2.0 - AC_SUBST(GTKSPELL_PACKAGES) --PKG_CHECK_MODULES(GTKSPELL, $GTKSPELL_PACKAGES) -+PKG_CHECK_MODULES(GTKSPELL, $GTKSPELL_PACKAGES enchant >= 0.4.0 ) - AC_SUBST(GTKSPELL_CFLAGS) - AC_SUBST(GTKSPELL_LIBS) - -diff -x '*orig' -uNr gtkspell-2.0.11/gtkspell/gtkspell.c gtkspell-2.0.11.patched/gtkspell/gtkspell.c ---- gtkspell-2.0.11/gtkspell/gtkspell.c 2005-05-27 23:09:10.000000000 +0200 -+++ gtkspell-2.0.11.patched/gtkspell/gtkspell.c 2006-04-05 15:52:08.000000000 +0200 -@@ -14,37 +14,7 @@ - - #define GTKSPELL_MISSPELLED_TAG "gtkspell-misspelled" - --#ifdef HAVE_ASPELL_H -- #define USING_ASPELL -- #include <aspell.h> --#elif defined HAVE_PSPELL_H -- #define USING_PSPELL -- #include <pspell/pspell.h> -- #define AspellSpeller PspellManager -- #define speller manager -- #define aspell_speller_check pspell_manager_check -- #define aspell_speller_add_to_session pspell_manager_add_to_session -- #define aspell_speller_add_to_personal pspell_manager_add_to_personal -- #define aspell_speller_save_all_word_lists pspell_manager_save_all_word_lists -- #define aspell_speller_store_replacement pspell_manager_store_replacement -- #define AspellWordList PspellWordList -- #define AspellStringEnumeration PspellStringEmulation -- #define aspell_speller_suggest pspell_manager_suggest -- #define aspell_word_list_elements pspell_word_list_elements -- #define aspell_string_enumeration_next pspell_string_emulation_next -- #define delete_aspell_string_enumeration delete_pspell_string_emulation -- #define AspellConfig PspellConfig -- #define AspellCanHaveError PspellCanHaveError -- #define new_aspell_config new_pspell_config -- #define aspell_config_replace pspell_config_replace -- #define new_aspell_speller new_pspell_manager -- #define delete_aspell_config delete_pspell_config -- #define aspell_error_message pspell_error_message -- #define delete_aspell_speller delete_pspell_manager -- #define to_aspell_speller to_pspell_manager -- #define aspell_error_number pspell_error_number -- #define aspell pspell --#endif -+#include <enchant.h> - - const int debug = 0; - const int quiet = 0; -@@ -55,7 +25,8 @@ - GtkTextMark *mark_insert_start; - GtkTextMark *mark_insert_end; - gboolean deferred_check; -- AspellSpeller *speller; -+ EnchantBroker *broker; -+ EnchantDict *speller; - GtkTextMark *mark_click; - }; - -@@ -124,10 +95,12 @@ - check_word(GtkSpell *spell, GtkTextBuffer *buffer, - GtkTextIter *start, GtkTextIter *end) { - char *text; -+ if (!spell->speller) -+ return; - text = gtk_text_buffer_get_text(buffer, start, end, FALSE); - if (debug) g_print("checking: %s\n", text); - if (g_unichar_isdigit(*text) == FALSE) /* don't check numbers */ -- if (aspell_speller_check(spell->speller, text, -1) == FALSE) -+ if (enchant_dict_check(spell->speller, text, strlen(text)) != 0) - gtk_text_buffer_apply_tag(buffer, spell->tag_highlight, start, end); - g_free(text); - } -@@ -302,8 +275,7 @@ - get_word_extents_from_mark(buffer, &start, &end, spell->mark_click); - word = gtk_text_buffer_get_text(buffer, &start, &end, FALSE); - -- aspell_speller_add_to_personal(spell->speller, word, strlen(word)); -- aspell_speller_save_all_word_lists(spell->speller); -+ enchant_dict_add_to_pwl( spell->speller, word, strlen(word)); - - gtkspell_recheck_all(spell); - -@@ -321,7 +293,7 @@ - get_word_extents_from_mark(buffer, &start, &end, spell->mark_click); - word = gtk_text_buffer_get_text(buffer, &start, &end, FALSE); - -- aspell_speller_add_to_session(spell->speller, word, strlen(word)); -+ enchant_dict_add_to_session(spell->speller, word, strlen(word)); - - gtkspell_recheck_all(spell); - -@@ -335,6 +307,9 @@ - GtkTextIter start, end; - GtkTextBuffer *buffer; - -+ if (!spell->speller) -+ return; -+ - buffer = gtk_text_view_get_buffer(spell->view); - - get_word_extents_from_mark(buffer, &start, &end, spell->mark_click); -@@ -350,33 +325,33 @@ - gtk_text_buffer_delete(buffer, &start, &end); - gtk_text_buffer_insert(buffer, &start, newword, -1); - -- aspell_speller_store_replacement(spell->speller, -+ enchant_dict_store_replacement(spell->speller, - oldword, strlen(oldword), - newword, strlen(newword)); - - g_free(oldword); - } - --GtkWidget* -+static GtkWidget* - build_suggestion_menu(GtkSpell *spell, GtkTextBuffer *buffer, - const char *word) { - const char *suggestion; - GtkWidget *topmenu, *menu; - GtkWidget *mi; - GtkWidget *hbox; -- int count = 0; - void *spelldata; -- const AspellWordList *suggestions; -- AspellStringEnumeration *elements; -+ char **suggestions; -+ size_t n_suggs, i; - char *label; - - topmenu = menu = gtk_menu_new(); - -- suggestions = aspell_speller_suggest(spell->speller, word, -1); -- elements = aspell_word_list_elements(suggestions); -+ if (!spell->speller) -+ return topmenu; - -- suggestion = aspell_string_enumeration_next(elements); -- if (suggestion == NULL) { -+ suggestions = enchant_dict_suggest(spell->speller, word, strlen(word), &n_suggs); -+ -+ if (suggestions == NULL || !n_suggs) { - /* no suggestions. put something in the menu anyway... */ - GtkWidget *label; - label = gtk_label_new(""); -@@ -388,8 +363,8 @@ - gtk_menu_shell_prepend(GTK_MENU_SHELL(menu), mi); - } else { - /* build a set of menus with suggestions. */ -- while (suggestion != NULL) { -- if (count == 10) { -+ for (i = 0; i < n_suggs; i++ ) { -+ if (i > 0 && i % 10 == 0) { - mi = gtk_menu_item_new(); - gtk_widget_show(mi); - gtk_menu_shell_append(GTK_MENU_SHELL(menu), mi); -@@ -400,19 +375,16 @@ - - menu = gtk_menu_new(); - gtk_menu_item_set_submenu(GTK_MENU_ITEM(mi), menu); -- count = 0; - } -- mi = gtk_menu_item_new_with_label(suggestion); -+ mi = gtk_menu_item_new_with_label(suggestions[i]); - g_signal_connect(G_OBJECT(mi), "activate", - G_CALLBACK(replace_word), spell); - gtk_widget_show(mi); - gtk_menu_shell_append(GTK_MENU_SHELL(menu), mi); -- count++; -- suggestion = aspell_string_enumeration_next(elements); - } - } - -- delete_aspell_string_enumeration(elements); -+ enchant_dict_free_suggestions(spell->speller, suggestions); - - /* Separator */ - mi = gtk_menu_item_new(); -@@ -517,9 +489,6 @@ - - static gboolean - gtkspell_set_language_internal(GtkSpell *spell, const gchar *lang, GError **error) { -- AspellConfig *config; -- AspellCanHaveError *err; -- AspellSpeller *speller; - - if (lang == NULL) { - lang = g_getenv("LANG"); -@@ -531,26 +500,25 @@ - } - } - -- config = new_aspell_config(); -- if (lang) -- aspell_config_replace(config, "language-tag", lang); -- aspell_config_replace(config, "encoding", "utf-8"); -- err = new_aspell_speller(config); -- delete_aspell_config(config); -+ if (!spell->broker) -+ spell->broker = enchant_broker_init(); - -- if (aspell_error_number(err) != 0) { --#ifdef USING_ASPELL -- g_set_error(error, GTKSPELL_ERROR, GTKSPELL_ERROR_BACKEND, -- "aspell: %s", aspell_error_message(err)); --#elif defined USING_PSPELL -+ if (spell->speller) { -+ enchant_broker_free_dict(spell->broker, spell->speller); -+ spell->speller = NULL; -+ } -+ -+ if (!lang) { -+ lang = "en"; -+ } -+ -+ spell->speller = enchant_broker_request_dict(spell->broker, lang ); -+ -+ if (!spell->speller) { - g_set_error(error, GTKSPELL_ERROR, GTKSPELL_ERROR_BACKEND, -- "pspell: %s", aspell_error_message(err)); --#endif -+ _("enchant error for language: %s"),lang); - return FALSE; - } -- if (spell->speller) -- delete_aspell_speller(spell->speller); -- spell->speller = to_aspell_speller(err); - - return TRUE; - } -@@ -713,8 +681,13 @@ - gtk_text_buffer_delete_mark(buffer, spell->mark_insert_end); - gtk_text_buffer_delete_mark(buffer, spell->mark_click); - -- delete_aspell_speller(spell->speller); - -+ if (spell->broker) { -+ if (spell->speller) { -+ enchant_broker_free_dict(spell->broker, spell->speller); -+ } -+ enchant_broker_free(spell->broker); -+ } - g_signal_handlers_disconnect_matched(spell->view, - G_SIGNAL_MATCH_DATA, - 0, 0, NULL, NULL, diff --git a/app-text/gtkspell/files/gtkspell-2.0.11-nonls.patch b/app-text/gtkspell/files/gtkspell-2.0.11-nonls.patch deleted file mode 100644 index 355b379e262c..000000000000 --- a/app-text/gtkspell/files/gtkspell-2.0.11-nonls.patch +++ /dev/null @@ -1,22 +0,0 @@ -diff --exclude-from=/home/dang/.scripts/diffrc -up -ruN gtkspell-2.0.11.orig/gtkspell/gtkspell.c gtkspell-2.0.11/gtkspell/gtkspell.c ---- gtkspell-2.0.11.orig/gtkspell/gtkspell.c 2005-05-27 17:09:10.000000000 -0400 -+++ gtkspell-2.0.11/gtkspell/gtkspell.c 2007-08-20 16:17:28.000000000 -0400 -@@ -5,12 +5,17 @@ - /* vim: set ts=4 sw=4 wm=5 : */ - - #include <gtk/gtk.h> --#include <libintl.h> -+#include <string.h> - #include <locale.h> - #include "../config.h" - #include "gtkspell.h" - -+#ifdef ENABLE_NLS -+#include <libintl.h> - #define _(String) dgettext (PACKAGE, String) -+#else -+#define _(String) String -+#endif - - #define GTKSPELL_MISSPELLED_TAG "gtkspell-misspelled" - diff --git a/app-text/gtkspell/gtkspell-2.0.11-r1.ebuild b/app-text/gtkspell/gtkspell-2.0.14.ebuild index 38585de669a9..32cd421ee6c3 100644 --- a/app-text/gtkspell/gtkspell-2.0.11-r1.ebuild +++ b/app-text/gtkspell/gtkspell-2.0.14.ebuild @@ -1,19 +1,17 @@ # Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-text/gtkspell/gtkspell-2.0.11-r1.ebuild,v 1.7 2008/03/30 23:33:20 ricmm Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-text/gtkspell/gtkspell-2.0.14.ebuild,v 1.1 2008/10/02 21:41:19 eva Exp $ -WANT_AUTOCONF="latest" -WANT_AUTOMAKE="latest" - -inherit libtool eutils autotools +inherit eutils DESCRIPTION="Spell checking widget for GTK2" HOMEPAGE="http://gtkspell.sourceforge.net/" +# gtkspell doesn't use sourceforge mirroring system it seems. SRC_URI="http://${PN}.sourceforge.net/download/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" -KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sparc x86 ~x86-fbsd" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" IUSE="doc" RDEPEND=">=x11-libs/gtk+-2 @@ -21,35 +19,16 @@ RDEPEND=">=x11-libs/gtk+-2 DEPEND="${RDEPEND} dev-util/pkgconfig + >=dev-util/intltool-0.35.0 doc? ( >=dev-util/gtk-doc-1 =app-text/docbook-xml-dtd-4.2* )" -src_unpack() { - - unpack ${A} - - cd "${S}" - - # use enchant as backend - epatch "${FILESDIR}/${PN}-2.0.11-enchant.patch" - # build on systems without nls (#134467) - epatch "${FILESDIR}/${PN}-2.0.11-nonls.patch" - - eautoreconf - elibtoolize -} - src_compile() { - - econf $(use_enable doc gtk-doc) || die + econf $(use_enable doc gtk-doc) emake || die "compile failure" - } src_install() { - - make DESTDIR="${D}" install || die - - dodoc AUTHORS ChangeLog NEWS README - + emake DESTDIR="${D}" install || die "make install failed" + dodoc AUTHORS ChangeLog NEWS README || die "dodoc failed" } |