mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: python-pycairo: Switch to meson-build-system.
For some reason, we lost pkg-config files using pyproject. Here the fix is trivial, but this might indicate a bigger issue. * gnu/packages/gtk.scm (python-pycairo) [source]: Switch to git-fetch. [build-system]: Switch to meson. [native-inputs]: Add python. Also remove a trailing lost comment. Change-Id: I3f59ab7b8150ce0b9de1a5b342ccfbb546039ec7 Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
parent
7b411e25ff
commit
05c075b85c
1 changed files with 9 additions and 20 deletions
|
@ -2119,25 +2119,16 @@ printing and other features typical of a source code editor.")
|
||||||
(version "1.26.0")
|
(version "1.26.0")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method git-fetch)
|
||||||
;; TODO: Try to build from git checkout instead GitHub release tarball.
|
(uri (git-reference
|
||||||
(uri (string-append "https://github.com/pygobject/pycairo/releases/download/v"
|
(url "https://github.com/pygobject/pycairo")
|
||||||
version "/pycairo-" version ".tar.gz"))
|
(commit (string-append "v" version))))
|
||||||
(sha256
|
(file-name (git-file-name name version))
|
||||||
(base32
|
(sha256
|
||||||
"1sybz43sj4ynjahlkidrcdpdrq8yi1avkndc2hgb5pgvfjld1p9d"))))
|
(base32 "0pqam2dxmp6b6r0pvarhiw1sp6p5nwlpyl2754aji445q4zcqj81"))))
|
||||||
(build-system pyproject-build-system)
|
(build-system meson-build-system)
|
||||||
(arguments
|
|
||||||
(list
|
|
||||||
;; XXX: Project provides Meson build as well which may simplify the
|
|
||||||
;; packaging.
|
|
||||||
#:phases
|
|
||||||
#~(modify-phases %standard-phases
|
|
||||||
(add-before 'check 'build-extensions
|
|
||||||
(lambda _
|
|
||||||
(invoke "python" "setup.py" "build_ext" "--inplace"))))))
|
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list pkg-config python-pytest python-setuptools))
|
(list pkg-config python python-pytest python-setuptools))
|
||||||
(propagated-inputs ;pycairo.pc references cairo
|
(propagated-inputs ;pycairo.pc references cairo
|
||||||
(list cairo))
|
(list cairo))
|
||||||
(home-page "https://cairographics.org/pycairo/")
|
(home-page "https://cairographics.org/pycairo/")
|
||||||
|
@ -2148,8 +2139,6 @@ printing and other features typical of a source code editor.")
|
||||||
'((upstream-name . "pycairo")))
|
'((upstream-name . "pycairo")))
|
||||||
(license license:lgpl3+)))
|
(license license:lgpl3+)))
|
||||||
|
|
||||||
;; Pycairo no longer supports Python 2 since version 1.19.0, so we stick
|
|
||||||
|
|
||||||
(define-public perl-cairo
|
(define-public perl-cairo
|
||||||
(package
|
(package
|
||||||
(name "perl-cairo")
|
(name "perl-cairo")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue