gnu: gaupol: Use pyproject-build-system.

* gnu/packages/video.scm (gauplo)[build-system]: Use pyproject-build-system.
[arguments]: Delete custom 'install phase.
This commit is contained in:
Ricardo Wurmus 2023-05-24 23:57:08 +02:00
parent 0243d5fa1a
commit 86f853c4a3
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -99,6 +99,7 @@ (define-module (gnu packages video)
#:use-module (guix build-system glib-or-gtk)
#:use-module (guix build-system meson)
#:use-module (guix build-system perl)
#:use-module (guix build-system pyproject)
#:use-module (guix build-system python)
#:use-module (guix build-system qt)
#:use-module (guix build-system waf)
@ -5059,7 +5060,7 @@ (define-public gaupol
(sha256
(base32
"01qbhhycmy26b2mw2jlri321k478jhp7y0jzlcv87iaq05qr4pc8"))))
(build-system python-build-system)
(build-system pyproject-build-system)
(native-inputs
(list gettext-minimal pkg-config))
(inputs
@ -5086,13 +5087,6 @@ (define-public gaupol
(substitute* "setup.py"
(("distutils\\.util\\.byte_compile\\(.*")
""))))
;; gaupol's setup.py script does not support one of the Python build
;; system's default flags, "--single-version-externally-managed".
(replace 'install
(lambda* (#:key outputs #:allow-other-keys)
(invoke "python" "setup.py" "install"
(string-append "--prefix=" (assoc-ref outputs "out"))
"--root=/")))
(add-after 'install 'wrap-gaupol
(lambda* (#:key outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out"))