[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
207/402: gnu: libhandy: Update package definition.
From: |
guix-commits |
Subject: |
207/402: gnu: libhandy: Update package definition. |
Date: |
Tue, 18 Aug 2020 16:47:39 -0400 (EDT) |
dannym pushed a commit to branch wip-desktop
in repository guix.
commit 31aa5c672d21158453ba914248460d064d6472cd
Author: Raghav Gururajan <raghavgururajan@disroot.org>
AuthorDate: Mon Jul 27 03:27:43 2020 -0400
gnu: libhandy: Update package definition.
* gnu/packages/gnome.scm (libhandy) [version]: Update to 0.0.13.
[source]<origin>[uri]: Change from puri.sm to gnome.org.
[sha256]: Modify base32.
[outputs]: New outputs "examples" and "doc".
[arguments]<#:glib-or-gtk?>: New argument.
<#:configure-flags>[-Dglade_catalog]: Remove flag.
<#:phases>['patch-docbook-xml]: New phase.
['patch-glade]: New phase.
['disable-failing-tests]: New phase.
['pre-check]: Modify phase.
['move-doc]: New phase.
['move-examples]: New phase.
[native-inputs]: Add docbook-xml, gtk+:bin and libxml2.
[inputs]: Add glade. Move gtk+ to ...
[propagated-inputs]: ... here. Add glib.
[synopsis]: Modify.
[description]: Modify.
[home-page]: Modify.
Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org>
---
gnu/packages/gnome.scm | 103 +++++++++++++++++++++++++++++++++++++------------
1 file changed, 78 insertions(+), 25 deletions(-)
diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index 7055f98..d67464d 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -11590,47 +11590,100 @@ advanced image management tool")
(define-public libhandy
(package
(name "libhandy")
- (version "0.0.12")
+ (version "0.0.13")
(source
(origin
(method git-fetch)
- (uri (git-reference
- (url "https://source.puri.sm/Librem5/libhandy")
- (commit (string-append "v" version))))
+ (uri
+ (git-reference
+ (url "https://gitlab.gnome.org/GNOME/libhandy.git")
+ (commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
- (base32 "09wlknarzsbk9hr5ws6s7x5kibkhx9ayrbhshfqib4zkhq2f76hw"))))
+ (base32 "1y23k623sjkldfrdiwfarpchg5mg58smcy1pkgnwfwca15wm1ra5"))))
(build-system meson-build-system)
+ (outputs '("out" "examples" "doc"))
(arguments
- `(#:configure-flags
- '("-Dglade_catalog=disabled"
- "-Dgtk_doc=true")
+ `(#:glib-or-gtk? #t ; To wrap binaries and/or compile schemas
+ #:configure-flags
+ (list
+ "-Dgtk_doc=true")
#:phases
(modify-phases %standard-phases
+ (add-after 'unpack 'patch-docbook-xml
+ (lambda* (#:key inputs #:allow-other-keys)
+ (with-directory-excursion "doc"
+ (substitute*
+ '("build-howto.xml"
+ "handy-docs.xml"
+ "visual-index.xml")
+ (("http://www.oasis-open.org/docbook/xml/4.3/")
+ (string-append (assoc-ref inputs "docbook-xml")
+ "/xml/dtd/docbook/"))))
+ #t))
+ (add-after 'patch-docbook-xml 'patch-glade
+ (lambda _
+ (substitute* "glade/meson.build"
+ (("gladeui_dep\\.get_pkgconfig_variable\\('moduledir'\\)")
+ "libdir / 'glade' / 'modules'")
+ (("gladeui_dep\\.get_pkgconfig_variable\\('catalogdir'\\)")
+ "datadir / 'glade' / 'catalogs'"))
+ (substitute* '("glade/glade-hdy-header-group.c"
+ "glade/glade-hdy-swipe-group.c")
+ (("GPC_OBJECT_DELIMITER")
+ "G_STR_DELIMITERS"))
+ #t))
+ (add-before 'configure 'disable-failing-tests
+ (lambda _
+ (substitute* "tests/meson.build"
+ (("'test-avatar',")
+ ""))
+ #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)))))
- (inputs
- `(("gtk+" ,gtk+)))
+ #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-examples
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (examples (assoc-ref outputs "examples")))
+ (mkdir-p (string-append examples "/bin"))
+ (rename-file
+ (string-append out "/bin")
+ (string-append examples "/bin"))
+ #t))))))
(native-inputs
- `(("glib:bin" ,glib "bin")
- ("gobject-introspection" ,gobject-introspection) ; for g-ir-scanner
- ("vala" ,vala)
+ `(("hicolor-icon-theme" ,hicolor-icon-theme)
+ ("docbook-xml" ,docbook-xml-4.3)
+ ("gettext" ,gettext-minimal)
+ ("glib:bin" ,glib "bin")
+ ("gobject-introspection" ,gobject-introspection)
("gtk-doc" ,gtk-doc)
+ ("gtk+:bin" ,gtk+ "bin")
("pkg-config" ,pkg-config)
- ("gettext" ,gettext-minimal)
-
- ;; Test suite dependencies.
- ("xorg-server" ,xorg-server-for-tests)
- ("hicolor-icon-theme" ,hicolor-icon-theme)))
- (home-page "https://source.puri.sm/Librem5/libhandy")
- (synopsis "Library full of GTK+ widgets for mobile phones")
- (description "The aim of the handy library is to help with developing user
-interfaces for mobile devices using GTK+. It provides responsive GTK+ widgets
-for usage on small and big screens.")
+ ("vala" ,vala)
+ ("xmllint" ,libxml2)
+ ("xorg-server" ,xorg-server-for-tests)))
+ (inputs
+ `(("glade" ,glade)))
+ (propagated-inputs
+ `(("glib" ,glib)
+ ("gtk+" ,gtk+)))
+ (synopsis "Building blocks for modern adaptive GNOME apps")
+ (description "LibHandy aims to help with developing UI for mobile devices
+using GTK/GNOME.")
+ (home-page "https://gitlab.gnome.org/GNOME/libhandy")
(license license:lgpl2.1+)))
(define-public libgit2-glib
- 166/402: gnu: Add dee., (continued)
- 166/402: gnu: Add dee., guix-commits, 2020/08/18
- 174/402: gnu: gexiv2: Update package definition., guix-commits, 2020/08/18
- 164/402: gnu: evolution-data-server: Update package definition., guix-commits, 2020/08/18
- 169/402: gnu: Add poly2tri-c., guix-commits, 2020/08/18
- 162/402: gnu: amtk: Update package definition., guix-commits, 2020/08/18
- 180/402: gnu: gnome-video-effects: Update package definition., guix-commits, 2020/08/18
- 181/402: gnu: gobject-introspection: Add patches back., guix-commits, 2020/08/18
- 196/402: gnu: Add seed., guix-commits, 2020/08/18
- 194/402: gnu: gtk-vnc: Update package definition., guix-commits, 2020/08/18
- 202/402: gnu: libgtop: Update package definition., guix-commits, 2020/08/18
- 207/402: gnu: libhandy: Update package definition.,
guix-commits <=
- 209/402: gnu: libnma: Update package definition., guix-commits, 2020/08/18
- 219/402: gnu: Add dnssec-trigger., guix-commits, 2020/08/18
- 221/402: gnu: appstream-glib: Fix tests., guix-commits, 2020/08/18
- 223/402: gnu: phodav: Update package definition., guix-commits, 2020/08/18
- 220/402: gnu: network-manager: Update package definition., guix-commits, 2020/08/18
- 227/402: gnu: vte: Update package definition., guix-commits, 2020/08/18
- 230/402: gnu: libquvi: Update package definition., guix-commits, 2020/08/18
- 234/402: gnu: tracker-miners: Update package definition., guix-commits, 2020/08/18
- 237/402: gnu: cheese: Update package definition., guix-commits, 2020/08/18
- 242/402: gnu: file-roller: Update package definition., guix-commits, 2020/08/18