diff options
author | Guillaume Le Vaillant <glv@posteo.net> | 2021-10-07 15:53:33 +0200 |
---|---|---|
committer | Guillaume Le Vaillant <glv@posteo.net> | 2021-10-07 15:53:33 +0200 |
commit | a940689896c154a40c98c7d2391d1ac6797bb15c (patch) | |
tree | e5b5e3b02326d5ced398eb331ca18538e2fadd77 | |
parent | adde737f7caeae770c80d511c9b71d84db2a9fe3 (diff) | |
download | guix-a940689896c154a40c98c7d2391d1ac6797bb15c.tar.gz |
gnu: kajongg: Fix build.
* gnu/packages/games.scm (kajongg)[inputs]: Add python-zope-interface. [arguments]: Add 'fix-paths' phase. Update 'wrap' phase and move it after 'qt-wrap' phase.
-rw-r--r-- | gnu/packages/games.scm | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index 38f724a726..958a552300 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm @@ -173,6 +173,7 @@ #:use-module (gnu packages protobuf) #:use-module (gnu packages pulseaudio) #:use-module (gnu packages python) + #:use-module (gnu packages python-web) #:use-module (gnu packages python-xyz) #:use-module (gnu packages qt) #:use-module (gnu packages readline) @@ -10440,12 +10441,21 @@ This package is part of the KDE games module.") (arguments `(#:phases (modify-phases %standard-phases - (add-after 'install 'wrap + (add-after 'unpack 'fix-paths + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "src/mjresource.py" + (("'share', 'kmahjongglib'" all) + (string-append "'" (assoc-ref inputs "libkmahjongg") + "/share', 'kmahjongglib'"))))) + (add-after 'qt-wrap 'wrap (lambda* (#:key outputs #:allow-other-keys) (let ((out (assoc-ref outputs "out"))) - (wrap-program (string-append out "/bin/kajongg") - `("GUIX_PYTHONPATH" ":" prefix (,(getenv "GUIX_PYTHONPATH")))) - #t)))))) + (for-each (lambda (program) + (wrap-program program + `("GUIX_PYTHONPATH" ":" prefix + (,(getenv "GUIX_PYTHONPATH"))))) + (list (string-append out "/bin/kajongg") + (string-append out "/bin/kajonggserver"))))))))) (native-inputs `(("extra-cmake-modules" ,extra-cmake-modules) ;("perl" ,perl) @@ -10459,6 +10469,7 @@ This package is part of the KDE games module.") ("python" ,python) ("python-twisted" ,python-twisted) ("python-pyqt" ,python-pyqt) + ("python-zope-interface" ,python-zope-interface) ("qtbase" ,qtbase-5) ("qtsvg" ,qtsvg))) (home-page "https://games.kde.org/") |