[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
11/44: gnu: at-spi2-core: Update package definition.
From: |
guix-commits |
Subject: |
11/44: gnu: at-spi2-core: Update package definition. |
Date: |
Thu, 25 Jun 2020 08:20:49 -0400 (EDT) |
dannym pushed a commit to branch wip-desktop
in repository guix.
commit 9a47bfc947f9fd686a259854d3acd79f2fe9db6e
Author: Raghav Gururajan <raghavgururajan@disroot.org>
AuthorDate: Thu May 28 10:46:33 2020 -0400
gnu: at-spi2-core: Update package definition.
* gnu/packages/gtk.scm (at-spi2-core): Update to 2.36.0.
[version]: Update to 2.36.0.
[arguments]<#:glib-or-gtk?>: New argument.
[arguments]<#:phases>['patch-docbook-sgml]: New phase.
[native-inputs]: Add docbook-xml and python-wrapper.
[propagated-inputs]: Add libx11.
[home-page]: Modify.
[license]: Update to lgpl2.1+.
Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org>
---
gnu/packages/gtk.scm | 144 ++++++++++++++++++++++++++++-----------------------
1 file changed, 79 insertions(+), 65 deletions(-)
diff --git a/gnu/packages/gtk.scm b/gnu/packages/gtk.scm
index 3cadccd..7bbc370 100644
--- a/gnu/packages/gtk.scm
+++ b/gnu/packages/gtk.scm
@@ -565,72 +565,86 @@ in the GNOME project.")
(define-public at-spi2-core
(package
- (name "at-spi2-core")
- (version "2.34.0")
- (source (origin
- (method url-fetch)
- (uri (string-append "mirror://gnome/sources/" name "/"
- (version-major+minor version) "/"
- name "-" version ".tar.xz"))
- (sha256
- (base32
- "1ihixwhh3c16q6253qj9gf69741rb2pi51822a4rylsfcyywsafn"))))
- (build-system meson-build-system)
- (outputs '("out" "doc"))
- (arguments
- '(#:configure-flags
- (list "-Ddocs=true")
- #:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'set-documentation-path
- (lambda* (#:key outputs #:allow-other-keys)
- ;; Ensure that the cross-references point to the "doc" output.
- (substitute* "doc/libatspi/meson.build"
- (("docpath =.*")
- (string-append "docpath = '" (assoc-ref outputs "doc")
"/share/gtk-doc/html'\n")))
- #t))
- (add-before 'install 'prepare-doc-directory
- (lambda* (#:key outputs #:allow-other-keys)
- (mkdir-p (string-append (assoc-ref outputs "doc") "/share"))
- #t))
- (add-after 'install 'move-documentation
- (lambda* (#:key outputs #:allow-other-keys)
- (let ((out (assoc-ref outputs "out"))
- (doc (assoc-ref outputs "doc")))
- (copy-recursively
- (string-append out "/share/gtk-doc")
- (string-append doc "/share/gtk-doc"))
- (delete-file-recursively
- (string-append out "/share/gtk-doc")))
- #t))
- (add-after 'install 'check
- (lambda _
- (setenv "HOME" (getenv "TMPDIR")) ; xfconfd requires a writable
HOME
- ;; Run test-suite under a dbus session.
- (setenv "XDG_DATA_DIRS" ; for finding org.xfce.Xfconf.service
- (string-append %output "/share"))
- ;; Don't fail on missing '/etc/machine-id'.
- (setenv "DBUS_FATAL_WARNINGS" "0") ;
- (invoke "dbus-launch" "ninja" "test")))
+ (name "at-spi2-core")
+ (version "2.36.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri
+ (string-append "mirror://gnome/sources/" name "/"
+ (version-major+minor version) "/"
+ name "-" version ".tar.xz"))
+ (sha256
+ (base32 "0nn0lnf07ayysq8c8irmvc91c2dszn04m5qs6jy60g3y1bg5gnl8"))))
+ (build-system meson-build-system)
+ (outputs '("out" "doc"))
+ (arguments
+ '(#:glib-or-gtk? #t ; To wrap binaries and/or compile schemas.
+ #:configure-flags
+ (list
+ "-Ddocs=true")
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'set-documentation-path
+ (lambda* (#:key outputs #:allow-other-keys)
+ ;; Ensure that the cross-references point to the "doc" output.
+ (substitute* "doc/libatspi/meson.build"
+ (("docpath =.*")
+ (string-append "docpath = '" (assoc-ref outputs "doc")
+ "/share/gtk-doc/html'\n")))
+ #t))
+ (add-before 'install 'prepare-doc-directory
+ (lambda* (#:key outputs #:allow-other-keys)
+ (mkdir-p (string-append (assoc-ref outputs "doc")
+ "/share"))
+ #t))
+ (add-after 'unpack 'patch-docbook-sgml
+ (lambda* (#:key inputs #:allow-other-keys)
+ (let* ((xmldoc (string-append (assoc-ref inputs "docbook-xml")
+ "/xml/dtd/docbook")))
+ (substitute* "doc/libatspi/libatspi-docs.sgml"
+ (("http://.*/docbookx\\.dtd")
+ (string-append xmldoc "/docbookx.dtd")))
+ #t)))
+ (add-after 'install 'move-documentation
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (doc (assoc-ref outputs "doc")))
+ (copy-recursively
+ (string-append out "/share/gtk-doc")
+ (string-append doc "/share/gtk-doc"))
+ (delete-file-recursively
+ (string-append out "/share/gtk-doc")))
+ #t))
+ (add-after 'install 'check
+ (lambda _
+ (setenv "HOME" (getenv "TMPDIR")) ; xfconfd requires a writable
HOME
+ ;; Run test-suite under a dbus session.
+ (setenv "XDG_DATA_DIRS" ; for finding org.xfce.Xfconf.service
+ (string-append %output "/share"))
+ ;; Don't fail on missing '/etc/machine-id'.
+ (setenv "DBUS_FATAL_WARNINGS" "0") ;
+ (invoke "dbus-launch" "ninja" "test")))
(delete 'check))))
- (propagated-inputs
- ;; atspi-2.pc refers to all these.
- `(("dbus" ,dbus)
- ("glib" ,glib)
- ("libxi" ,libxi)
- ("libxtst" ,libxtst)))
- (native-inputs
- `(("gettext" ,gettext-minimal)
- ("gobject-introspection" ,gobject-introspection)
- ("gtk-doc" ,gtk-doc)
- ("glib" ,glib "bin")
- ("pkg-config" ,pkg-config)))
- (synopsis "Assistive Technology Service Provider Interface, core
components")
- (description
- "The Assistive Technology Service Provider Interface, core components,
-is part of the GNOME accessibility project.")
- (license license:lgpl2.0+)
- (home-page "https://projects.gnome.org/accessibility/")))
+ (native-inputs
+ `(("docbook-xml" ,docbook-xml-4.3)
+ ("gettext" ,gettext-minimal)
+ ("gobject-introspection" ,gobject-introspection)
+ ("gtk-doc" ,gtk-doc)
+ ("glib" ,glib "bin")
+ ("pkg-config" ,pkg-config)
+ ("python-wrapper" ,python-wrapper)))
+ (propagated-inputs
+ `(("dbus" ,dbus)
+ ("glib" ,glib)
+ ("libx11" ,libx11)
+ ("libxi" ,libxi)
+ ("libxtst" ,libxtst)))
+ (synopsis "Assistive Technology Service Provider Interface, core
components")
+ (description "The Assistive Technology Service Provider Interface,
+core components, is part of the GNOME accessibility project.")
+ (home-page "https://wiki.gnome.org/Accessibility/")
+ (license license:lgpl2.1+)))
;;; A minimal variant used to prevent a cycle with Inkscape.
(define at-spi2-core-minimal
- 39/44: gnu: Add esound., (continued)
- 39/44: gnu: Add esound., guix-commits, 2020/06/25
- 35/44: gnu: glib-networking: Update to 2.62.4., guix-commits, 2020/06/25
- 41/44: gnu: glib: Update package definition., guix-commits, 2020/06/25
- 16/44: gnu: clutter: Update to 1.26.4., guix-commits, 2020/06/25
- 20/44: gnu: dconf: Update to 0.36.0., guix-commits, 2020/06/25
- 31/44: gnu: gdk-pixbuf+svg: Update package definition., guix-commits, 2020/06/25
- 33/44: gnu: Add sysprof., guix-commits, 2020/06/25
- 42/44: gnu: glib-with-documentation: Update package definition., guix-commits, 2020/06/25
- 43/44: gnu: glib-networking: Update to 2.64.3., guix-commits, 2020/06/25
- 44/44: gnu: gobject-introspection: Update package definition., guix-commits, 2020/06/25
- 11/44: gnu: at-spi2-core: Update package definition.,
guix-commits <=
- 15/44: gnu: font-cantarell: Update package definition., guix-commits, 2020/06/25
- 18/44: gnu: clutter-gst: Update package definition., guix-commits, 2020/06/25
- 19/44: gnu: cogl: Update package definition., guix-commits, 2020/06/25
- 26/44: gnu: Add presage., guix-commits, 2020/06/25
- 28/44: gnu: gcab: Update to 1.4., guix-commits, 2020/06/25
- 30/44: gnu: gdk-pixbuf: Update package definition., guix-commits, 2020/06/25
- 40/44: gnu: faad2: Update to 2.8.8., guix-commits, 2020/06/25