diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2026-01-05 00:20:00 +0100 |
|---|---|---|
| committer | Rutherther <rutherther@ditigal.xyz> | 2026-01-25 21:22:46 +0100 |
| commit | 4ee5d75ff4f78e2c44dd09eab85ed0a213e5c9cf (patch) | |
| tree | 5b794ab3c29de0f15540a457de6ebb0d50250ebe | |
| parent | fb5b733fa4d03c01e512181a8e168e966f390a41 (diff) | |
gnu: xpra: Switch to pyproject.
* gnu/packages/xorg.scm (xpra):
[build-system]: Switch to pyproject-build-system.
[arguments]<#:configure-flags>: Migrate them.
<#:modules>: Drop them.
<#:phases>: Drop phase 'build.
[native-inputs]: Add python-setuptools.
Change-Id: Ie712c67991d1e4c399d65e0243f6161d9cb28492
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Signed-off-by: Rutherther <rutherther@ditigal.xyz>
| -rw-r--r-- | gnu/packages/xorg.scm | 36 |
1 files changed, 14 insertions, 22 deletions
diff --git a/gnu/packages/xorg.scm b/gnu/packages/xorg.scm index 5b1fae79bd5..6c476f72869 100644 --- a/gnu/packages/xorg.scm +++ b/gnu/packages/xorg.scm @@ -6525,14 +6525,14 @@ basic eye-candy effects.") (origin (method git-fetch) (uri (git-reference - (url "https://github.com/Xpra-org/xpra.git") - (commit (string-append "v" version)))) + (url "https://github.com/Xpra-org/xpra.git") + (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 "0lrhj1xipgx839bvjwp2mbxf72c1c5g3y66vcaqs0zzk50zvyxwi")) (patches (search-patches "xpra-6.0-systemd-run.patch" "xpra-6.1-install_libs.patch")))) - (build-system python-build-system) + (build-system pyproject-build-system) (inputs (list bash-minimal ; for wrap-program ;; Essential dependencies. @@ -6572,27 +6572,19 @@ basic eye-candy effects.") python-lz4 ; Faster compression than zlib. python-netifaces python-pycups)) - (native-inputs (list pkg-config pandoc python-cython)) + (native-inputs (list pkg-config pandoc python-cython python-setuptools)) (arguments (list - #:configure-flags #~(list "--without-Xdummy" - "--without-Xdummy_wrapper" - "--with-opengl" - "--without-debug" - "--without-strict") ; Ignore compiler warnings. - #:modules '((guix build python-build-system) - (guix build utils)) - ;; Do not run test-cases. This would rebuild all modules and they seem - ;; to require python2. + #:configure-flags + #~'(("--without-Xdummy" . "") + ("--without-Xdummy_wrapper" . "") + ("--with-opengl" . "") + ("--without-debug" . "") + ("--without-strict" . "")) ; Ignore compiler warnings. + ;; Do not run test-cases as they seem to require python2. #:tests? #f #:phases #~(modify-phases %standard-phases - ;; Must pass the same flags as 'install, otherwise enabled modules may - ;; not be built. - (replace 'build - (lambda* (#:key configure-flags #:allow-other-keys) - (apply invoke (append (list "python" "setup.py" "build") - configure-flags)))) (add-before 'install 'fix-paths (lambda* (#:key inputs #:allow-other-keys) ;; Fix binary paths. @@ -6636,10 +6628,10 @@ basic eye-candy effects.") (("socket-dir.*: \"\",") "socket-dir\" : \"~/.xpra\",")))) ;; GTK3 will not be found, if GI can’t find its typelibs. - (add-after 'install 'wrap-program - (lambda* (#:key outputs #:allow-other-keys) + (add-after 'wrap 'wrap-program + (lambda _ ;; XXX: only export typelibs in inputs - (wrap-program (search-input-file outputs "bin/xpra") + (wrap-program (string-append #$output "/bin/xpra") `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH"))))))))) (home-page "https://www.xpra.org/") (synopsis "Remote access to individual applications or full desktops") |
