mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: librecad: Build with qt-build-system.
* gnu/packages/engineering.scm (librecad)[build-system]: Switch to qt-build-system. [arguments]: Add test-target. Remove custom 'wrap-executable phase.
This commit is contained in:
parent
26f1c93982
commit
4992cd7c4e
1 changed files with 4 additions and 15 deletions
|
@ -144,9 +144,10 @@
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"08cl4935c9vznz9qdw1zgd86rn7hl64zpfayxl07x21bhf53pn24"))))
|
"08cl4935c9vznz9qdw1zgd86rn7hl64zpfayxl07x21bhf53pn24"))))
|
||||||
(build-system gnu-build-system)
|
(build-system qt-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
'(#:phases
|
'(#:test-target "check"
|
||||||
|
#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
;; Without this patch boost complains that "make_array" is not a
|
;; Without this patch boost complains that "make_array" is not a
|
||||||
;; member of "boost::serialization".
|
;; member of "boost::serialization".
|
||||||
|
@ -186,19 +187,7 @@
|
||||||
(install-file "unix/librecad" bin)
|
(install-file "unix/librecad" bin)
|
||||||
(mkdir-p share)
|
(mkdir-p share)
|
||||||
(copy-recursively "unix/resources" share))
|
(copy-recursively "unix/resources" share))
|
||||||
#t))
|
#t)))))
|
||||||
;; Ensure that icons are found at runtime
|
|
||||||
(add-after 'install 'wrap-executable
|
|
||||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
|
||||||
(let* ((out (assoc-ref outputs "out"))
|
|
||||||
(qt '("qtbase" "qtsvg")))
|
|
||||||
(wrap-program (string-append out "/bin/librecad")
|
|
||||||
`("QT_PLUGIN_PATH" ":" prefix
|
|
||||||
,(map (lambda (label)
|
|
||||||
(string-append (assoc-ref inputs label)
|
|
||||||
"/lib/qt5/plugins/"))
|
|
||||||
qt)))
|
|
||||||
#t))))))
|
|
||||||
(inputs
|
(inputs
|
||||||
`(("boost" ,boost)
|
`(("boost" ,boost)
|
||||||
("muparser" ,muparser)
|
("muparser" ,muparser)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue