gnu: stellarium: Fix build with Qt 5.9.

* gnu/packages/astronomy.scm (stellarium)[arguments]:
Add phase "patch-version-check".
This commit is contained in:
Danny Milosavljevic 2017-06-11 00:23:17 +02:00
parent 34a0984e57
commit 2606fd6fc9
No known key found for this signature in database
GPG key ID: E71A35542C30BAA5

View file

@ -141,6 +141,14 @@ (define-public stellarium
(arguments
`(#:test-target "tests"
#: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
(lambda _
;; make Qt render "offscreen", required for tests