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
1 changed files with 8 additions and 0 deletions

View File

@ -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