gnu: quaternion: Update to 0.0.9.3.
* gnu/packages/messaging.scm (quaternion): Update to 0.0.9.3. [inputs]: Add qtquickcontrols, qtsvg and qttools. [arguments]: Remove fix-libqmatrixclient-dynamic-linking phase. Add wrap-program phase.
This commit is contained in:
parent
c6588749a6
commit
c7ac8e36e2
|
@ -1676,7 +1676,7 @@ QMatrixClient project.")
|
||||||
(define-public quaternion
|
(define-public quaternion
|
||||||
(package
|
(package
|
||||||
(name "quaternion")
|
(name "quaternion")
|
||||||
(version "0.0.9.2")
|
(version "0.0.9.3")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method git-fetch)
|
(method git-fetch)
|
||||||
|
@ -1686,31 +1686,31 @@ QMatrixClient project.")
|
||||||
(file-name (git-file-name name version))
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"0zrr4khbbdf5ziq65gi0cb1yb1d0y5rv18wld22w1x96f7fkmrib"))))
|
"1hr9zqf301rg583n9jv256vzj7y57d8qgayk7c723bfknf1s6hh3"))))
|
||||||
(build-system cmake-build-system)
|
(build-system cmake-build-system)
|
||||||
(inputs
|
(inputs
|
||||||
`(("libqmatrixclient" ,libqmatrixclient)
|
`(("libqmatrixclient" ,libqmatrixclient)
|
||||||
("qtbase" ,qtbase)
|
("qtbase" ,qtbase)
|
||||||
("qtdeclarative" ,qtdeclarative)))
|
("qtdeclarative" ,qtdeclarative)
|
||||||
|
("qtquickcontrols" ,qtquickcontrols)
|
||||||
|
("qtsvg" ,qtsvg)
|
||||||
|
("qttools" ,qttools)))
|
||||||
(arguments
|
(arguments
|
||||||
`(#:tests? #f ; No tests
|
`(#:tests? #f ; No tests
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(add-after 'unpack 'fix-libqmatrixclient-dynamic-linking
|
(add-after 'install 'wrap-program
|
||||||
;; Upstream recommends statically linking with
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||||
;; libqmatrixclient. Patch the source so that we can dynamically
|
(wrap-program (string-append (assoc-ref outputs "out")
|
||||||
;; link instead. In a future release, when upstream moves to
|
"/bin/quaternion")
|
||||||
;; dynamic linking, remove this phase.
|
`("QT_PLUGIN_PATH" ":" prefix
|
||||||
(lambda _
|
(,(string-append (assoc-ref inputs "qtsvg")
|
||||||
(substitute* "CMakeLists.txt"
|
"/lib/qt5/plugins")))
|
||||||
(("^add_subdirectory\\(lib\\)" all)
|
`("QML2_IMPORT_PATH" ":" prefix
|
||||||
(string-append "#" all)))
|
,(map (lambda (label)
|
||||||
(for-each
|
(string-append (assoc-ref inputs label)
|
||||||
(lambda (file)
|
"/lib/qt5/qml"))
|
||||||
(substitute* file
|
'("qtdeclarative" "qtquickcontrols"))))
|
||||||
(("#include \"lib/([^\"]*)\"" all header)
|
|
||||||
(string-append "#include <" header ">"))))
|
|
||||||
(find-files "client" "\\.(cpp|h)$"))
|
|
||||||
#t)))))
|
#t)))))
|
||||||
(home-page "https://matrix.org/docs/projects/client/quaternion.html")
|
(home-page "https://matrix.org/docs/projects/client/quaternion.html")
|
||||||
(synopsis "Graphical client for the Matrix instant messaging protocol")
|
(synopsis "Graphical client for the Matrix instant messaging protocol")
|
||||||
|
|
Loading…
Reference in New Issue