gnu: colord: Update to 1.4.3.

* gnu/packages/gnome.scm (colord): Update to 1.4.3.
[build-system]: Use meson-build-system.
[arguments]: Add glib-or-gtk? flag; update configure flags; remove phase
"patch-/bin/true"; add phase "patch-build-system".
[native-inputs]: Add glib:bin and gtk-doc.
[inputs]: Add gusb and python-wrapper.
This commit is contained in:
Ricardo Wurmus 2018-12-06 18:39:55 +01:00 committed by Kei Kebreau
parent bf6cb31686
commit a68544a81d
No known key found for this signature in database
GPG Key ID: E6A5EE3C19467A0D
1 changed files with 28 additions and 22 deletions

View File

@ -2992,7 +2992,7 @@ keyboard shortcuts.")
(define-public colord (define-public colord
(package (package
(name "colord") (name "colord")
(version "1.1.8") (version "1.4.3")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
@ -3000,38 +3000,42 @@ keyboard shortcuts.")
name "-" version ".tar.xz")) name "-" version ".tar.xz"))
(sha256 (sha256
(base32 (base32
"01w97rgzk4qi6fp03scq5jyw0ayx11b479p7dkm2r77k84b9agph")))) "1xwxahg9mgmapc16xkb4kgmc40zpadrwav33xqmn6cgaw6g6d3ls"))))
(build-system glib-or-gtk-build-system) (build-system meson-build-system)
(arguments (arguments
'(;; The tests want to run valgrind. Punt for now. '(;; FIXME: One test fails:
;; /colord/icc-store (in lib/colord/colord-self-test-private):
;; Incorrect content type for /tmp/colord-vkve/already-exists.icc, got
;; application/x-zerosize
#:tests? #f #:tests? #f
#:configure-flags (list "--localstatedir=/var" #:glib-or-gtk? #t
;; GUSB not packaged yet. #:configure-flags (list "-Dlocalstatedir=/var"
"--disable-gusb"
;; No dep on systemd. ;; No dep on systemd.
"--disable-systemd-login" "-Dsystemd=false"
;; Wants to install to global completion dir; ;; Wants to install to global completion dir;
;; punt. ;; punt.
"--disable-bash-completion" "-Dbash_completion=false"
;; colord-gtk not packaged yet. ;; colord-gtk not packaged yet.
"--disable-session-example" "-Dsession_example=false"
"--with-daemon-user=colord" "-Ddaemon_user=colord"
"--enable-sane" "-Dsane=true"
(string-append "--with-udevrulesdir=" ;; Requires spotread
(assoc-ref %outputs "out") "-Dargyllcms_sensor=false"
"/lib/udev/rules.d")) ;; TODO: Requires docbook2x
"-Dman=false")
#:phases #:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(add-before 'configure 'patch-/bin/true (add-before 'configure 'patch-build-system
(lambda _ (lambda* (#:key outputs #:allow-other-keys)
(substitute* "configure" (substitute* "rules/meson.build"
(("/bin/true") (which "true"))) (("udev.get_pkgconfig_variable\\('udevdir'\\)")
(substitute* "src/Makefile.in" (string-append "'" (assoc-ref outputs "out") "/lib/udev'")))
(("if test -w \\$\\(DESTDIR\\)\\$\\(prefix\\)/;") #t)))))
"if test -w $(DESTDIR)$(localstatedir);")))))))
(native-inputs (native-inputs
`(("pkg-config" ,pkg-config) `(("pkg-config" ,pkg-config)
("glib:bin" ,glib "bin") ; for glib-compile-resources, etc.
("gobject-introspection" ,gobject-introspection) ("gobject-introspection" ,gobject-introspection)
("gtk-doc" ,gtk-doc)
("libtool" ,libtool) ("libtool" ,libtool)
("intltool" ,intltool))) ("intltool" ,intltool)))
(propagated-inputs (propagated-inputs
@ -3041,10 +3045,12 @@ keyboard shortcuts.")
("lcms" ,lcms))) ("lcms" ,lcms)))
(inputs (inputs
`(("dbus-glib" ,dbus-glib) `(("dbus-glib" ,dbus-glib)
("gusb" ,gusb)
("libgudev" ,libgudev) ("libgudev" ,libgudev)
("libusb" ,libusb) ("libusb" ,libusb)
("sqlite" ,sqlite) ("sqlite" ,sqlite)
("polkit" ,polkit) ("polkit" ,polkit)
("python" ,python-wrapper)
("sane-backends" ,sane-backends))) ("sane-backends" ,sane-backends)))
(home-page "https://www.freedesktop.org/software/colord/") (home-page "https://www.freedesktop.org/software/colord/")
(synopsis "Color management service") (synopsis "Color management service")