[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
199/277: gnu: libdazzle: Update package definition.
From: |
guix-commits |
Subject: |
199/277: gnu: libdazzle: Update package definition. |
Date: |
Thu, 6 Aug 2020 17:03:35 -0400 (EDT) |
dannym pushed a commit to branch wip-desktop
in repository guix.
commit 57a0a60356dda106ccf0462a30b226c830417d78
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 1edba60..03e4b55 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -11156,42 +11156,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
- 266/277: gnu: rust-pin-project-internal@0.4.22: Fix reference to rust-quote., (continued)
- 266/277: gnu: rust-pin-project-internal@0.4.22: Fix reference to rust-quote., guix-commits, 2020/08/06
- 270/277: gnu: rust-serial-test: Remove duplicate definition., guix-commits, 2020/08/06
- 271/277: gnu: rust-servo-arc: Remove duplicate definition., guix-commits, 2020/08/06
- 204/277: gnu: glade: Update package definition., guix-commits, 2020/08/06
- 237/277: gnu: cheese: Update package definition., guix-commits, 2020/08/06
- 242/277: gnu: file-roller: Update package definition., guix-commits, 2020/08/06
- 244/277: gnu: gnome-backgrounds: Update package definition., guix-commits, 2020/08/06
- 185/277: gnu: Add pedansee., guix-commits, 2020/08/06
- 195/277: gnu: Add gnome-js-common., guix-commits, 2020/08/06
- 187/277: gnu: gssdp: Update package definition., guix-commits, 2020/08/06
- 199/277: gnu: libdazzle: Update package definition.,
guix-commits <=
- 206/277: gnu: libgxps: Update package definition., guix-commits, 2020/08/06
- 207/277: gnu: libhandy: Update package definition., guix-commits, 2020/08/06
- 213/277: gnu: libdmapsharing: Update home-page., guix-commits, 2020/08/06
- 216/277: gnu: mobile-broadband-provider-info: Update package definition., guix-commits, 2020/08/06
- 218/277: gnu: libappindicator: Propagate gtk+ and libdbusmenu., guix-commits, 2020/08/06
- 219/277: gnu: Add dnssec-trigger., guix-commits, 2020/08/06
- 221/277: gnu: appstream-glib: Fix tests., guix-commits, 2020/08/06
- 229/277: gnu: libquvi-scripts: Update package definition., guix-commits, 2020/08/06
- 233/277: gnu: tracker: Update package definition., guix-commits, 2020/08/06
- 230/277: gnu: libquvi: Update package definition., guix-commits, 2020/08/06