me
/
guix
Archived
1
0
Fork 0

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
master
Zheng Junjie 2024-07-10 16:35:41 +08:00
parent 2d524ca950
commit 860e819b91
No known key found for this signature in database
GPG Key ID: 3B5AA993E1A2DFF0
1 changed files with 34 additions and 34 deletions

View File

@ -301,44 +301,45 @@ This package is part of the KDE games module.")
(define-public kajongg (define-public kajongg
(package (package
(name "kajongg") (name "kajongg")
(version "23.04.3") (version "24.05.2")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
(uri (string-append "mirror://kde/stable/release-service/" (uri (string-append "mirror://kde/stable/release-service/"
version "/src/kajongg-" version ".tar.xz")) version "/src/kajongg-" version ".tar.xz"))
(sha256 (sha256
(base32 "16v87x0qikfk9jpp8dfxnb7mnjzzi0qlkp5lbn2xypkfhqaz99fi")))) (base32 "0xwnin738zj6kh607asmwdq7n6jva9wk240c9rc53ja98nw4crpv"))))
(build-system qt-build-system) (build-system qt-build-system)
(arguments (arguments
`(#:phases (list
(modify-phases %standard-phases #:qtbase qtbase
(add-after 'unpack 'fix-paths #:phases
(lambda* (#:key inputs #:allow-other-keys) #~(modify-phases %standard-phases
(substitute* "src/mjresource.py" (add-after 'unpack 'fix-paths
(("'share', 'kmahjongglib'" all) (lambda* (#:key inputs #:allow-other-keys)
(string-append "'" (assoc-ref inputs "libkmahjongg") (substitute* "src/mjresource.py"
"/share', 'kmahjongglib'"))) (("'share', 'kmahjongglib'" all)
(substitute* "src/sound.py" (string-append "'" (assoc-ref inputs "libkmahjongg")
(("oggBinary = 'ogg123'") "/share', 'kmahjongglib'")))
(format #f "oggBinary = '~a'" (substitute* "src/sound.py"
(search-input-file inputs "bin/ogg123")))) (("oggBinary = 'ogg123'")
(substitute* "src/common.py" (format #f "oggBinary = '~a'"
(("interpreterName = 'python3'") (search-input-file inputs "bin/ogg123"))))
(format #f "interpreterName = '~a'" (substitute* "src/common.py"
(search-input-file inputs "bin/python3")))))) (("interpreterName = 'python3'")
(add-after 'qt-wrap 'wrap (format #f "interpreterName = '~a'"
(lambda* (#:key outputs #:allow-other-keys) (search-input-file inputs "bin/python3"))))))
(let ((out (assoc-ref outputs "out"))) (add-after 'qt-wrap 'wrap
(for-each (lambda (program) (lambda* (#:key outputs #:allow-other-keys)
(wrap-program program (let ((out (assoc-ref outputs "out")))
`("GUIX_PYTHONPATH" ":" prefix (for-each (lambda (program)
(,(getenv "GUIX_PYTHONPATH"))))) (wrap-program program
(list (string-append out "/bin/kajongg") `("GUIX_PYTHONPATH" ":" prefix
(string-append out "/bin/kajonggserver"))))))))) (,(getenv "GUIX_PYTHONPATH")))))
(list (string-append out "/bin/kajongg")
(string-append out "/bin/kajonggserver")))))))))
(native-inputs (native-inputs
(list extra-cmake-modules (list extra-cmake-modules
;("perl" ,perl)
kdoctools)) kdoctools))
(inputs (inputs
(list bash-minimal (list bash-minimal
@ -352,8 +353,7 @@ This package is part of the KDE games module.")
python-twisted python-twisted
python-qtpy python-qtpy
python-zope-interface python-zope-interface
qtbase-5 qtsvg
qtsvg-5
vorbis-tools)) vorbis-tools))
(home-page "https://apps.kde.org/kajongg/") (home-page "https://apps.kde.org/kajongg/")
(synopsis "Classical Mah Jongg game for 4 players") (synopsis "Classical Mah Jongg game for 4 players")