gnu: stellarium: Update to 0.17.0.
* gnu/packages/astronomy.scm (stellarium): Update to 0.17.0. [source]: Use new upstream URL. [arguments]: Adjust #:test-target; add #:configure-flags to locate the qtserialport header files and enable the building of tests; remove 'patch-tests' phase.
This commit is contained in:
parent
c0c5feda4c
commit
6885745dc1
|
@ -117,15 +117,16 @@ programs for the manipulation and analysis of astronomical data.")
|
||||||
(define-public stellarium
|
(define-public stellarium
|
||||||
(package
|
(package
|
||||||
(name "stellarium")
|
(name "stellarium")
|
||||||
(version "0.16.0")
|
(version "0.17.0")
|
||||||
(source (origin
|
(source (origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (string-append "mirror://sourceforge/stellarium/"
|
(uri (string-append "https://github.com/Stellarium/" name
|
||||||
"Stellarium-sources/"
|
"/releases/download/v" version
|
||||||
version "/stellarium-" version ".tar.gz"))
|
"/" name "-" version ".tar.gz"))
|
||||||
|
(file-name (string-append name "-" version ".tar.gz"))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"1krxj51lix096xbz64lys166a8zdwhill5vvs7dlxdn14amc8d98"))))
|
"0d6b3fs5aify7i1lwgkcickppnj73cbh24g8qschnfs3ypdf48fc"))))
|
||||||
(build-system cmake-build-system)
|
(build-system cmake-build-system)
|
||||||
(inputs
|
(inputs
|
||||||
`(("qtbase" ,qtbase)
|
`(("qtbase" ,qtbase)
|
||||||
|
@ -140,19 +141,19 @@ programs for the manipulation and analysis of astronomical data.")
|
||||||
("qtbase" ,qtbase) ; Qt MOC is needed at compile time
|
("qtbase" ,qtbase) ; Qt MOC is needed at compile time
|
||||||
("qttools" ,qttools)))
|
("qttools" ,qttools)))
|
||||||
(arguments
|
(arguments
|
||||||
`(#:test-target "tests"
|
`(#:test-target "test"
|
||||||
#:phases (modify-phases %standard-phases
|
#:configure-flags (list "-DENABLE_TESTING=1"
|
||||||
(add-after 'unpack 'patch-tests
|
(string-append
|
||||||
(lambda _
|
"-DCMAKE_CXX_FLAGS=-isystem "
|
||||||
(substitute* "src/tests/testStelSphereGeometry.cpp"
|
(assoc-ref %build-inputs "qtserialport")
|
||||||
(("Vec3d v[(]0[)]") "Vec3d v(0.0)"))
|
"/include/qt5"))
|
||||||
#t))
|
#:phases (modify-phases %standard-phases
|
||||||
(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
|
||||||
(setenv "QT_QPA_PLATFORM" "offscreen")
|
(setenv "QT_QPA_PLATFORM" "offscreen")
|
||||||
(setenv "HOME" "/tmp")
|
(setenv "HOME" "/tmp")
|
||||||
#t)))))
|
#t)))))
|
||||||
(home-page "http://www.stellarium.org/")
|
(home-page "http://www.stellarium.org/")
|
||||||
(synopsis "3D sky viewer")
|
(synopsis "3D sky viewer")
|
||||||
(description "Stellarium is a planetarium. It shows a realistic sky in
|
(description "Stellarium is a planetarium. It shows a realistic sky in
|
||||||
|
|
Loading…
Reference in New Issue