gnu: kajongg: Wrap binary with pythonpath.
* gnu/packages/games.scm (kajongg)[arguments]: Add phase to wrap binary with PYTHONPATH. [propagated-inputs]: Move python-twisted, python-pyqt ... [inputs]: ... to here.
This commit is contained in:
parent
e87a2dea55
commit
50793bd41a
1 changed files with 11 additions and 4 deletions
|
@ -10119,6 +10119,15 @@ This package is part of the KDE games module.")
|
||||||
(sha256
|
(sha256
|
||||||
(base32 "0ql6p5zifdpdf65r7ki9ml123azpwwk9x3x8r9ij6xhjnf7p7x6w"))))
|
(base32 "0ql6p5zifdpdf65r7ki9ml123azpwwk9x3x8r9ij6xhjnf7p7x6w"))))
|
||||||
(build-system qt-build-system)
|
(build-system qt-build-system)
|
||||||
|
(arguments
|
||||||
|
`(#:phases
|
||||||
|
(modify-phases %standard-phases
|
||||||
|
(add-after 'install 'wrap
|
||||||
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
|
(let ((out (assoc-ref outputs "out")))
|
||||||
|
(wrap-program (string-append out "/bin/kajongg")
|
||||||
|
`("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH"))))
|
||||||
|
#t))))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("extra-cmake-modules" ,extra-cmake-modules)
|
`(("extra-cmake-modules" ,extra-cmake-modules)
|
||||||
;("perl" ,perl)
|
;("perl" ,perl)
|
||||||
|
@ -10130,12 +10139,10 @@ This package is part of the KDE games module.")
|
||||||
("ki18n" ,ki18n)
|
("ki18n" ,ki18n)
|
||||||
("libkmahjongg" ,libkmahjongg)
|
("libkmahjongg" ,libkmahjongg)
|
||||||
("python" ,python)
|
("python" ,python)
|
||||||
|
("python-twisted" ,python-twisted)
|
||||||
|
("python-pyqt" ,python-pyqt)
|
||||||
("qtbase" ,qtbase)
|
("qtbase" ,qtbase)
|
||||||
("qtsvg" ,qtsvg)))
|
("qtsvg" ,qtsvg)))
|
||||||
(propagated-inputs
|
|
||||||
`(("python-twisted" ,python-twisted)
|
|
||||||
("python-pyqt" ,python-pyqt)))
|
|
||||||
;; FIXME: Need to wrap PYTHONPATH
|
|
||||||
(home-page "https://games.kde.org/")
|
(home-page "https://games.kde.org/")
|
||||||
(synopsis "Classical Mah Jongg game for 4 players")
|
(synopsis "Classical Mah Jongg game for 4 players")
|
||||||
(description "Kajongg is the ancient Chinese board game for 4 players.
|
(description "Kajongg is the ancient Chinese board game for 4 players.
|
||||||
|
|
Reference in a new issue