gnu: stellarium: Fix build with Qt 5.9.
* gnu/packages/astronomy.scm (stellarium)[arguments]: Add phase "patch-version-check".
This commit is contained in:
parent
34a0984e57
commit
2606fd6fc9
|
@ -141,6 +141,14 @@ programs for the manipulation and analysis of astronomical data.")
|
||||||
(arguments
|
(arguments
|
||||||
`(#:test-target "tests"
|
`(#:test-target "tests"
|
||||||
#:phases (modify-phases %standard-phases
|
#:phases (modify-phases %standard-phases
|
||||||
|
(add-after 'unpack 'patch-version-check
|
||||||
|
(lambda _
|
||||||
|
;; Previously-deprecated cmake variable vanished in
|
||||||
|
;; Qt 5.9.
|
||||||
|
;; See <https://bugreports.qt.io/browse/QTBUG-60936>.
|
||||||
|
(substitute* "CMakeLists.txt"
|
||||||
|
(("Qt5Core_VERSION_STRING") "Qt5Core_VERSION"))
|
||||||
|
#t))
|
||||||
(add-before 'check 'set-offscreen-display
|
(add-before 'check 'set-offscreen-display
|
||||||
(lambda _
|
(lambda _
|
||||||
;; make Qt render "offscreen", required for tests
|
;; make Qt render "offscreen", required for tests
|
||||||
|
|
Loading…
Reference in New Issue