all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
blob 4474665b5d1b3e37049d24e84a0459c55181a945 7951 bytes (raw)
name: gnu/packages/ibus.scm 	 # note: path name is non-authoritative(*)

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
 
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2015 Ricardo Wurmus <rekado@elephly.net>
;;; Copyright © 2015 Andreas Enge <andreas@enge.fr>
;;;
;;; This file is part of GNU Guix.
;;;
;;; GNU Guix is free software; you can redistribute it and/or modify it
;;; under the terms of the GNU General Public License as published by
;;; the Free Software Foundation; either version 3 of the License, or (at
;;; your option) any later version.
;;;
;;; GNU Guix is distributed in the hope that it will be useful, but
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;;; GNU General Public License for more details.
;;;
;;; You should have received a copy of the GNU General Public License
;;; along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.

(define-module (gnu packages ibus)
  #:use-module (guix licenses)
  #:use-module (guix packages)
  #:use-module (guix download)
  #:use-module (guix git-download)
  #:use-module (guix build-system gnu)
  #:use-module (guix build-system glib-or-gtk)
  #:use-module (gnu packages)
  #:use-module (gnu packages autotools)
  #:use-module (gnu packages base)
  #:use-module (gnu packages databases)
  #:use-module (gnu packages freedesktop)
  #:use-module (gnu packages glib)
  #:use-module (gnu packages gnome)
  #:use-module (gnu packages gtk)
  #:use-module (gnu packages iso-codes)
  #:use-module (gnu packages linux)
  #:use-module (gnu packages pkg-config)
  #:use-module (gnu packages python))

(define-public ibus
  (package
   (name "ibus")
   (version "1.5.5")
   (source (origin
             (method url-fetch)
             (uri (string-append "https://ibus.googlecode.com/files/ibus-"
                                 version ".tar.gz"))
             (sha256
              (base32
               "1v4a9xv2k26g6ggk4282ynfvh68j2r5hg1cdpvnryfa8c2pkdaq2"))))
   (build-system glib-or-gtk-build-system)
   (arguments
    `(#:tests? #f  ; tests fail because there's no connection to dbus
      #:make-flags
      (list "CC=gcc"
            (string-append "pyoverridesdir="
                           (assoc-ref %outputs "out")
                           "/lib/python2.7/site-packages/gi/overrides/"))
      #:phases
      (alist-cons-before
       'configure 'disable-dconf-update
       (lambda _
         (substitute* "data/dconf/Makefile.in"
           (("dconf update") "echo dconf update"))
         #t)
       (alist-cons-after
        'wrap-program 'wrap-with-additional-paths
        (lambda* (#:key outputs #:allow-other-keys)
          ;; Make sure 'ibus-setup' runs with the correct PYTHONPATH and
          ;; GI_TYPELIB_PATH.
          (let ((out (assoc-ref outputs "out")))
            (wrap-program (string-append out "/bin/ibus-setup")
              `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH")))
              `("GI_TYPELIB_PATH" ":" prefix
                (,(getenv "GI_TYPELIB_PATH")
                 ,(string-append out "/lib/girepository-1.0"))))))
        %standard-phases))))
   (inputs
    `(("dbus" ,dbus)
      ("dconf" ,dconf)
      ("gconf" ,gconf)
      ("gtk2" ,gtk+-2)
      ("intltool" ,intltool)
      ("libnotify" ,libnotify)
      ("iso-codes" ,iso-codes)
      ("pygobject2" ,python2-pygobject)
      ("python2" ,python-2)))
   (native-inputs
    `(("glib" ,glib "bin") ; for glib-genmarshal
      ("gobject-introspection" ,gobject-introspection) ; for g-ir-compiler
      ("pkg-config" ,pkg-config)))
   (synopsis "Input method framework")
   (description
    "IBus is an input framework providing a full-featured and user-friendly
input method user interface.  It comes with multilingual input support.  It
may also simplify input method development.")
   (home-page "http://ibus.googlecode.com/")
   (license lgpl2.1+)))

(define-public ibus-pinyin
  (package
   (name "ibus-pinyin")
   (version "1.5.0")
   (source
    (origin
      (method url-fetch)
      (uri (string-append "https://ibus.googlecode.com/files/ibus-pinyin-"
                          version ".tar.gz"))
      (sha256
       (base32
        "15mwpm64mjxm2j9fmjxd74xwngwb88131rj9b3b9zsjirj6lapd8"))))
   (build-system glib-or-gtk-build-system)
   (arguments
    '(#:phases
      (modify-phases %standard-phases
        (add-after 'unpack 'use-full-python-path
         (lambda* (#:key inputs #:allow-other-keys)
           (substitute* "setup/ibus-setup-pinyin.in"
             (("exec python")
              (string-append "exec " (assoc-ref inputs "python")
                             "/bin/python")))
           #t))
        (add-after 'wrap-program 'wrap-with-additional-paths
         (lambda* (#:key inputs outputs #:allow-other-keys)
           ;; Make sure 'ibus-setup-pinyin' runs with the correct PYTHONPATH
           ;; and GI_TYPELIB_PATH.
           ;; TODO: This doesn't work.  ibus-setup-pinyin cannot be executed.
           (let ((out (assoc-ref outputs "out")))
             (wrap-program (string-append out "/libexec/ibus-setup-pinyin")
               `("PYTHONPATH" ":" prefix
                 (,(getenv "PYTHONPATH")))
               `("GI_TYPELIB_PATH" ":" prefix
                 (,(getenv "GI_TYPELIB_PATH")
                  ,(string-append (assoc-ref inputs "ibus")
                                  "/lib/girepository-1.0"))))
             #t))))))
   (inputs
    `(("ibus" ,ibus)
      ("intltool" ,intltool)
      ("sqlite" ,sqlite)
      ("python" ,python-2)
      ("pyxdg" ,python2-pyxdg)
      ("pyzy" ,pyzy)))
   (native-inputs
    `(("gobject-introspection" ,gobject-introspection)
      ("pkg-config" ,pkg-config)))
   (synopsis "Chinese Pinyin and Bopomofo input methods for IBus")
   (description
    "This package provides the Chinese Pinyin and Bopomofo input methods for
IBus.")
   (home-page "https://github.com/ibus/ibus-pinyin")
   (license gpl2+)))

(define-public pyzy
  ;; There is no release tarball, so we take the last commit.
  (let ((commit "6d9c3cdff"))
    (package
      (name "pyzy")
      (version "0.1.0")
      (source (origin
                (method git-fetch)
                (uri (git-reference
                      (url "https://github.com/pyzy/pyzy.git")
                      (commit commit)))
                (file-name (string-append name "-" version ".tar.gz"))
                (sha256
                 (base32
                  "0i7lnh5gp25wi9rk5f2pjdlhn7vzs2s7pnfbfgk9q8cmzqkgrh6g"))
                (patches (list (search-patch "pyzy-no-download.patch")))))
      (build-system gnu-build-system)
      (arguments
       '(#:configure-flags '("--enable-db-open-phrase"
                             "--enable-db-android")
         #:phases
         (modify-phases %standard-phases
           (add-after 'unpack 'unpack-database
            (lambda* (#:key inputs #:allow-other-keys)
              (zero? (system* "tar" "-C" "data" "-xvf"
                              (assoc-ref inputs "pyzy-database")))))
           (add-before 'configure 'autoreconf
            (lambda _ (zero? (system* "autoreconf" "-vif")))))))
      (inputs
       `(("glib" ,glib)
         ("libuuid" ,util-linux)
         ("sqlite" ,sqlite)
         ("pyzy-database"
          ,(origin
             (method url-fetch)
             (uri (string-append "https://pyzy.googlecode.com/files/"
                                 "pyzy-database-1.0.0.tar.bz2"))
             (sha256
              (base32
               "08f3jhk48m4pqjaaq69bgxz3djz6m3n593q0z70dzqa1kxxx1irj"))))))
      (native-inputs
       `(("python" ,python-2)
         ("tar" ,tar)
         ("pkg-config" ,pkg-config)
         ("autoconf" ,autoconf)
         ("automake" ,automake)
         ("libtool" ,libtool)))
      (synopsis "Conversion library for Chinese Pinyin and Bopomofo")
      (description
       "PyZy is a conversion library for the Chinese input methods Pinyin and
Bopomofo.")
      (home-page "https://github.com/pyzy/pyzy")
      (license lgpl2.1+))))

debug log:

solving 4474665 ...
found 4474665 in https://yhetil.org/guix/87a8t0a7ox.fsf@elephly.net/
found 9c64530 in https://yhetil.org/guix/87a8t0a7ox.fsf@elephly.net/
found 1abe70a in https://git.savannah.gnu.org/cgit/guix.git
preparing index
index prepared:
100644 1abe70a1ab564d951e112c3337d91b8b9bd35ed7	gnu/packages/ibus.scm

applying [1/2] https://yhetil.org/guix/87a8t0a7ox.fsf@elephly.net/
diff --git a/gnu/packages/ibus.scm b/gnu/packages/ibus.scm
index 1abe70a..9c64530 100644


applying [2/2] https://yhetil.org/guix/87a8t0a7ox.fsf@elephly.net/
diff --git a/gnu/packages/ibus.scm b/gnu/packages/ibus.scm
index 9c64530..4474665 100644

Checking patch gnu/packages/ibus.scm...
Applied patch gnu/packages/ibus.scm cleanly.
Checking patch gnu/packages/ibus.scm...
Applied patch gnu/packages/ibus.scm cleanly.

index at:
100644 4474665b5d1b3e37049d24e84a0459c55181a945	gnu/packages/ibus.scm

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.