~ruther/guix-local

4ee5d75ff4f78e2c44dd09eab85ed0a213e5c9cf — Nicolas Graves 4 months ago fb5b733
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>
1 files changed, 14 insertions(+), 22 deletions(-)

M gnu/packages/xorg.scm
M gnu/packages/xorg.scm => gnu/packages/xorg.scm +14 -22
@@ 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")