Patchwork gnu: Add gtkspell3.

login
register
mail settings
Submitter Kei Yamashita
Date May 10, 2016, 10:22 p.m.
Message ID <20160510182202.4b5edb29@openmailbox.org>
Download mbox | patch
Permalink /patch/12194/
State New
Headers show

Comments

Kei Yamashita - May 10, 2016, 10:22 p.m.
I'll be submitting a few patches in order to eventually package
Evolution for the GNOME desktop. If someone could verify that this
package definition is okay for submission, that would be excellent!
From 68a9f9f5a90e5cecbfa999938aac72530688b025 Mon Sep 17 00:00:00 2001
From: Kei Yamashita <kei@openmailbox.org>

Date: Tue, 10 May 2016 18:15:54 -0400
Subject: [PATCH] gnu: Add gtkspell3.

* gnu/packages/gtk.scm (gtkspell3): New variable.
---
 gnu/packages/gtk.scm | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

-- 
2.7.4
Efraim Flashner - May 12, 2016, 1:14 p.m.
On Tue, May 10, 2016 at 06:22:02PM -0400, Kei Yamashita wrote:
> I'll be submitting a few patches in order to eventually package
> Evolution for the GNOME desktop. If someone could verify that this
> package definition is okay for submission, that would be excellent!

> From 68a9f9f5a90e5cecbfa999938aac72530688b025 Mon Sep 17 00:00:00 2001
> From: Kei Yamashita <kei@openmailbox.org>
> Date: Tue, 10 May 2016 18:15:54 -0400
> Subject: [PATCH] gnu: Add gtkspell3.
> 
> * gnu/packages/gtk.scm (gtkspell3): New variable.
> ---
>  gnu/packages/gtk.scm | 29 +++++++++++++++++++++++++++++
>  1 file changed, 29 insertions(+)
> 
> diff --git a/gnu/packages/gtk.scm b/gnu/packages/gtk.scm
> index 255d885..21657fa 100644
> --- a/gnu/packages/gtk.scm
> +++ b/gnu/packages/gtk.scm
> @@ -10,6 +10,7 @@
>  ;;; Copyright © 2015 David Hashe <david.hashe@dhashe.com>
>  ;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il>
>  ;;; Copyright © 2016 Fabian Harfert <fhmgufs@web.de>
> +;;; Copyright © 2016 Kei Yamashita <kei@openmailbox.org>
>  ;;;
>  ;;; This file is part of GNU Guix.
>  ;;;
> @@ -41,6 +42,7 @@
>    #:use-module (gnu packages check)
>    #:use-module (gnu packages compression)
>    #:use-module (gnu packages docbook)
> +  #:use-module (gnu packages enchant)
>    #:use-module (gnu packages fontutils)
>    #:use-module (gnu packages gettext)
>    #:use-module (gnu packages ghostscript)
> @@ -1239,3 +1241,30 @@ Redmond95 and ThinIce.")
>       "Murrine is a cairo-based GTK+ theming engine.  It is named after the
>  glass artworks done by Venicians glass blowers.")
>      (license license:gpl2+)))
> +
> +(define-public gtkspell3
> +  (package
> +    (name "gtkspell3")
> +    (version "3.0.8")
> +    (source (origin
> +              (method url-fetch)
> +              (uri (string-append "mirror://sourceforge/gtkspell/"
> +                                  version "/" name "-" version ".tar.gz"))
> +              (sha256
> +               (base32
> +                "1zrz5pz4ryvcssk898liynmy2wyxgj95ak7mp2jv7x62yzihq6h1"))))
> +    (build-system gnu-build-system)
> +    (native-inputs
> +     `(("intltool" ,intltool)
> +       ("pkg-config" ,pkg-config)))
> +    (inputs
> +     `(("enchant" ,enchant)
> +       ("gobject-introspection" ,gobject-introspection)
> +       ("gtk+" ,gtk+)
> +       ("pango" ,pango)))
> +    (home-page "http://gtkspell.sourceforge.net")
> +    (synopsis "Spell-checking addon for GTK's TextView widget")
> +    (description
> +     "GtkSpell provides word-processor-style highlighting and replacement of
> +misspelled words in a GtkTextView widget.")
> +    (license license:gpl2+)))
> -- 
> 2.7.4
> 

This built with no problems for me and looks good. I'm not such a fan of
the description, but the one in Debian just copies the description from
the website; more verbose, but doesn't really add anything.

I'll push it in a bit.

Patch

diff --git a/gnu/packages/gtk.scm b/gnu/packages/gtk.scm

index 255d885..21657fa 100644

--- a/gnu/packages/gtk.scm

+++ b/gnu/packages/gtk.scm

@@ -10,6 +10,7 @@ 

 ;;; Copyright © 2015 David Hashe <david.hashe@dhashe.com>
 ;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il>
 ;;; Copyright © 2016 Fabian Harfert <fhmgufs@web.de>
+;;; Copyright © 2016 Kei Yamashita <kei@openmailbox.org>

 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -41,6 +42,7 @@ 

   #:use-module (gnu packages check)
   #:use-module (gnu packages compression)
   #:use-module (gnu packages docbook)
+  #:use-module (gnu packages enchant)

   #:use-module (gnu packages fontutils)
   #:use-module (gnu packages gettext)
   #:use-module (gnu packages ghostscript)
@@ -1239,3 +1241,30 @@  Redmond95 and ThinIce.")

      "Murrine is a cairo-based GTK+ theming engine.  It is named after the
 glass artworks done by Venicians glass blowers.")
     (license license:gpl2+)))
+

+(define-public gtkspell3

+  (package

+    (name "gtkspell3")

+    (version "3.0.8")

+    (source (origin

+              (method url-fetch)

+              (uri (string-append "mirror://sourceforge/gtkspell/"

+                                  version "/" name "-" version ".tar.gz"))

+              (sha256

+               (base32

+                "1zrz5pz4ryvcssk898liynmy2wyxgj95ak7mp2jv7x62yzihq6h1"))))

+    (build-system gnu-build-system)

+    (native-inputs

+     `(("intltool" ,intltool)

+       ("pkg-config" ,pkg-config)))

+    (inputs

+     `(("enchant" ,enchant)

+       ("gobject-introspection" ,gobject-introspection)

+       ("gtk+" ,gtk+)

+       ("pango" ,pango)))

+    (home-page "http://gtkspell.sourceforge.net")

+    (synopsis "Spell-checking addon for GTK's TextView widget")

+    (description

+     "GtkSpell provides word-processor-style highlighting and replacement of

+misspelled words in a GtkTextView widget.")

+    (license license:gpl2+)))