[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
07/09: gnu: gtk+: Add SVG support to 'gtk-encode-symbolic-svg'.
From: |
??? |
Subject: |
07/09: gnu: gtk+: Add SVG support to 'gtk-encode-symbolic-svg'. |
Date: |
Sat, 23 May 2015 03:32:46 +0000 |
iyzsong pushed a commit to branch gtk-rebuild
in repository guix.
commit 52b8beb1095bbf9152897656b19de6190235a918
Author: 宋文武 <address@hidden>
Date: Tue May 19 16:32:09 2015 +0800
gnu: gtk+: Add SVG support to 'gtk-encode-symbolic-svg'.
* gnu/packages/gtk.scm (gtk+)[inputs]: Add librsvg.
[arguments]: Add 'wrap-gtk-encode-symbolic-svg' phase.
---
gnu/packages/gtk.scm | 16 ++++++++++++++--
1 files changed, 14 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/gtk.scm b/gnu/packages/gtk.scm
index 9a7e8f9..f518992 100644
--- a/gnu/packages/gtk.scm
+++ b/gnu/packages/gtk.scm
@@ -505,7 +505,8 @@ application suites.")
("libxdamage" ,libxdamage)
("pango" ,pango)))
(inputs
- `(("libxml2" ,libxml2)
+ `(("librsvg" ,librsvg) ;for gtk-encode-symbolic-svg
+ ("libxml2" ,libxml2)
("cups" ,cups))) ;for printing support
(native-inputs
`(("perl" ,perl)
@@ -537,7 +538,18 @@ application suites.")
"demos/gtk-demo/Makefile.in")
(("gtk-update-icon-cache") "$(bindir)/gtk-update-icon-cache"))
#t)
- %standard-phases)))))
+ (alist-cons-after
+ 'install 'wrap-gtk-encode-symbolic-svg
+ ;; By using GdkPixbuf, gtk-encode-symbolic-svg needs to know
+ ;; librsvg's loaders.cache to handle SVG files.
+ (lambda* (#:key inputs outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (prog (string-append out "/bin/gtk-encode-symbolic-svg"))
+ (librsvg (assoc-ref inputs "librsvg"))
+ (loaders.cache (find-files librsvg "^loaders\\.cache$")))
+ (wrap-program prog
+ `("GDK_PIXBUF_MODULE_FILE" = ,loaders.cache))))
+ %standard-phases))))))
;;;
;;; Guile bindings.
- branch gtk-rebuild created (now 281c215), ???, 2015/05/22
- 01/09: gnu: gtk+-2: build gobject introspection typelib file., ???, 2015/05/22
- 02/09: Merge branch 'master' into gtk-rebuild, ???, 2015/05/22
- 03/09: gnu: harfbuzz: Update to 0.9.40., ???, 2015/05/22
- 04/09: gnu: harfbuzz: Enable GObject integration., ???, 2015/05/22
- 05/09: gnu: gtk+-2: Update to 2.24.28., ???, 2015/05/22
- 06/09: gnu: gtk+: Update to 3.16.3., ???, 2015/05/22
- 07/09: gnu: gtk+: Add SVG support to 'gtk-encode-symbolic-svg'.,
??? <=
- 08/09: gnu: Add adwaita-icon-theme., ???, 2015/05/22
- 09/09: gnu: librsvg: Update to 2.40.9., ???, 2015/05/22