gnu: setzer: Update to 0.4.8.

* gnu/packages/gnome.scm (setzer): Update to 0.4.8.
[imported-modules, modules]: New arguments.
[phases]{python-and-gi-wrap}: Use search-input-file.
[inputs]: Remove gtksourceview and webkitgtk; add bash-minimal, gtksourceview-4,
python-pexpect, and webkitgtk-with-libsoup2.
[native-inputs]: Remove desktop-file-utils, glib:bin, gobject-introspection,
gtk+:bin, and python-wrapper; add python.
This commit is contained in:
Maxim Cournoyer 2022-09-10 11:44:48 -04:00
parent 70f1fd9aad
commit 6eeb0f4eeb
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -12254,7 +12254,7 @@ (define-public gnome-latex
(define-public setzer (define-public setzer
(package (package
(name "setzer") (name "setzer")
(version "0.4.1") (version "0.4.8")
(source (source
(origin (origin
(method git-fetch) (method git-fetch)
@ -12263,45 +12263,42 @@ (define-public setzer
(commit (string-append "v" version)))) (commit (string-append "v" version))))
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 "1rcx2c07jg1ij81pnvg3px49hfbjmkagn68d3gp79z3gcajbp2av")))) (base32 "12w58v7qsd3xfmrxhij8dby9xnvd82hxqb4wc6di7lqz1ayg5lzc"))))
(build-system meson-build-system) (build-system meson-build-system)
(arguments (arguments
`(#:glib-or-gtk? #t (list
#:phases #:glib-or-gtk? #t
(modify-phases %standard-phases #:imported-modules `(,@%meson-build-system-modules
(add-after 'glib-or-gtk-wrap 'python-and-gi-wrap (guix build python-build-system))
(lambda* (#:key outputs #:allow-other-keys) #:modules '((guix build meson-build-system)
(let ((prog (string-append (assoc-ref outputs "out") ((guix build python-build-system) #:prefix python:)
"/bin/setzer")) (guix build utils))
(pylib (string-append (assoc-ref outputs "out") #:phases
"/lib/python" #~(modify-phases %standard-phases
,(version-major+minor (add-after 'glib-or-gtk-wrap 'python-and-gi-wrap
(package-version python)) (lambda* (#:key inputs outputs #:allow-other-keys)
"/site-packages"))) (wrap-program (search-input-file outputs "bin/setzer")
(wrap-program prog `("GUIX_PYTHONPATH" = (,(getenv "GUIX_PYTHONPATH")
`("GUIX_PYTHONPATH" = (,(getenv "GUIX_PYTHONPATH") ,pylib)) ,(python:site-packages inputs outputs)))
`("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH")))) `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH")))))))))
#t))))))
(native-inputs (native-inputs
`(("desktop-file-utils" ,desktop-file-utils) (list gettext-minimal
("gettext" ,gettext-minimal) python))
("glib:bin" ,glib "bin")
("gobject-introspection" ,gobject-introspection)
("gtk+:bin" ,gtk+ "bin")
("python-wrapper" ,python-wrapper)))
(inputs (inputs
`(("gsettings-desktop-schemas" ,gsettings-desktop-schemas) (list bash-minimal
("gspell" ,gspell) gsettings-desktop-schemas
("gtk+" ,gtk+) gspell
("gtksourceview" ,gtksourceview) gtk+
("pango" ,pango) gtksourceview-4
("poppler" ,poppler) pango
("python-pdfminer" ,python-pdfminer-six) poppler
("python-pycairo" ,python-pycairo) python-pdfminer-six
("python-pygobject" ,python-pygobject) python-pexpect
("python-pyxdg" ,python-pyxdg) python-pycairo
("webkitgtk" ,webkitgtk) python-pygobject
("xdg-utils" ,xdg-utils))) python-pyxdg
webkitgtk-with-libsoup2
xdg-utils))
(home-page "https://www.cvfosammmm.org/setzer/") (home-page "https://www.cvfosammmm.org/setzer/")
(synopsis "LaTeX editor written in Python with GTK+") (synopsis "LaTeX editor written in Python with GTK+")
(description (description