mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: ibus-libpinyin: Drop package labels and use G-exps.
* gnu/packages/ibus.scm (ibus-libpinyin)[arguments]: Use G-expression. [inputs]: Drop labels.
This commit is contained in:
parent
40d6615ca2
commit
33d626da7d
1 changed files with 32 additions and 31 deletions
|
@ -1,5 +1,5 @@
|
||||||
;;; GNU Guix --- Functional package management for GNU
|
;;; GNU Guix --- Functional package management for GNU
|
||||||
;;; Copyright © 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022 Ricardo Wurmus <rekado@elephly.net>
|
;;; Copyright © 2015-2023 Ricardo Wurmus <rekado@elephly.net>
|
||||||
;;; Copyright © 2015 Andreas Enge <andreas@enge.fr>
|
;;; Copyright © 2015 Andreas Enge <andreas@enge.fr>
|
||||||
;;; Copyright © 2016 Chris Marusich <cmmarusich@gmail.com>
|
;;; Copyright © 2016 Chris Marusich <cmmarusich@gmail.com>
|
||||||
;;; Copyright © 2017, 2018 Efraim Flashner <efraim@flashner.co.il>
|
;;; Copyright © 2017, 2018 Efraim Flashner <efraim@flashner.co.il>
|
||||||
|
@ -270,37 +270,38 @@ may also simplify input method development.")
|
||||||
"0xl2lmffy42f6h6za05z4vpazpza1a9gsrva65giwyv3kpf652dd"))))
|
"0xl2lmffy42f6h6za05z4vpazpza1a9gsrva65giwyv3kpf652dd"))))
|
||||||
(build-system glib-or-gtk-build-system)
|
(build-system glib-or-gtk-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:configure-flags
|
(list
|
||||||
'("--enable-opencc")
|
#:configure-flags
|
||||||
|
'(list "--enable-opencc")
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
#~(modify-phases %standard-phases
|
||||||
(add-after 'wrap-program 'wrap-with-additional-paths
|
(add-after 'wrap-program 'wrap-with-additional-paths
|
||||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
(lambda _
|
||||||
;; Make sure 'ibus-setup-libpinyin' runs with the correct
|
;; Make sure 'ibus-setup-libpinyin' runs with the correct
|
||||||
;; PYTHONPATH and GI_TYPELIB_PATH.
|
;; PYTHONPATH and GI_TYPELIB_PATH.
|
||||||
(let ((out (assoc-ref outputs "out")))
|
(wrap-program (string-append #$output "/libexec/ibus-setup-libpinyin")
|
||||||
(wrap-program (string-append out "/libexec/ibus-setup-libpinyin")
|
|
||||||
`("GUIX_PYTHONPATH" ":" prefix
|
`("GUIX_PYTHONPATH" ":" prefix
|
||||||
(,(getenv "GUIX_PYTHONPATH")
|
(,(getenv "GUIX_PYTHONPATH")
|
||||||
,(string-append (assoc-ref inputs "ibus")
|
,(string-append #$(this-package-input "ibus")
|
||||||
"/lib/girepository-1.0")
|
"/lib/girepository-1.0")
|
||||||
,(string-append (assoc-ref outputs "out")
|
,(string-append #$output
|
||||||
"/share/ibus-libpinyin/setup/")))
|
"/share/ibus-libpinyin/setup/")))
|
||||||
`("GI_TYPELIB_PATH" ":" prefix
|
`("GI_TYPELIB_PATH" ":" prefix
|
||||||
(,(string-append (assoc-ref inputs "ibus")
|
(,(string-append #$(this-package-input "ibus")
|
||||||
"/lib/girepository-1.0")
|
"/lib/girepository-1.0")
|
||||||
,(string-append (assoc-ref outputs "out")
|
,(string-append #$(this-package-input "gtk+")
|
||||||
"/share/ibus-libpinyin/setup/"))))
|
"/lib/girepository-1.0")
|
||||||
#t))))))
|
,(string-append #$output
|
||||||
|
"/share/ibus-libpinyin/setup/")))))))))
|
||||||
(inputs
|
(inputs
|
||||||
`(("ibus" ,ibus)
|
(list ibus
|
||||||
("libpinyin" ,libpinyin)
|
libpinyin
|
||||||
("bdb" ,bdb)
|
bdb
|
||||||
("sqlite" ,sqlite)
|
sqlite
|
||||||
("opencc" ,opencc)
|
opencc
|
||||||
("python" ,python)
|
python
|
||||||
("pygobject2" ,python-pygobject)
|
python-pygobject
|
||||||
("gtk+" ,gtk+)))
|
gtk+))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list pkg-config intltool
|
(list pkg-config intltool
|
||||||
`(,glib "bin")))
|
`(,glib "bin")))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue