mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-11 13:49:23 -05:00
gnu: ibus-libpinyin: Update to 1.12.0.
* gnu/packages/ibus.scm (ibus-libpinyin): Update to 1.12.0. [arguments]: Enable opencc; include setup files on PYTHONPATH; override PYTHONPATH instead of prefixing. [inputs]: Add opencc; remove python-pyxdg. [license]: Change to GPLv3+.
This commit is contained in:
parent
f9e016baec
commit
266d55dc30
1 changed files with 14 additions and 8 deletions
|
@ -174,7 +174,7 @@ (define-public ibus
|
|||
(define-public ibus-libpinyin
|
||||
(package
|
||||
(name "ibus-libpinyin")
|
||||
(version "1.11.1")
|
||||
(version "1.12.0")
|
||||
(source (origin
|
||||
(method url-fetch)
|
||||
(uri (string-append "https://github.com/libpinyin/ibus-libpinyin/"
|
||||
|
@ -182,10 +182,12 @@ (define-public ibus-libpinyin
|
|||
"/ibus-libpinyin-" version ".tar.gz"))
|
||||
(sha256
|
||||
(base32
|
||||
"1bl1cgicd2df797dx1x0q904438bsn8i23djzcfcai4dp3631xc0"))))
|
||||
"0xl2lmffy42f6h6za05z4vpazpza1a9gsrva65giwyv3kpf652dd"))))
|
||||
(build-system glib-or-gtk-build-system)
|
||||
(arguments
|
||||
`(#:phases
|
||||
`(#:configure-flags
|
||||
'("--enable-opencc")
|
||||
#:phases
|
||||
(modify-phases %standard-phases
|
||||
(add-after 'wrap-program 'wrap-with-additional-paths
|
||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||
|
@ -193,21 +195,25 @@ (define-public ibus-libpinyin
|
|||
;; PYTHONPATH and GI_TYPELIB_PATH.
|
||||
(let ((out (assoc-ref outputs "out")))
|
||||
(wrap-program (string-append out "/libexec/ibus-setup-libpinyin")
|
||||
`("PYTHONPATH" ":" prefix
|
||||
`("PYTHONPATH" ":" =
|
||||
(,(getenv "PYTHONPATH")
|
||||
,(string-append (assoc-ref inputs "ibus")
|
||||
"/lib/girepository-1.0")))
|
||||
"/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"))))
|
||||
"/lib/girepository-1.0")
|
||||
,(string-append (assoc-ref outputs "out")
|
||||
"/share/ibus-libpinyin/setup/"))))
|
||||
#t))))))
|
||||
(inputs
|
||||
`(("ibus" ,ibus)
|
||||
("libpinyin" ,libpinyin)
|
||||
("bdb" ,bdb)
|
||||
("sqlite" ,sqlite)
|
||||
("opencc" ,opencc)
|
||||
("python" ,python)
|
||||
("pyxdg" ,python-pyxdg)
|
||||
("pygobject2" ,python-pygobject)
|
||||
("gtk+" ,gtk+)))
|
||||
(native-inputs
|
||||
|
@ -219,7 +225,7 @@ (define-public ibus-libpinyin
|
|||
"This package includes a Chinese pinyin input method and a Chinese
|
||||
ZhuYin (Bopomofo) input method based on libpinyin for IBus.")
|
||||
(home-page "https://github.com/libpinyin/ibus-libpinyin")
|
||||
(license gpl2+)))
|
||||
(license gpl3+)))
|
||||
|
||||
(define-public libpinyin
|
||||
(package
|
||||
|
|
Loading…
Reference in a new issue