[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
199/401: gnu: libdazzle: Update package definition.
From: |
guix-commits |
Subject: |
199/401: gnu: libdazzle: Update package definition. |
Date: |
Tue, 18 Aug 2020 16:21:30 -0400 (EDT) |
dannym pushed a commit to branch wip-desktop
in repository guix.
commit fc950e161bd9070cbf17b5921d3f8f330e130247
Author: Raghav Gururajan <raghavgururajan@disroot.org>
AuthorDate: Sat Jul 25 22:46:42 2020 -0400
gnu: libdazzle: Update package definition.
* gnu/packages/gnome.scm (libdazzle) [version]: Update to 3.36.0.
[source]<origin>[sha256]: Modify base32.
[outputs]: New outputs "tools" and "doc".
[arguments]<#:glib-or-gtk?>: New argument.
<#:configure-flags>[-Denable_rdtscp]: New flag.
[-Denable_gtk_doc]: New flag.
<#:phases>['patch-docbook-xml]: New phase.
['pre-check]: Modify phase.
['move-doc]: New phase.
['move-tools]: New phase.
[native-inputs]: Add docbook-xml, gettext-minimal, gobject-introspection,
gtk-doc, vala and libxml2.
[inputs]: Remove gtk+, gobject-introspection and vala.
[propagated-inputs]: Add gtk+.
[synopsis]: Modify.
[description]: Modify.
Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org>
---
gnu/packages/gnome.scm | 85 ++++++++++++++++++++++++++++++++++++--------------
1 file changed, 61 insertions(+), 24 deletions(-)
diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index ba5e28a..c10aed3 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -11159,42 +11159,79 @@ hexadecimal or ASCII. It is useful for editing
binary files in general.")
(define-public libdazzle
(package
(name "libdazzle")
- (version "3.34.1")
- (source (origin
- (method url-fetch)
- (uri (string-append "mirror://gnome/sources/libdazzle/"
- (version-major+minor version) "/"
- "libdazzle-" version ".tar.xz"))
- (sha256
- (base32
- "01cmcrd75b7ns7j2b4p6h7pv68vjhkcl9zbvzzx7pf4vknxir61x"))))
+ (version "3.36.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri
+ (string-append "mirror://gnome/sources/libdazzle/"
+ (version-major+minor version) "/"
+ "libdazzle-" version ".tar.xz"))
+ (sha256
+ (base32 "0n6r16a07in82cnzw91vl675pbjzbvazkxwbqxq2kihganzipcw2"))))
(build-system meson-build-system)
+ (outputs '("out" "tools" "doc"))
(arguments
- `(#:phases
+ `(#:glib-or-gtk? #t ; To wrap binaries and/or compile schemas
+ #:configure-flags
+ (list
+ "-Denable_rdtscp=true"
+ "-Denable_gtk_doc=true")
+ #:phases
(modify-phases %standard-phases
+ (add-after 'unpack 'patch-docbook-xml
+ (lambda* (#:key inputs #:allow-other-keys)
+ (with-directory-excursion "doc"
+ (substitute* "dazzle-docs.sgml"
+ (("http://www.oasis-open.org/docbook/xml/4.3/")
+ (string-append (assoc-ref inputs "docbook-xml")
+ "/xml/dtd/docbook/"))))
+ #t))
(add-before 'check 'pre-check
(lambda _
;; Tests require a running X server.
- (system "Xvfb :1 &")
+ (system "Xvfb :1 +extension GLX &")
(setenv "DISPLAY" ":1")
- #t)))))
+ #t))
+ (add-after 'install 'move-doc
+ (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/gtk-doc")
+ (string-append doc "/share/gtk-doc"))
+ #t)))
+ (add-after 'move-doc 'move-tools
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (tools (assoc-ref outputs "tools")))
+ (mkdir-p (string-append tools "/bin"))
+ (rename-file
+ (string-append out "/bin")
+ (string-append tools "/bin"))
+ #t))))))
(native-inputs
- `(("glib" ,glib "bin") ; glib-compile-resources
+ `(("docbook-xml" ,docbook-xml-4.3)
+ ("gettext" ,gettext-minimal)
+ ("glib" ,glib "bin")
+ ("gobject-introspection" ,gobject-introspection)
+ ("gtk-doc" ,gtk-doc)
("pkg-config" ,pkg-config)
- ;; For tests.
+ ("vapigen" ,vala)
+ ("xmllint" ,libxml2)
("xorg-server" ,xorg-server-for-tests)))
(inputs
- `(("glib" ,glib)
- ("gobject-introspection" ,gobject-introspection)
- ("gtk+" ,gtk+)
- ("vala" ,vala)))
- (home-page "https://gitlab.gnome.org/GNOME/libdazzle")
+ `(("glib" ,glib)))
+ (propagated-inputs
+ `(("gtk+" ,gtk+)))
(synopsis "Companion library to GObject and Gtk+")
- (description "The libdazzle library is a companion library to GObject and
-Gtk+. It provides various features that the authors wish were in the
-underlying library but cannot for various reasons. In most cases, they are
-wildly out of scope for those libraries. In other cases, they are not quite
-generic enough to work for everyone.")
+ (description "LibDazzle is a companion library to GObject and Gtk+. It
+provides various features that the authors wish were in the underlying library
+but cannot for various reasons. In most cases, they are wildly out of scope
for
+those libraries. In other cases, they are not quite generic enough to work for
+everyone.")
+ (home-page "https://gitlab.gnome.org/GNOME/libdazzle")
(license license:gpl3+)))
(define-public evolution
- 234/401: gnu: tracker-miners: Update package definition., (continued)
- 234/401: gnu: tracker-miners: Update package definition., guix-commits, 2020/08/18
- 242/401: gnu: file-roller: Update package definition., guix-commits, 2020/08/18
- 248/401: gnu: gnome-calendar: Update package definition., guix-commits, 2020/08/18
- 250/401: gnu: gnome-clocks: Update package definition., guix-commits, 2020/08/18
- 251/401: gnu: gnome-color-manager: Update package definition., guix-commits, 2020/08/18
- 254/401: gnu: gmime: Fix home-page., guix-commits, 2020/08/18
- 262/401: gnu: rust-string-cache-codegen: Remove duplicate definition., guix-commits, 2020/08/18
- 273/401: gnu: rust-xml5ever: Remove duplicate definition., guix-commits, 2020/08/18
- 181/401: gnu: gobject-introspection: Add patches back., guix-commits, 2020/08/18
- 192/401: gnu: gsound: Update package definition., guix-commits, 2020/08/18
- 199/401: gnu: libdazzle: Update package definition.,
guix-commits <=
- 221/401: gnu: appstream-glib: Fix tests., guix-commits, 2020/08/18
- 238/401: gnu: eog: Update package definition., guix-commits, 2020/08/18
- 249/401: gnu: gnome-characters: Update package definition., guix-commits, 2020/08/18
- 255/401: gnu: gnome-boxes: Fix home-page., guix-commits, 2020/08/18
- 258/401: gnu: rust-derive-more: Remove duplicate definition., guix-commits, 2020/08/18
- 259/401: gnu: rust-pin-project-internal@0.4.22: Fix reference to rust-proc-macro2., guix-commits, 2020/08/18
- 268/401: gnu: rust-cssparser-macros: Move definition., guix-commits, 2020/08/18
- 270/401: gnu: rust-serial-test: Remove duplicate definition., guix-commits, 2020/08/18
- 278/401: gnu: librsvg: Remove duplicate "delete-file-recursively" call., guix-commits, 2020/08/18
- 281/401: gnu: gnome-font-viewer: Update package definition., guix-commits, 2020/08/18