[arch-commits] Commit in gtkspell3/repos (3 files)

Jan de Groot jgc at archlinux.org
Wed Nov 22 12:13:28 UTC 2017


    Date: Wednesday, November 22, 2017 @ 12:13:27
  Author: jgc
Revision: 267945

archrelease: copy trunk to community-staging-x86_64

Added:
  gtkspell3/repos/community-staging-x86_64/
  gtkspell3/repos/community-staging-x86_64/PKGBUILD
    (from rev 267944, gtkspell3/trunk/PKGBUILD)
  gtkspell3/repos/community-staging-x86_64/enchant-2.patch
    (from rev 267944, gtkspell3/trunk/enchant-2.patch)

-----------------+
 PKGBUILD        |   38 ++++++++++++++++++++++++++++++++++++++
 enchant-2.patch |   20 ++++++++++++++++++++
 2 files changed, 58 insertions(+)

Copied: gtkspell3/repos/community-staging-x86_64/PKGBUILD (from rev 267944, gtkspell3/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2017-11-22 12:13:27 UTC (rev 267945)
@@ -0,0 +1,38 @@
+# $Id$
+# Maintainer: Balló György <ballogyor+arch at gmail dot com>
+# Contributor: Roman Kyrylych <roman at archlinux.org>
+# Contributor: Ben <ben at benmazer.net>
+
+pkgname=gtkspell3
+pkgver=3.0.9
+pkgrel=2
+url="http://gtkspell.sourceforge.net/"
+pkgdesc="Provides word-processor-style highlighting and replacement of misspelled words in a GtkTextView widget"
+arch=('x86_64')
+license=('GPL')
+depends=('gtk3' 'enchant')
+makedepends=('intltool' 'gobject-introspection' 'vala' 'python2')
+source=(https://downloads.sourceforge.net/gtkspell/$pkgname-$pkgver.tar.xz
+        enchant-2.patch)
+sha256sums=('a4f4a4a2789f7499563e26d96b22d8085222ebe278da47d026b2de782b8b4d26'
+            '17355439e8540e02591e398bc8fd2abfce708157cc116bfd93feab214613cbd3')
+
+prepare() {
+  cd $pkgname-$pkgver
+  patch -Np1 -i ../enchant-2.patch
+}
+
+build() {
+  cd $pkgname-$pkgver
+  ./configure --prefix=/usr
+
+  #https://bugzilla.gnome.org/show_bug.cgi?id=656231
+  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
+
+  make
+}
+
+package() {
+  cd $pkgname-$pkgver
+  make DESTDIR="$pkgdir" install
+}

Copied: gtkspell3/repos/community-staging-x86_64/enchant-2.patch (from rev 267944, gtkspell3/trunk/enchant-2.patch)
===================================================================
--- community-staging-x86_64/enchant-2.patch	                        (rev 0)
+++ community-staging-x86_64/enchant-2.patch	2017-11-22 12:13:27 UTC (rev 267945)
@@ -0,0 +1,20 @@
+--- gtkspell3-3.0.9/gtkspell/gtkspell.c.orig	2016-08-06 09:43:17.000000000 +0000
++++ gtkspell3-3.0.9/gtkspell/gtkspell.c	2017-11-22 12:07:52.716086700 +0000
+@@ -353,7 +353,7 @@
+   get_word_extents_from_mark (spell->priv->buffer, &start, &end, spell->priv->mark_click);
+   word = gtk_text_buffer_get_text (spell->priv->buffer, &start, &end, FALSE);
+ 
+-  enchant_dict_add_to_pwl (spell->priv->speller, word, strlen (word));
++  enchant_dict_add (spell->priv->speller, word, strlen (word));
+ 
+   gtk_spell_checker_recheck_all (spell);
+ 
+@@ -1246,7 +1246,7 @@
+ void
+ gtk_spell_checker_add_to_dictionary (GtkSpellChecker *spell, const gchar *word)
+ {
+-  enchant_dict_add_to_pwl (spell->priv->speller, word, strlen (word));
++  enchant_dict_add (spell->priv->speller, word, strlen (word));
+   gtk_spell_checker_recheck_all (spell);
+ }
+ 



More information about the arch-commits mailing list