[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
210/401: gnu: libpeas: Update package definition.
From: |
guix-commits |
Subject: |
210/401: gnu: libpeas: Update package definition. |
Date: |
Tue, 18 Aug 2020 16:21:34 -0400 (EDT) |
dannym pushed a commit to branch wip-desktop
in repository guix.
commit 227240c48e9e1a2b019c53ff1d9c67d9c82ccb8f
Author: Raghav Gururajan <raghavgururajan@disroot.org>
AuthorDate: Mon Jul 27 05:47:51 2020 -0400
gnu: libpeas: Update package definition.
* gnu/packages/gnome.scm (libpeas) [version]: Update to 1.26.0.
[source]<origin>[sha256]: Modify base32.
[outputs]: New outputs "demo" and "doc".
[arguments]<#:glib-or-gtk?>: New argument.
<#:configure-flags>[-Dpython2]: New flag.
[-Dvapi]: New flag.
[-Dgtk_doc]: New flag.
<#:phases>['patch-docbook-xml]: New phase.
['start-xorg-server]: Remove phase.
['pre-check]: New phase.
['move-doc]: New phase.
['move-demo]: New phase.
[native-inputs]: Add docbook-xml, gtk-doc, luajit and vala.
[inputs]: Add lua, python-2 and python2-pygobject. Remove gtk+.
[propagated-inputs]: Remove gobject-introspection. Add glib and gtk+.
[synopsis]: Modify.
[home-page]: Modify.
[license]: Update to lgpl2.1+.
Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org>
---
gnu/packages/gnome.scm | 97 ++++++++++++++++++++++++++++++++++++--------------
1 file changed, 71 insertions(+), 26 deletions(-)
diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index 97a5ab4..a71169c 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -3058,51 +3058,96 @@ form of information without getting in the user's way.")
(define-public libpeas
(package
(name "libpeas")
- (version "1.24.1")
+ (version "1.26.0")
(source
(origin
- (method url-fetch)
- (uri (string-append "mirror://gnome/sources/" name "/"
- (version-major+minor version) "/"
- name "-" version ".tar.xz"))
- (sha256
- (base32
- "1162dr7smmfb02czmhshr0f93hqj7w0nw29bys5lzfvwarxcyflw"))))
+ (method url-fetch)
+ (uri
+ (string-append "mirror://gnome/sources/" name "/"
+ (version-major+minor version) "/"
+ name "-" version ".tar.xz"))
+ (sha256
+ (base32 "0xkk9zhkw8f2fm7g9nb4ry4xxig5n27s7rjmx6l7jr2941zdfxm9"))))
(build-system meson-build-system)
+ (outputs '("out" "demo" "doc"))
(arguments
- '(#:phases
+ `(#:glib-or-gtk? #t ; To wrap binaries and/or compile schemas
+ #:configure-flags
+ (list
+ "-Dpython2=true"
+ "-Dvapi=true"
+ "-Dgtk_doc=true")
+ #:phases
(modify-phases %standard-phases
- (add-before 'check 'start-xserver
+ (add-after 'unpack 'patch-docbook-xml
(lambda* (#:key inputs #:allow-other-keys)
- (let ((xorg-server (assoc-ref inputs "xorg-server"))
- (disp ":1"))
- (setenv "DISPLAY" disp)
- ;; Tests require a running X server.
- (system (format #f "~a/bin/Xvfb ~a &" xorg-server disp))
+ (with-directory-excursion "docs/reference"
+ (substitute* "libpeas-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 +extension GLX &")
+ (setenv "DISPLAY" ":1")
+ ;; Tests write to $HOME.
+ (setenv "HOME" (getcwd))
+ ;; For missing '/etc/machine-id'.
+ (setenv "DBUS_FATAL_WARNINGS" "0")
+ #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-demo
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (demo (assoc-ref outputs "demo")))
+ (mkdir-p (string-append demo "/bin"))
+ (mkdir-p (string-append demo "/lib"))
+ (rename-file
+ (string-append out "/bin")
+ (string-append demo "/bin"))
+ (rename-file
+ (string-append out "/lib/peas-demo")
+ (string-append demo "/lib/peas-demo"))
#t))))))
- (inputs
- `(("gtk+" ,gtk+)
- ("glade" ,glade3)
- ("python" ,python)
- ("python-pygobject" ,python-pygobject)))
(native-inputs
- `(("pkg-config" ,pkg-config)
+ `(("docbook-xml" ,docbook-xml-4.3)
("gettext" ,gettext-minimal)
("glib:bin" ,glib "bin")
("gobject-introspection" ,gobject-introspection)
+ ("gtk-doc" ,gtk-doc)
+ ("luajit" ,luajit)
+ ("pkg-config" ,pkg-config)
+ ("vala" ,vala)
("xorg-server" ,xorg-server-for-tests)))
+ (inputs
+ `(("glade" ,glade)
+ ("lua" ,lua)
+ ("python2" ,python-2)
+ ("python3" ,python)
+ ("python2-pygobject" ,python2-pygobject)
+ ("python3-pygobject" ,python-pygobject)))
(propagated-inputs
- ;; The .pc file "Requires" gobject-introspection.
- `(("gobject-introspection" ,gobject-introspection)))
- (home-page "https://wiki.gnome.org/Libpeas")
- (synopsis "GObject plugin system")
+ `(("glib" ,glib)
+ ("gtk+" ,gtk+)))
+ (synopsis "GObject Plugin System")
(description
"Libpeas is a gobject-based plugin engine, targeted at giving every
application the chance to assume its own extensibility. It also has a set of
features including, but not limited to: multiple extension points; on-demand
(lazy) programming language support for C, Python and JS; simplicity of the
API.")
- (license license:lgpl2.0+)))
+ (home-page "https://wiki.gnome.org/Projects/Libpeas")
+ (license license:lgpl2.1+)))
(define-public gtkglext
(package
- 296/401: gnu: gnome-shell-extensions: Update package definition., (continued)
- 296/401: gnu: gnome-shell-extensions: Update package definition., guix-commits, 2020/08/18
- 307/401: gnu: Add libbraille., guix-commits, 2020/08/18
- 313/401: gnu: libmusicbrainz: Propagate inputs., guix-commits, 2020/08/18
- 334/401: build-system/cmake: Only include phases that are enabled., guix-commits, 2020/08/18
- 152/401: gnu: glibmm: Update package definition., guix-commits, 2020/08/18
- 183/401: gnu: gom: Update package definition., guix-commits, 2020/08/18
- 185/401: gnu: Add pedansee., guix-commits, 2020/08/18
- 191/401: gnu: gupnp-dlna: Update package definition., guix-commits, 2020/08/18
- 197/401: gnu: Add memphis., guix-commits, 2020/08/18
- 201/401: gnu: libgsf: Update package definition., guix-commits, 2020/08/18
- 210/401: gnu: libpeas: Update package definition.,
guix-commits <=
- 216/401: gnu: mobile-broadband-provider-info: Update package definition., guix-commits, 2020/08/18
- 220/401: gnu: network-manager: Update package definition., guix-commits, 2020/08/18
- 224/401: Revert "gnu: java-jakarta-oro: Update hash.", guix-commits, 2020/08/18
- 223/401: gnu: phodav: Update package definition., guix-commits, 2020/08/18
- 229/401: gnu: libquvi-scripts: Update package definition., guix-commits, 2020/08/18
- 226/401: gnu: Add libgrss., guix-commits, 2020/08/18
- 233/401: gnu: tracker: Update package definition., guix-commits, 2020/08/18
- 239/401: gnu: epiphany: Update package definition., guix-commits, 2020/08/18
- 243/401: gnu: gedit: Update package definition., guix-commits, 2020/08/18
- 246/401: gnu: gnome-boxes: Update package definition., guix-commits, 2020/08/18