Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 563242 Details for
Bug 629772
app-text/gtkspell does not build with >=app-text/enchant-2
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
gtkspell-2.0.16-enchant-2-conditional.patch
gtkspell-2.0.16-enchant-2-conditional.patch (text/plain), 1.58 KB, created by
Andrey Volkov
on 2019-01-29 20:10:53 UTC
(
hide
)
Description:
gtkspell-2.0.16-enchant-2-conditional.patch
Filename:
MIME Type:
Creator:
Andrey Volkov
Created:
2019-01-29 20:10:53 UTC
Size:
1.58 KB
patch
obsolete
>--- a/configure.ac >+++ b/configure.ac >@@ -12,12 +12,13 @@ > AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION) > AC_CONFIG_HEADERS([config.h]) > >-SPELLER_LIB=-lenchant >- >-AC_SUBST(SPELLER_LIB) > GTKSPELL_PACKAGES=gtk+-2.0 > AC_SUBST(GTKSPELL_PACKAGES) >-PKG_CHECK_MODULES(GTKSPELL, $GTKSPELL_PACKAGES enchant >= 0.4.0 ) >+PKG_CHECK_MODULES([GTKSPELL], $GTKSPELL_PACKAGES enchant-2 >= 2.0.0, >+ [HAVE_ENCHANT2="yes";AC_DEFINE([HAVE_ENCHANT2], [1], [Set if enchant-2 library is available.])], >+ [PKG_CHECK_MODULES([GTKSPELL], $GTKSPELL_PACKAGES enchant >= 0.4.0) >+]) >+AM_CONDITIONAL(HAVE_ENCHANT2, test "$HAVE_ENCHANT2" = "yes") > AC_SUBST(GTKSPELL_CFLAGS) > AC_SUBST(GTKSPELL_LIBS) > >--- a/gtkspell/Makefile.am >+++ b/gtkspell/Makefile.am >@@ -1,6 +1,6 @@ > lib_LTLIBRARIES=libgtkspell.la > AM_CFLAGS=@GTKSPELL_CFLAGS@ -DG_LOG_DOMAIN=\"gtkspell\" -DLOCALEDIR=\""$(datadir)/locale"\" >-libgtkspell_la_LIBADD=@GTKSPELL_LIBS@ @SPELLER_LIB@ >+libgtkspell_la_LIBADD=@GTKSPELL_LIBS@ > libgtkspell_la_includedir=$(includedir)/gtkspell-2.0/gtkspell > libgtkspell_la_include_HEADERS=gtkspell.h > libgtkspell_la_SOURCES=gtkspell.c deprecated.c gtkspell.h >--- a/gtkspell/gtkspell.c >+++ b/gtkspell/gtkspell.c >@@ -277,7 +277,11 @@ add_to_dictionary(GtkWidget *menuitem, GtkSpell *spell) { > get_word_extents_from_mark(spell->buffer, &start, &end, spell->mark_click); > word = gtk_text_buffer_get_text(spell->buffer, &start, &end, FALSE); > >+#ifdef HAVE_ENCHANT2 >+ enchant_dict_add( spell->speller, word, strlen(word)); >+#else > enchant_dict_add_to_pwl( spell->speller, word, strlen(word)); >+#endif > > gtkspell_recheck_all(spell); >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 629772
:
493210
|
509318
| 563242