gnu: qoauth: Fix build failure.

Fixes <https://bugs.gnu.org/45031>.
Reported by Distopico <distopico@riseup.net>.

* gnu/packages/web.scm (qoauth)[arguments]: Add phase
'adjust-mkspecs-directory'.
This commit is contained in:
Marius Bakke 2020-12-08 00:28:06 +01:00
parent 63be1a7dae
commit 627b70e3ac
No known key found for this signature in database
GPG key ID: A2A06DF2A33A54FA

View file

@ -1071,6 +1071,14 @@ (define-public qoauth
(substitute* "src/src.pro"
(("/lib64") "/lib"))
#t))
(add-after 'unpack 'adjust-mkspecs-directory
(lambda* (#:key outputs #:allow-other-keys)
(substitute* "src/src.pro"
;; Do not attempt to install the .prf file into qtbase
;; "lib/mkspecs/features", ref <https://bugs.gnu.org/45301>.
(("\\$\\$\\[QMAKE_MKSPECS\\]")
(string-append (assoc-ref outputs "out") "/lib/qt5/mkspecs")))
#t))
(delete 'configure) ; no configure script
(delete 'check) ; no test target
(add-before 'build 'qmake