mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 15:36:20 -05: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
|
||||
;;; 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 © 2016 Chris Marusich <cmmarusich@gmail.com>
|
||||
;;; Copyright © 2017, 2018 Efraim Flashner <efraim@flashner.co.il>
|
||||
|
@ -270,37 +270,38 @@ (define-public ibus-libpinyin
|
|||
"0xl2lmffy42f6h6za05z4vpazpza1a9gsrva65giwyv3kpf652dd"))))
|
||||
(build-system glib-or-gtk-build-system)
|
||||
(arguments
|
||||
`(#:configure-flags
|
||||
'("--enable-opencc")
|
||||
#:phases
|
||||
(modify-phases %standard-phases
|
||||
(add-after 'wrap-program 'wrap-with-additional-paths
|
||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||
;; Make sure 'ibus-setup-libpinyin' runs with the correct
|
||||
;; PYTHONPATH and GI_TYPELIB_PATH.
|
||||
(let ((out (assoc-ref outputs "out")))
|
||||
(wrap-program (string-append out "/libexec/ibus-setup-libpinyin")
|
||||
`("GUIX_PYTHONPATH" ":" prefix
|
||||
(,(getenv "GUIX_PYTHONPATH")
|
||||
,(string-append (assoc-ref inputs "ibus")
|
||||
"/lib/girepository-1.0")
|
||||
,(string-append (assoc-ref outputs "out")
|
||||
"/share/ibus-libpinyin/setup/")))
|
||||
`("GI_TYPELIB_PATH" ":" prefix
|
||||
(,(string-append (assoc-ref inputs "ibus")
|
||||
"/lib/girepository-1.0")
|
||||
,(string-append (assoc-ref outputs "out")
|
||||
"/share/ibus-libpinyin/setup/"))))
|
||||
#t))))))
|
||||
(list
|
||||
#:configure-flags
|
||||
'(list "--enable-opencc")
|
||||
#:phases
|
||||
#~(modify-phases %standard-phases
|
||||
(add-after 'wrap-program 'wrap-with-additional-paths
|
||||
(lambda _
|
||||
;; Make sure 'ibus-setup-libpinyin' runs with the correct
|
||||
;; PYTHONPATH and GI_TYPELIB_PATH.
|
||||
(wrap-program (string-append #$output "/libexec/ibus-setup-libpinyin")
|
||||
`("GUIX_PYTHONPATH" ":" prefix
|
||||
(,(getenv "GUIX_PYTHONPATH")
|
||||
,(string-append #$(this-package-input "ibus")
|
||||
"/lib/girepository-1.0")
|
||||
,(string-append #$output
|
||||
"/share/ibus-libpinyin/setup/")))
|
||||
`("GI_TYPELIB_PATH" ":" prefix
|
||||
(,(string-append #$(this-package-input "ibus")
|
||||
"/lib/girepository-1.0")
|
||||
,(string-append #$(this-package-input "gtk+")
|
||||
"/lib/girepository-1.0")
|
||||
,(string-append #$output
|
||||
"/share/ibus-libpinyin/setup/")))))))))
|
||||
(inputs
|
||||
`(("ibus" ,ibus)
|
||||
("libpinyin" ,libpinyin)
|
||||
("bdb" ,bdb)
|
||||
("sqlite" ,sqlite)
|
||||
("opencc" ,opencc)
|
||||
("python" ,python)
|
||||
("pygobject2" ,python-pygobject)
|
||||
("gtk+" ,gtk+)))
|
||||
(list ibus
|
||||
libpinyin
|
||||
bdb
|
||||
sqlite
|
||||
opencc
|
||||
python
|
||||
python-pygobject
|
||||
gtk+))
|
||||
(native-inputs
|
||||
(list pkg-config intltool
|
||||
`(,glib "bin")))
|
||||
|
|
Loading…
Reference in a new issue