mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-26 04:29:25 -05:00
gnu: ibus-anthy: Fix runtime errors.
This fixes <https://issues.guix.gnu.org/64941>. * gnu/packages/ibus.scm (ibus-anthy) [build-system]: Switch to glib-or-gtk-build-system, for GSettings schema. [arguments]: Add a pre-configure phase to regenerate '_config.py'. Pass "--with-anthy-zipcode" to configure-flags.
This commit is contained in:
parent
d1804ebfc9
commit
9e245b50f8
1 changed files with 10 additions and 2 deletions
|
@ -352,7 +352,7 @@ (define-public ibus-anthy
|
|||
(base32
|
||||
"16vd0k8wm13s38869jqs3dnwmjvywgn0snnpyi41m28binhlssf8"))
|
||||
(patches (search-patches "ibus-anthy-fix-tests.patch"))))
|
||||
(build-system gnu-build-system)
|
||||
(build-system glib-or-gtk-build-system)
|
||||
(arguments
|
||||
(list
|
||||
;; The test suite hangs (see:
|
||||
|
@ -360,7 +360,10 @@ (define-public ibus-anthy
|
|||
#:tests? #f
|
||||
#:configure-flags
|
||||
;; Use absolute exec path in the anthy.xml.
|
||||
#~(list (string-append "--libexecdir=" #$output "/libexec"))
|
||||
#~(list (string-append "--libexecdir=" #$output "/libexec")
|
||||
(string-append
|
||||
"--with-anthy-zipcode="
|
||||
(assoc-ref %build-inputs "anthy") "/share/anthy/zipcode.t"))
|
||||
;; The test suite fails (see:
|
||||
;; https://github.com/ibus/ibus-anthy/issues/28).
|
||||
#:phases
|
||||
|
@ -380,6 +383,11 @@ (define-public ibus-anthy
|
|||
(substitute* "tests/test-build.sh"
|
||||
(("GI_TYPELIB_PATH=\\$BUILDDIR/../gir" all)
|
||||
(string-append all ":$GI_TYPELIB_PATH")))))
|
||||
(add-before 'configure 'pre-configure
|
||||
(lambda _
|
||||
;; We need generate new _config.py with correct PKGDATADIR.
|
||||
(delete-file "setup/python3/_config.py")
|
||||
(delete-file "engine/python3/_config.py")))
|
||||
(add-before 'check 'prepare-for-tests
|
||||
(lambda* (#:key tests? #:allow-other-keys)
|
||||
(when tests?
|
||||
|
|
Loading…
Reference in a new issue