gnu: Remove python2-pygtk.
* gnu/packages/gtk.scm (python2-pygtk): Delete variable.
This commit is contained in:
parent
ed3c97f53e
commit
1c09ed3721
@ -1940,76 +1940,6 @@ printing and other features typical of a source code editor.")
|
|||||||
;; Dual-licensed under LGPL 2.1 or Mozilla Public License 1.1
|
;; Dual-licensed under LGPL 2.1 or Mozilla Public License 1.1
|
||||||
(license (list license:lgpl2.1 license:mpl1.1)))))
|
(license (list license:lgpl2.1 license:mpl1.1)))))
|
||||||
|
|
||||||
(define-public python2-pygtk
|
|
||||||
(package
|
|
||||||
(name "python2-pygtk")
|
|
||||||
(version "2.24.0")
|
|
||||||
(source
|
|
||||||
(origin
|
|
||||||
(method url-fetch)
|
|
||||||
(uri (string-append "mirror://gnome/sources"
|
|
||||||
"/pygtk/" (version-major+minor version)
|
|
||||||
"/pygtk-" version ".tar.bz2"))
|
|
||||||
(sha256
|
|
||||||
(base32
|
|
||||||
"04k942gn8vl95kwf0qskkv6npclfm31d78ljkrkgyqxxcni1w76d"))))
|
|
||||||
(build-system gnu-build-system)
|
|
||||||
(outputs '("out"
|
|
||||||
"doc")) ;13 MiB of gtk-doc HTML
|
|
||||||
(native-inputs
|
|
||||||
(list pkg-config))
|
|
||||||
(inputs
|
|
||||||
`(("python" ,python-2)
|
|
||||||
|
|
||||||
;; XXX: The package fails to build with the latest Pango (propagated
|
|
||||||
;; from GTK+2), so we provide it with this older version.
|
|
||||||
("pango" ,pango-1.42)
|
|
||||||
|
|
||||||
("libglade" ,libglade)
|
|
||||||
("glib" ,glib)))
|
|
||||||
(propagated-inputs
|
|
||||||
`(("python-pycairo" ,python2-pycairo) ;loaded at runtime
|
|
||||||
("python-pygobject" ,python2-pygobject-2) ;referenced in pc file
|
|
||||||
("gtk+" ,gtk+-2)))
|
|
||||||
(arguments
|
|
||||||
`(#:tests? #f
|
|
||||||
#:phases (modify-phases %standard-phases
|
|
||||||
(add-before 'configure 'set-gtk-doc-directory
|
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
|
||||||
;; Install documentation to "doc".
|
|
||||||
(let ((doc (assoc-ref outputs "doc")))
|
|
||||||
(substitute* "docs/Makefile.in"
|
|
||||||
(("TARGET_DIR = \\$\\(datadir\\)")
|
|
||||||
(string-append "TARGET_DIR = " doc))))))
|
|
||||||
(add-after 'configure 'fix-codegen
|
|
||||||
(lambda* (#:key inputs #:allow-other-keys)
|
|
||||||
(substitute* "pygtk-codegen-2.0"
|
|
||||||
(("^prefix=.*$")
|
|
||||||
(string-append
|
|
||||||
"prefix="
|
|
||||||
(assoc-ref inputs "python-pygobject") "\n")))))
|
|
||||||
(add-after 'install 'install-pth
|
|
||||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
|
||||||
;; pygtk's modules are stored in a subdirectory of
|
|
||||||
;; python's site-packages directory. Add a .pth file so
|
|
||||||
;; that python will add that subdirectory to its module
|
|
||||||
;; search path.
|
|
||||||
(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~%")))))))))
|
|
||||||
(home-page "http://www.pygtk.org/")
|
|
||||||
(synopsis "Python bindings for GTK+")
|
|
||||||
(description
|
|
||||||
"PyGTK allows you to write full featured GTK programs in Python. It is
|
|
||||||
targeted at GTK 2.x, and can be used in conjunction with gnome-python to
|
|
||||||
write GNOME applications.")
|
|
||||||
(license license:lgpl2.1+)))
|
|
||||||
|
|
||||||
(define-public perl-cairo
|
(define-public perl-cairo
|
||||||
(package
|
(package
|
||||||
(name "perl-cairo")
|
(name "perl-cairo")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user