Patchwork gnu: Add libgnomekbd.

login
register
mail settings
Submitter non such
Date July 31, 2016, 10:49 a.m.
Message ID <87bn1e9j5e.fsf@we.make.ritual.n0.is>
Download mbox | patch
Permalink /patch/14168/
State New
Headers show

Comments

non such - July 31, 2016, 10:49 a.m.
The author(?) in 2012 wrote:
"Libgnomekbd is a dead man walking – the only useful thing is the
keyboard drawing widget, that should be incorporated into
gnome-control-center in 3.8."

This library has been tested in my GNOME system by clicking the tastatur
layout in the right corner, open drop down menu, click "Show Keyboard
Layout". Previously: "can't find libgnomekbd" (or smth like that), now
it displays keyboard layout drawings.
Ludovic Courtès - July 31, 2016, 11:12 p.m.
ng0 <ng0@we.make.ritual.n0.is> skribis:

> From 177706fe15b53a9b8ea3c053b878e6f0ed1fa8b9 Mon Sep 17 00:00:00 2001
> From: ng0 <ng0@we.make.ritual.n0.is>
> Date: Sun, 31 Jul 2016 10:45:35 +0000
> Subject: [PATCH] gnu: Add libgnomekbd.
>
> * gnu/packages/gnome.scm (libgnomekbd): New variable.

[...]

> +    (inputs
> +     `(("gtk+" ,gtk+)
> +       ("libxklavier" ,libxklavier)))

I moved these to ‘propagated-inputs’ since they’re already mentioned in
the .pc file, and pushed.

Thanks!

Ludo’.

Patch

From 177706fe15b53a9b8ea3c053b878e6f0ed1fa8b9 Mon Sep 17 00:00:00 2001
From: ng0 <ng0@we.make.ritual.n0.is>
Date: Sun, 31 Jul 2016 10:45:35 +0000
Subject: [PATCH] gnu: Add libgnomekbd.

* gnu/packages/gnome.scm (libgnomekbd): New variable.
---
 gnu/packages/gnome.scm | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index b2f4695..9497101 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -20,6 +20,7 @@ 
 ;;; Copyright © 2016 Roel Janssen <roel@gnu.org>
 ;;; Copyright © 2016 Leo Famulari <leo@famulari.name>
 ;;; Copyright © 2016 Alex Griffin <a@ajgrf.com>
+;;; Copyright © 2016 ng0 <ng0@we.make.ritual.n0.is>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -5388,3 +5389,33 @@  compiled.")
 GLib/GObject code.")
     (home-page "https://wiki.gnome.org/Projects/GFBGraph")
     (license license:lgpl2.1+)))
+
+(define-public libgnomekbd
+  (package
+    (name "libgnomekbd")
+    (version "3.6.0")
+    (source (origin
+             (method url-fetch)
+             (uri (string-append "mirror://gnome/sources/" name "/"
+                                 (version-major+minor version)  "/"
+                                 name "-" version ".tar.xz"))
+             (sha256
+              (base32
+               "02bahnl3vaqyqyr99r9kwka84sxj8qdrz7x0bf97192dysqaa7n4"))))
+    (build-system gnu-build-system)
+    (inputs
+     `(("gtk+" ,gtk+)
+       ("libxklavier" ,libxklavier)))
+    (native-inputs
+     `(("pkg-config" ,pkg-config)
+       ("glib" ,glib "bin")
+       ("intltool" ,intltool)))
+    (propagated-inputs
+     ;; Referred to in .h files and .pc.
+     `(("glib" ,glib)))
+    (home-page "https://www.gnome.org")
+    (synopsis "Gnome keyboard configuration library")
+    (description
+     "Gnome keyboard configuration library.  Its most visible feature is to
+display keyboard layouts.")
+    (license license:lgpl2.0+)))
-- 
2.9.2