gnu: gtkmm: Update to 3.24.4.

* gnu/packages/gtk.scm (gtkmm)[version]: Update to 3.24.4.
[build-system]: Change from gnu to glib-or-gtk.
[outputs]: New output "doc".
[arguments]<#:phases>['start-xvfb]: Remove phase.
['pre-check]: New phase.
['move-doc]: New phase.
[native-inputs]: Add graphviz, doxygen, m4, mm-common, perl and
libxslt.
[synopsis]: Modify.
[description]: Modify.
[license]: Add gpl2+.

Signed-off-by: Léo Le Bouter <lle-bout@zaclys.net>
This commit is contained in:
Raghav Gururajan 2021-03-26 11:03:36 -04:00
parent c2f50f7458
commit d893a1ea3d
No known key found for this signature in database
GPG key ID: 45A8B1E86BCD10A6

View file

@ -1591,49 +1591,67 @@ (define-public atkmm-2.28
(define-public gtkmm (define-public gtkmm
(package (package
(name "gtkmm") (name "gtkmm")
(version "3.24.2") (version "3.24.4")
(source (origin (source
(method url-fetch) (origin
(uri (string-append "mirror://gnome/sources/" name "/" (method url-fetch)
(version-major+minor version) "/" (uri
name "-" version ".tar.xz")) (string-append "mirror://gnome/sources/" name "/"
(sha256 (version-major+minor version) "/"
(base32 name "-" version ".tar.xz"))
"1hxdnhavjyvbcpxhd5z17l9fj4182028s66lc0s16qqqrldhjwbd")))) (sha256
(build-system gnu-build-system) (base32 "0hv7pviln4cpjvpz7m7ga5krcsbibqzixdcn0dwzpz0cx71p3swv"))))
(native-inputs `(("pkg-config" ,pkg-config) (build-system glib-or-gtk-build-system)
("glib" ,glib "bin") ;for 'glib-compile-resources' (outputs '("out" "doc"))
("xorg-server" ,xorg-server-for-tests)))
(propagated-inputs
`(("pangomm" ,pangomm)
("cairomm" ,cairomm)
("atkmm" ,atkmm)
("gtk+" ,gtk+)
("glibmm" ,glibmm)))
(arguments (arguments
`(#:disallowed-references (,xorg-server-for-tests) `(#:phases
#:phases (modify-phases %standard-phases (modify-phases %standard-phases
(add-before 'check 'run-xvfb (add-before 'check 'pre-check
(lambda* (#:key inputs #:allow-other-keys) (lambda _
(let ((xorg-server (assoc-ref inputs "xorg-server"))) ;; Tests require a running X server.
;; Tests such as 'object_move/test' require a running (system "Xvfb :1 +extension GLX &")
;; X server. (setenv "DISPLAY" ":1")
(system (string-append xorg-server "/bin/Xvfb :1 &")) ;; For missing '/etc/machine-id'.
(setenv "DISPLAY" ":1") (setenv "DBUS_FATAL_WARNINGS" "0")
;; Don't fail because of the missing /etc/machine-id. #t))
(setenv "DBUS_FATAL_WARNINGS" "0") (add-after 'install 'move-doc
#t)))))) (lambda* (#:key outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))
(doc (assoc-ref outputs "doc")))
(mkdir-p (string-append doc "/share"))
(rename-file
(string-append out "/share/doc")
(string-append doc "/share/doc"))
#t))))))
(native-inputs
`(("dot" ,graphviz)
("doxygen" ,doxygen)
("m4" ,m4)
("mm-common" ,mm-common)
("perl" ,perl)
("pkg-config" ,pkg-config)
("xsltproc" ,libxslt)
("xorg-server" ,xorg-server-for-tests)))
(propagated-inputs
`(("atkmm" ,atkmm)
("cairomm" ,cairomm)
("glibmm" ,glibmm)
("gtk+" ,gtk+)
("pangomm" ,pangomm)))
(synopsis "C++ Interfaces for GTK+ and GNOME")
(description "GTKmm is the official C++ interface for the popular GUI
library GTK+. Highlights include typesafe callbacks, and a comprehensive set of
widgets that are easily extensible via inheritance. You can create user
interfaces either in code or with the Glade User Interface designer, using
libglademm. There's extensive documentation, including API reference and a
tutorial.")
(home-page "https://gtkmm.org/") (home-page "https://gtkmm.org/")
(synopsis (license
"C++ interface to the GTK+ graphical user interface library") (list
(description ;; Library
"gtkmm is the official C++ interface for the popular GUI library GTK+. license:lgpl2.1+
Highlights include typesafe callbacks, and a comprehensive set of widgets that ;; Tools
are easily extensible via inheritance. You can create user interfaces either license:gpl2+))))
in code or with the Glade User Interface designer, using libglademm. There's
extensive documentation, including API reference and a tutorial.")
(license license:lgpl2.1+)))
(define-public gtkmm-2 (define-public gtkmm-2
(package (inherit gtkmm) (package (inherit gtkmm)