[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/15: gnu: gdk-pixbuf+svg: Add a debug output.
From: |
guix-commits |
Subject: |
03/15: gnu: gdk-pixbuf+svg: Add a debug output. |
Date: |
Fri, 12 Mar 2021 09:07:16 -0500 (EST) |
apteryx pushed a commit to branch staging
in repository guix.
commit ca07cca4d85b213350e1a9c70d37558afb98be7b
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Thu Mar 11 06:57:40 2021 -0500
gnu: gdk-pixbuf+svg: Add a debug output.
* gnu/packages/gtk.scm (gdk-pixbuf+svg): Fix typo in comment.
[arguments]: Rewrite using 'substitute-keyword-arguments', so that all
phases
from the gdk-pixbuf package are reused.
---
gnu/packages/gtk.scm | 38 ++++++++++++++++++--------------------
1 file changed, 18 insertions(+), 20 deletions(-)
diff --git a/gnu/packages/gtk.scm b/gnu/packages/gtk.scm
index ddf8068..8c23b41 100644
--- a/gnu/packages/gtk.scm
+++ b/gnu/packages/gtk.scm
@@ -621,33 +621,31 @@ in the GNOME project.")
(home-page "https://developer.gnome.org/gdk-pixbuf/")))
;; To build gdk-pixbuf with SVG support, we need librsvg, and librsvg depends
-;; on gdk-pixbuf, so this new varibale. Also, librsvg adds 90MiB to the
+;; on gdk-pixbuf, so this new variable. Also, librsvg adds 90MiB to the
;; closure size.
(define-public gdk-pixbuf+svg
- (package (inherit gdk-pixbuf)
+ (package
+ (inherit gdk-pixbuf)
(name "gdk-pixbuf+svg")
(inputs
`(("librsvg" ,librsvg)
,@(package-inputs gdk-pixbuf)))
(arguments
- '(#:configure-flags '("-Dinstalled-tests=false")
- #:tests? #f ; tested by the gdk-pixbuf package already
- #:phases
- (modify-phases %standard-phases
- (add-after 'install 'register-svg-loader
- (lambda* (#:key inputs outputs #:allow-other-keys)
- (let* ((out (assoc-ref outputs "out"))
- (librsvg (assoc-ref inputs "librsvg"))
- (loaders
- (append
- (find-files out "^libpixbufloader-.*\\.so$")
- (find-files librsvg "^libpixbufloader-.*\\.so$")))
- (gdk-pixbuf-query-loaders
- (string-append out "/bin/gdk-pixbuf-query-loaders")))
- (apply invoke
- gdk-pixbuf-query-loaders
- "--update-cache"
- loaders)))))))
+ (substitute-keyword-arguments (package-arguments gdk-pixbuf)
+ ((#:phases phases)
+ `(modify-phases ,phases
+ (add-after 'install 'register-svg-loader
+ (lambda* (#:key inputs outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (librsvg (assoc-ref inputs "librsvg"))
+ (loaders
+ (append
+ (find-files out "^libpixbufloader-.*\\.so$")
+ (find-files librsvg "^libpixbufloader-.*\\.so$")))
+ (gdk-pixbuf-query-loaders
+ (string-append out "/bin/gdk-pixbuf-query-loaders")))
+ (apply invoke gdk-pixbuf-query-loaders
+ "--update-cache" loaders))))))))
(synopsis
"GNOME image loading and manipulation library, with SVG support")))
- branch staging updated (5a9350a -> 42231bc), guix-commits, 2021/03/12
- 01/15: gnu: gdk-pixbuf: Add a debug output., guix-commits, 2021/03/12
- 04/15: gnu: librsvg: Add a debug output., guix-commits, 2021/03/12
- 02/15: gnu: gdk-pixbuf: Fix indentation., guix-commits, 2021/03/12
- 03/15: gnu: gdk-pixbuf+svg: Add a debug output.,
guix-commits <=
- 06/15: gnu: weasyprint: Propagate gdk-pixbuf+svg rather than gdk-pixbuf., guix-commits, 2021/03/12
- 07/15: gnu: appstream-glib: Propagate gdk-pixbuf+svg rather than gdk-pixbuf., guix-commits, 2021/03/12
- 08/15: gnu: libnotify: Propagate gdk-pixbuf+svg rather than gdk-pixbuf., guix-commits, 2021/03/12
- 11/15: gnu: librsvg-next: Do not propagate gdk-pixbuf., guix-commits, 2021/03/12
- 12/15: gnu: libgweather: Propagate gdk-pixbuf+svg rather than gdk-pixbuf., guix-commits, 2021/03/12
- 13/15: gnu: cogl: Propagate gdk-pixbuf+svg rather than gdk-pixbuf., guix-commits, 2021/03/12
- 05/15: gnu: librsvg-next: Have its name match its symbol., guix-commits, 2021/03/12
- 09/15: gnu: libgsf: Do not propagate gdk-pixbuf., guix-commits, 2021/03/12
- 10/15: gnu: librsvg: Do not propagate gdk-pixbuf., guix-commits, 2021/03/12
- 15/15: gnu: cheese: Propagate gdk-pixbuf+svg rather than gdk-pixbuf., guix-commits, 2021/03/12