gnu: python-sip: Use 'modify-phases'.
* gnu/packages/qt.scm (python-sip)[arguments]: Use 'modify-phases'.
This commit is contained in:
parent
8fa7f8d907
commit
39766868a5
|
@ -476,29 +476,28 @@ while JSON objects are mapped to QVariantMap.")
|
||||||
#:modules ((srfi srfi-1)
|
#:modules ((srfi srfi-1)
|
||||||
,@%gnu-build-system-modules)
|
,@%gnu-build-system-modules)
|
||||||
#:phases
|
#:phases
|
||||||
(alist-replace
|
(modify-phases %standard-phases
|
||||||
'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"))
|
||||||
(bin (string-append out "/bin"))
|
(bin (string-append out "/bin"))
|
||||||
(include (string-append out "/include"))
|
(include (string-append out "/include"))
|
||||||
(python (assoc-ref inputs "python"))
|
(python (assoc-ref inputs "python"))
|
||||||
(python-version
|
(python-version
|
||||||
(last (string-split python #\-)))
|
(last (string-split python #\-)))
|
||||||
(python-major+minor
|
(python-major+minor
|
||||||
(string-join
|
(string-join
|
||||||
(take (string-split python-version #\.) 2)
|
(take (string-split python-version #\.) 2)
|
||||||
"."))
|
"."))
|
||||||
(lib (string-append out "/lib/python"
|
(lib (string-append out "/lib/python"
|
||||||
python-major+minor
|
python-major+minor
|
||||||
"/site-packages")))
|
"/site-packages")))
|
||||||
(zero?
|
(zero?
|
||||||
(system* "python" "configure.py"
|
(system* "python" "configure.py"
|
||||||
"--bindir" bin
|
"--bindir" bin
|
||||||
"--destdir" lib
|
"--destdir" lib
|
||||||
"--incdir" include))))
|
"--incdir" include))))))))
|
||||||
%standard-phases)))
|
(home-page "https://www.riverbankcomputing.com/software/sip/intro")
|
||||||
(home-page "http://www.riverbankcomputing.com/software/sip/intro")
|
|
||||||
(synopsis "Python binding creator for C and C++ libraries")
|
(synopsis "Python binding creator for C and C++ libraries")
|
||||||
(description
|
(description
|
||||||
"SIP is a tool to create Python bindings for C and C++ libraries. It
|
"SIP is a tool to create Python bindings for C and C++ libraries. It
|
||||||
|
|
Loading…
Reference in New Issue