gnu: python-pyqt-5.5: Use non-inherited "configure" phase.
This allows passing different options for 5.5 than for the main version (which is currently 5.6). * gnu/packages.qt.scm (python-pyqt-5.5, python2-pyqt-5.5)[arguments]: Copy from (python-pyqt)[arguments].
This commit is contained in:
parent
9fde877856
commit
931eaeaad9
|
@ -1054,6 +1054,36 @@ contain over 620 classes.")
|
||||||
(base32
|
(base32
|
||||||
"056qmkv02wdcfblqdaxiswrgn4wa88sz22i1x58dpb1iniavplfd"))
|
"056qmkv02wdcfblqdaxiswrgn4wa88sz22i1x58dpb1iniavplfd"))
|
||||||
(patches (search-patches "pyqt-configure.patch"))))
|
(patches (search-patches "pyqt-configure.patch"))))
|
||||||
|
(arguments
|
||||||
|
`(#:modules ((srfi srfi-1)
|
||||||
|
,@%gnu-build-system-modules)
|
||||||
|
#:phases
|
||||||
|
(modify-phases %standard-phases
|
||||||
|
(replace 'configure
|
||||||
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||||
|
(let* ((out (assoc-ref outputs "out"))
|
||||||
|
(bin (string-append out "/bin"))
|
||||||
|
(sip (string-append out "/share/sip"))
|
||||||
|
(plugins (string-append out "/plugins"))
|
||||||
|
(designer (string-append plugins "/designer"))
|
||||||
|
(qml (string-append plugins "/PyQt5"))
|
||||||
|
(python (assoc-ref inputs "python"))
|
||||||
|
(python-version
|
||||||
|
(last (string-split python #\-)))
|
||||||
|
(python-major+minor
|
||||||
|
(string-join
|
||||||
|
(take (string-split python-version #\.) 2)
|
||||||
|
"."))
|
||||||
|
(lib (string-append out "/lib/python"
|
||||||
|
python-major+minor
|
||||||
|
"/site-packages")))
|
||||||
|
(zero? (system* "python" "configure.py"
|
||||||
|
"--confirm-license"
|
||||||
|
"--bindir" bin
|
||||||
|
"--destdir" lib
|
||||||
|
"--designer-plugindir" designer
|
||||||
|
"--qml-plugindir" qml
|
||||||
|
"--sipdir" sip))))))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("python-sip" ,python-sip)
|
`(("python-sip" ,python-sip)
|
||||||
("qt" ,qt)))))
|
("qt" ,qt)))))
|
||||||
|
|
Loading…
Reference in New Issue