gnu: python2-pygtk: fix path to pygobject-codegen-2.0
* gnu/packages/gtk.scm (python2-pygtk)[arguments]: Add phase to patch the path to the pygobject-codegen-2.0 executable.master
parent
32158110b0
commit
cb4d3d863b
|
@ -752,20 +752,28 @@ extensive documentation, including API reference and a tutorial.")
|
||||||
(arguments
|
(arguments
|
||||||
`(#:tests? #f
|
`(#:tests? #f
|
||||||
#:phases (alist-cons-after
|
#:phases (alist-cons-after
|
||||||
'install 'install-pth
|
'configure 'fix-codegen
|
||||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
;; pygtk's modules are stored in a subdirectory of python's
|
(substitute* "pygtk-codegen-2.0"
|
||||||
;; site-packages directory. Add a .pth file so that python
|
(("^prefix=.*$")
|
||||||
;; will add that subdirectory to its module search path.
|
(string-append
|
||||||
(let* ((out (assoc-ref outputs "out"))
|
"prefix="
|
||||||
(site (string-append out "/lib/python"
|
(assoc-ref inputs "python-pygobject") "\n"))))
|
||||||
,(version-major+minor
|
(alist-cons-after
|
||||||
(package-version python-2))
|
'install 'install-pth
|
||||||
"/site-packages")))
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||||
(call-with-output-file (string-append site "/pygtk.pth")
|
;; pygtk's modules are stored in a subdirectory of python's
|
||||||
(lambda (port)
|
;; site-packages directory. Add a .pth file so that python
|
||||||
(format port "gtk-2.0~%")))))
|
;; will add that subdirectory to its module search path.
|
||||||
%standard-phases)))
|
(let* ((out (assoc-ref outputs "out"))
|
||||||
|
(site (string-append out "/lib/python"
|
||||||
|
,(version-major+minor
|
||||||
|
(package-version python-2))
|
||||||
|
"/site-packages")))
|
||||||
|
(call-with-output-file (string-append site "/pygtk.pth")
|
||||||
|
(lambda (port)
|
||||||
|
(format port "gtk-2.0~%")))))
|
||||||
|
%standard-phases))))
|
||||||
(home-page "http://www.pygtk.org/")
|
(home-page "http://www.pygtk.org/")
|
||||||
(synopsis "Python bindings for GTK+")
|
(synopsis "Python bindings for GTK+")
|
||||||
(description
|
(description
|
||||||
|
|
Reference in New Issue