gnu: python-pyqt: Substitute the full path of <qprinter.h>.
* gnu/packages/qt.scm (python-pyqt)[phases]: When building python-pyqtwebengine, qprinter.h can not be found. This substitutes the full path of qprinter.h in the qprinter sip specification file.master
parent
353e9f733c
commit
9deae98281
|
@ -1947,6 +1947,17 @@ module provides support functions to the automatically generated code.")
|
||||||
,@%gnu-build-system-modules)
|
,@%gnu-build-system-modules)
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
|
;; When building python-pyqtwebengine, <qprinter.h> can not be
|
||||||
|
;; included. Here we substitute the full path to the header in the
|
||||||
|
;; store.
|
||||||
|
(add-before 'configure 'substitute-source
|
||||||
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
|
(let* ((qtbase (assoc-ref inputs "qtbase"))
|
||||||
|
(qtprinter.h (string-append "\"" qtbase "/include/qt5/QtPrintSupport/qprinter.h\"")))
|
||||||
|
(substitute* "sip/QtPrintSupport/qprinter.sip"
|
||||||
|
(("<qprinter.h>")
|
||||||
|
qtprinter.h))
|
||||||
|
#t)))
|
||||||
(replace 'configure
|
(replace 'configure
|
||||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||||
(let* ((out (assoc-ref outputs "out"))
|
(let* ((out (assoc-ref outputs "out"))
|
||||||
|
|
Reference in New Issue