Archived
1
0
Fork 0

gnu: d-feet: Update to 0.3.16.

* gnu/packages/gnome.scm (d-feet): Update to 0.3.16.
[build-system]: Use meson-build-system.
[out-of-source?]: Remove argument.
[glib-or-gtk?]: New argument.
[phases]{pre-check}: Do not ignore any error.  Do not set DBUS_FATAL_WARNINGS.
{wrap-program}: Us search-input-file.
[native-inputs]: Remove labels.  Add glib:bin.
[inputs]: Remove hicolor-icon-theme.
This commit is contained in:
Maxim Cournoyer 2022-09-09 14:44:08 -04:00
parent fb87250b1e
commit 6c2454f282
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -7114,7 +7114,7 @@ principles are simplicity and standards compliance.")
(define-public d-feet (define-public d-feet
(package (package
(name "d-feet") (name "d-feet")
(version "0.3.14") (version "0.3.16")
(source (origin (source (origin
(method url-fetch) (method url-fetch)
(uri (string-append "mirror://gnome/sources/" name "/" (uri (string-append "mirror://gnome/sources/" name "/"
@ -7122,47 +7122,39 @@ principles are simplicity and standards compliance.")
name "-" version ".tar.xz")) name "-" version ".tar.xz"))
(sha256 (sha256
(base32 (base32
"1m8lwiwl5jhi0x7y6x5zmd3hjplgvdjrb8a8jg74rvkygslj1p7f")))) "1jqw5ndpgyb0zxh0g21ai1911lfrm56vz18xbccfqm4sk95wwcw7"))))
(build-system glib-or-gtk-build-system) (build-system meson-build-system)
(arguments (arguments
'(#:out-of-source? #f ; tests need to run in the source directory. (list
#:phases #:glib-or-gtk? #t
(modify-phases %standard-phases #:phases
(add-before #~(modify-phases %standard-phases
'check 'pre-check (add-before 'check 'pre-check
(lambda _ (lambda _
;; The test suite requires a running X server. ;; The test suite requires a running X server.
(system "Xvfb :1 &") (system "Xvfb :1 &")
(setenv "DISPLAY" ":1") (setenv "DISPLAY" ":1")))
;; Don't fail on missing '/etc/machine-id'. (add-before 'install 'disable-gtk-update-icon-cache
(setenv "DBUS_FATAL_WARNINGS" "0") (lambda _
;; tests.py and window.py don't meet E402: (setenv "DESTDIR" "/")))
;; E402 module level import not at top of file (add-after 'install 'wrap-program
(substitute* "src/tests/Makefile" (lambda* (#:key outputs #:allow-other-keys)
(("--ignore=E123") "--ignore=E123,E402")) (wrap-program (search-input-file outputs "bin/d-feet")
#t))
(add-after
'install 'wrap-program
(lambda* (#:key outputs #:allow-other-keys)
(let ((prog (string-append (assoc-ref outputs "out")
"/bin/d-feet")))
(wrap-program prog
`("GUIX_PYTHONPATH" = (,(getenv "GUIX_PYTHONPATH"))) `("GUIX_PYTHONPATH" = (,(getenv "GUIX_PYTHONPATH")))
`("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH")))) `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH")))))))))
#t))))))
(native-inputs (native-inputs
`(("intltool" ,intltool) (list `(,glib "bin")
("itstool" ,itstool) intltool
("pkg-config" ,pkg-config) itstool
("python-pep8" ,python-pep8) libxml2
("xmllint" ,libxml2) pkg-config
("xorg-server" ,xorg-server-for-tests))) python-pep8
xorg-server-for-tests))
(inputs (inputs
`(("gobject-introspection" ,gobject-introspection) (list gobject-introspection
("gtk+" ,gtk+) gtk+
("python" ,python-wrapper) python-wrapper
("hicolor-icon-theme" ,hicolor-icon-theme) python-pygobject))
("python-pygobject" ,python-pygobject)))
(home-page "https://wiki.gnome.org/Apps/DFeet") (home-page "https://wiki.gnome.org/Apps/DFeet")
(synopsis "D-Bus debugger") (synopsis "D-Bus debugger")
(description (description