gnu: gsl: Fix poly test on i686.
[jackhill/guix/guix.git] / gnu / packages / ibus.scm
CommitLineData
aad6f5bc
RW
1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2015 Ricardo Wurmus <rekado@elephly.net>
2e6ecc5c 3;;; Copyright © 2015 Andreas Enge <andreas@enge.fr>
aad6f5bc
RW
4;;;
5;;; This file is part of GNU Guix.
6;;;
7;;; GNU Guix is free software; you can redistribute it and/or modify it
8;;; under the terms of the GNU General Public License as published by
9;;; the Free Software Foundation; either version 3 of the License, or (at
10;;; your option) any later version.
11;;;
12;;; GNU Guix is distributed in the hope that it will be useful, but
13;;; WITHOUT ANY WARRANTY; without even the implied warranty of
14;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15;;; GNU General Public License for more details.
16;;;
17;;; You should have received a copy of the GNU General Public License
18;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
19
20(define-module (gnu packages ibus)
21 #:use-module (guix licenses)
22 #:use-module (guix packages)
23 #:use-module (guix download)
24 #:use-module (guix build-system gnu)
25 #:use-module (guix build-system glib-or-gtk)
26 #:use-module (gnu packages)
27 #:use-module (gnu packages glib)
28 #:use-module (gnu packages gnome)
29 #:use-module (gnu packages gtk)
30 #:use-module (gnu packages iso-codes)
31 #:use-module (gnu packages pkg-config)
32 #:use-module (gnu packages python))
33
34(define-public ibus
35 (package
36 (name "ibus")
37 (version "1.5.5")
38 (source (origin
39 (method url-fetch)
40 (uri (string-append "https://ibus.googlecode.com/files/ibus-"
41 version ".tar.gz"))
42 (sha256
43 (base32
44 "1v4a9xv2k26g6ggk4282ynfvh68j2r5hg1cdpvnryfa8c2pkdaq2"))))
45 (build-system glib-or-gtk-build-system)
46 (arguments
47 `(#:tests? #f ; tests fail because there's no connection to dbus
48 #:make-flags
49 (list "CC=gcc"
50 (string-append "pyoverridesdir="
51 (assoc-ref %outputs "out")
52 "/lib/python2.7/site-packages/gi/overrides/"))
53 #:phases
54 (alist-cons-before
55 'configure 'disable-dconf-update
56 (lambda _
57 (substitute* "data/dconf/Makefile.in"
58 (("dconf update") "echo dconf update"))
59 #t)
60 (alist-cons-after
61 'wrap-program 'wrap-with-additional-paths
62 (lambda* (#:key outputs #:allow-other-keys)
63 ;; Make sure 'ibus-setup' runs with the correct PYTHONPATH and
64 ;; GI_TYPELIB_PATH.
65 (let ((out (assoc-ref outputs "out")))
66 (wrap-program (string-append out "/bin/ibus-setup")
67 `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH")))
68 `("GI_TYPELIB_PATH" ":" prefix
69 (,(getenv "GI_TYPELIB_PATH")
70 ,(string-append out "/lib/girepository-1.0"))))))
71 %standard-phases))))
72 (inputs
73 `(("dbus" ,dbus)
74 ("dconf" ,dconf)
75 ("gconf" ,gconf)
aad6f5bc
RW
76 ("gtk2" ,gtk+-2)
77 ("intltool" ,intltool)
78 ("libnotify" ,libnotify)
79 ("iso-codes" ,iso-codes)
80 ("pygobject2" ,python2-pygobject)
81 ("python2" ,python-2)))
82 (native-inputs
83 `(("glib" ,glib "bin") ; for glib-genmarshal
84 ("gobject-introspection" ,gobject-introspection) ; for g-ir-compiler
85 ("pkg-config" ,pkg-config)))
86 (synopsis "Input method framework")
87 (description
88 "IBus is an input framework providing a full-featured and user-friendly
89input method user interface. It comes with multilingual input support. It
90may also simplify input method development.")
91 (home-page "http://ibus.googlecode.com/")
92 (license lgpl2.1+)))