diff options
author | Zheng Junjie <zhengjunjie@iscas.ac.cn> | 2024-07-10 16:35:41 +0800 |
---|---|---|
committer | Zheng Junjie <zhengjunjie@iscas.ac.cn> | 2024-07-18 10:45:35 +0800 |
commit | 860e819b91ccdf34f0efb4a8e7d600500a6badd9 (patch) | |
tree | 7507dd7a3426b51b2e1e12dc8704c5dadf01b33d | |
parent | 2d524ca950df18a1ef8d7a86034bc8651d0ff290 (diff) | |
download | guix-860e819b91ccdf34f0efb4a8e7d600500a6badd9.tar.gz guix-860e819b91ccdf34f0efb4a8e7d600500a6badd9.zip |
gnu: kajongg: Update to 24.05.2.
* gnu/packages/kde-games.scm (kajongg): Update to 24.05.2.
[inputs]: Remove qtbase-5 and qtsvg-5; add qtsvg.
[arguments]: Set #:qtbase to qtbase; Use Gexps.
Change-Id: Ib7ee51cc63f6bbf749ee34b23992ed46aa4fe27b
-rw-r--r-- | gnu/packages/kde-games.scm | 68 |
1 files changed, 34 insertions, 34 deletions
diff --git a/gnu/packages/kde-games.scm b/gnu/packages/kde-games.scm index 3f0dba6535..8c82aec0f3 100644 --- a/gnu/packages/kde-games.scm +++ b/gnu/packages/kde-games.scm @@ -301,44 +301,45 @@ This package is part of the KDE games module.") (define-public kajongg (package (name "kajongg") - (version "23.04.3") + (version "24.05.2") (source (origin - (method url-fetch) - (uri (string-append "mirror://kde/stable/release-service/" - version "/src/kajongg-" version ".tar.xz")) - (sha256 - (base32 "16v87x0qikfk9jpp8dfxnb7mnjzzi0qlkp5lbn2xypkfhqaz99fi")))) + (method url-fetch) + (uri (string-append "mirror://kde/stable/release-service/" + version "/src/kajongg-" version ".tar.xz")) + (sha256 + (base32 "0xwnin738zj6kh607asmwdq7n6jva9wk240c9rc53ja98nw4crpv")))) (build-system qt-build-system) (arguments - `(#:phases - (modify-phases %standard-phases - (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'"))) - (substitute* "src/sound.py" - (("oggBinary = 'ogg123'") - (format #f "oggBinary = '~a'" - (search-input-file inputs "bin/ogg123")))) - (substitute* "src/common.py" - (("interpreterName = 'python3'") - (format #f "interpreterName = '~a'" - (search-input-file inputs "bin/python3")))))) - (add-after 'qt-wrap 'wrap - (lambda* (#:key outputs #:allow-other-keys) - (let ((out (assoc-ref outputs "out"))) - (for-each (lambda (program) - (wrap-program program - `("GUIX_PYTHONPATH" ":" prefix - (,(getenv "GUIX_PYTHONPATH"))))) - (list (string-append out "/bin/kajongg") - (string-append out "/bin/kajonggserver"))))))))) + (list + #:qtbase qtbase + #:phases + #~(modify-phases %standard-phases + (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'"))) + (substitute* "src/sound.py" + (("oggBinary = 'ogg123'") + (format #f "oggBinary = '~a'" + (search-input-file inputs "bin/ogg123")))) + (substitute* "src/common.py" + (("interpreterName = 'python3'") + (format #f "interpreterName = '~a'" + (search-input-file inputs "bin/python3")))))) + (add-after 'qt-wrap 'wrap + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + (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 (list extra-cmake-modules - ;("perl" ,perl) kdoctools)) (inputs (list bash-minimal @@ -352,8 +353,7 @@ This package is part of the KDE games module.") python-twisted python-qtpy python-zope-interface - qtbase-5 - qtsvg-5 + qtsvg vorbis-tools)) (home-page "https://apps.kde.org/kajongg/") (synopsis "Classical Mah Jongg game for 4 players") |