gnu: gtkwave: Update to 3.4.0-0.bb978d9.

* gnu/packages/fpga.scm (gtkwave): Update to 3.4.0-0.bb978d9.
[source]: Switch to git-fetch, new uri.
[version]: Switch to branch master, version 3.4.
[build-system]: Switch to meson-build-system.
[arguments]: New field.
[native-inputs]: Add desktop-file-utils, flex, glib:bin, gobject-introspection
and gtk:bin.
[inputs]: Add gtk and libfst.  Remove gtk+:bin.
[description]: Prefer @acronym to @dfn.
[homepage]: Update URL.

Change-Id: I38aabca14c2789ad7b3bc304b7018644dc6d0fa6
Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Modified-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
This commit is contained in:
Cayetano Santos 2025-04-29 16:10:40 +02:00 committed by Maxim Cournoyer
parent c833e40922
commit d6d03854b5
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -57,6 +57,7 @@
#:use-module (gnu packages cpp) #:use-module (gnu packages cpp)
#:use-module (gnu packages elf) #:use-module (gnu packages elf)
#:use-module (gnu packages flex) #:use-module (gnu packages flex)
#:use-module (gnu packages freedesktop)
#:use-module (gnu packages gawk) #:use-module (gnu packages gawk)
#:use-module (gnu packages gdb) #:use-module (gnu packages gdb)
#:use-module (gnu packages gettext) #:use-module (gnu packages gettext)
@ -479,39 +480,40 @@ files.")
(deprecated-package "nextpnr-ice40" nextpnr)) (deprecated-package "nextpnr-ice40" nextpnr))
(define-public gtkwave (define-public gtkwave
;; The last release is more than 2 years old, and there are improvements in
;; the master branch, such as GTK 4 support: pick the latest commit that
;; passes their CI.
(let ((commit "bb978d9d667d569b9153ffa34007e300302907dc")
(revision "0"))
(package (package
(name "gtkwave") (name "gtkwave")
(version "3.3.121") ;; The version string can be found in meson.build.
(version (git-version "3.4.0" revision commit))
(source (source
(origin (origin
(method url-fetch) (method git-fetch)
(uri (list (string-append "mirror://sourceforge/gtkwave/" (uri (git-reference
"gtkwave-gtk3-" version "/" (url "https://github.com/gtkwave/gtkwave")
"gtkwave-gtk3-" version ".tar.gz") (commit commit)))
(string-append "https://gtkwave.sourceforge.net/" (file-name (git-file-name name version))
"gtkwave-" version ".tar.gz")))
(sha256 (sha256
(base32 "0ikk49zyar5aiq7pg9whi4nfzq7xm8sz7bn3b6vaylkdimw4bajl")))) (base32 "1nv27cpz5937cb6bkhpw8w0ji6hm9xr8f0znvfwzfl1fwwypf23y"))))
(build-system glib-or-gtk-build-system) (build-system meson-build-system)
(native-inputs (arguments (list #:glib-or-gtk? #t))
(list gperf pkg-config)) (native-inputs (list desktop-file-utils
(inputs flex
(list gtk+ tcl tk)) `(,glib "bin") ;for glib-mkenums
(arguments gobject-introspection
(list #:configure-flags gperf
#~(list "--enable-gtk3" `(,gtk "bin")
(string-append "--with-tcl=" pkg-config))
(assoc-ref %build-inputs "tcl") (inputs (list gtk gtk+ libfst))
"/lib")
(string-append "--with-tk="
(assoc-ref %build-inputs "tk")
"/lib"))))
(synopsis "Waveform viewer for FPGA simulator trace files") (synopsis "Waveform viewer for FPGA simulator trace files")
(description "This package is a waveform viewer for FPGA (description "This package is a waveform viewer for @acronym{FST, FPGA
simulator trace files (@dfn{FST}).") Simulator Trace} files.")
(home-page "https://gtkwave.sourceforge.net/") (home-page "https://github.com/gtkwave/gtkwave")
;; Exception against free government use in tcl_np.c and tcl_np.h. ;; Exception against free government use in tcl_np.c and tcl_np.h.
(license (list license:gpl2+ license:expat license:tcl/tk)))) (license (list license:gpl2+ license:expat license:tcl/tk)))))
(define-public python-migen (define-public python-migen
;; XXX: The latest version tag (0.9.2) was placed in 2019, there are latest ;; XXX: The latest version tag (0.9.2) was placed in 2019, there are latest