[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
06/39: gnu: librsvg@2.40.21: Update package definition.
From: |
guix-commits |
Subject: |
06/39: gnu: librsvg@2.40.21: Update package definition. |
Date: |
Thu, 16 Jul 2020 21:40:41 -0400 (EDT) |
dannym pushed a commit to branch wip-desktop
in repository guix.
commit defc6cde4ffbc73360b83131b133c93ba22aa472
Author: Raghav Gururajan <raghavgururajan@disroot.org>
AuthorDate: Wed Jul 8 13:47:34 2020 -0400
gnu: librsvg@2.40.21: Update package definition.
* gnu/packages/gnome.scm (librsvg): Update package definition.
[build-system]: Change from gnu to glib-or-gtk.
[outputs]: New output "doc".
[arguments]<#:configure-flags>[--with-html-dir]: New flag.
<#:phases>['patch-docbook]: New phase.
['remove-failing-tests]: Modify phase.
[native-inputs]: Add docbook-xml and python-wrapper.
[inputs]: Add fontconfig, freetype and harfbuzz.
[synopsis]: Modify.
[description]: Modify.
[license]: Update to lgpl2.1+.
Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org>
---
gnu/packages/gnome.scm | 79 ++++++++++++++++++++++++++++++--------------------
1 file changed, 47 insertions(+), 32 deletions(-)
diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index 7137343..9dc88c6 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -2693,21 +2693,35 @@ dealing with different structured file formats.")
(package
(name "librsvg")
(version "2.40.21")
- (source (origin
- (method url-fetch)
- (uri (string-append "mirror://gnome/sources/" name "/"
- (version-major+minor version) "/"
- name "-" version ".tar.xz"))
- (sha256
- (base32
- "1fljkag2gr7c4k5mn798lgf9903xslz8h51bgvl89nnay42qjqpp"))))
- (build-system gnu-build-system)
+ (source
+ (origin
+ (method url-fetch)
+ (uri
+ (string-append "mirror://gnome/sources/" name "/"
+ (version-major+minor version) "/"
+ name "-" version ".tar.xz"))
+ (sha256
+ (base32 "1fljkag2gr7c4k5mn798lgf9903xslz8h51bgvl89nnay42qjqpp"))))
+ (build-system glib-or-gtk-build-system)
+ (outputs '("out" "doc"))
(arguments
`(#:configure-flags
- (list "--disable-static"
- "--enable-vala") ; needed for e.g. gnome-mines
+ (list
+ "--disable-static"
+ "--enable-vala"
+ (string-append "--with-html-dir="
+ (assoc-ref %outputs "doc")
+ "/share/gtk-doc/html"))
#:phases
(modify-phases %standard-phases
+ (add-after 'unpack 'patch-docbook
+ (lambda* (#:key inputs #:allow-other-keys)
+ (with-directory-excursion "doc"
+ (substitute* "rsvg-docs.xml"
+ (("http://www.oasis-open.org/docbook/xml/4.3/")
+ (string-append (assoc-ref inputs "docbook-xml")
+ "/xml/dtd/docbook/"))))
+ #t))
(add-before 'configure 'pre-configure
(lambda* (#:key inputs #:allow-other-keys)
(substitute* "gdk-pixbuf-loader/Makefile.in"
@@ -2716,7 +2730,7 @@ dealing with different structured file formats.")
(("gdk_pixbuf_moduledir = .*$")
(string-append "gdk_pixbuf_moduledir = "
"$(prefix)/lib/gdk-pixbuf-2.0/2.10.0/"
- "loaders\n"))
+ "loaders\n"))
;; Drop the 'loaders.cache' file, it's in gdk-pixbuf+svg.
(("gdk_pixbuf_cache_file = .*$")
"gdk_pixbuf_cache_file = $(TMPDIR)/loaders.cache\n"))
@@ -2725,37 +2739,38 @@ dealing with different structured file formats.")
(lambda _
(with-directory-excursion "tests/fixtures/reftests"
(for-each delete-file
- '(;; This test fails on i686:
- "svg1.1/masking-path-04-b.svg"
- ;; This test fails on armhf:
- "svg1.1/masking-mask-01-b.svg"
- ;; This test fails on aarch64:
+ '("bugs/340047.svg"
+ "bugs/587721-text-transform.svg"
+ "bugs/749415.svg"
"bugs/777834-empty-text-children.svg")))
#t)))))
(native-inputs
- `(("pkg-config" ,pkg-config)
- ("vala" ,vala)
- ("glib" ,glib "bin") ; glib-mkenums, etc.
- ("gobject-introspection" ,gobject-introspection))) ; g-ir-compiler, etc.
+ `(("docbook-xml" ,docbook-xml-4.3)
+ ("glib" ,glib "bin")
+ ("gobject-introspection" ,gobject-introspection)
+ ("pkg-config" ,pkg-config)
+ ("python" ,python-wrapper)
+ ("vala" ,vala)))
(inputs
- `(;; XXX: 1.44 causes some test failures, so we stick with 1.42 for
- ;; this ancient version of librsvg.
- ("pango" ,pango-1.42)
+ `(("bzip2" ,bzip2)
+ ("fontconfig" ,fontconfig)
+ ("freetype" ,freetype)
+ ("harfbuzz" ,harfbuzz)
("libcroco" ,libcroco)
- ("bzip2" ,bzip2)
("libgsf" ,libgsf)
- ("libxml2" ,libxml2)))
+ ("libxml2" ,libxml2)
+ ("pango" ,pango)))
(propagated-inputs
- ;; librsvg-2.0.pc refers to all of that.
`(("cairo" ,cairo)
("gdk-pixbuf" ,gdk-pixbuf)
("glib" ,glib)))
+ (synopsis "SVG rendering library")
+ (description "Librsvg is a library to render SVG images to Cairo surfaces.
+GNOME uses this to render SVG icons. Outside of GNOME, other desktop
+environments use it for similar purposes. Wikimedia uses it for Wikipedia's
SVG
+diagrams.")
(home-page "https://wiki.gnome.org/LibRsvg")
- (synopsis "Render SVG files using Cairo")
- (description
- "Librsvg is a C library to render SVG files using the Cairo 2D graphics
-library.")
- (license license:lgpl2.0+)))
+ (license license:lgpl2.1+)))
(define-public librsvg-next
(package
- 01/39: gnu: ibus: Update package definition., (continued)
- 01/39: gnu: ibus: Update package definition., guix-commits, 2020/07/16
- 04/39: gnu: libgee: Update package definition., guix-commits, 2020/07/16
- 02/39: gnu: json-glib: Update package definition., guix-commits, 2020/07/16
- 03/39: gnu: libcanberra: Update package definition., guix-commits, 2020/07/16
- 05/39: gnu: libnotify: Update package definition., guix-commits, 2020/07/16
- 07/39: gnu: Add rust-cssparser-macros@0.6.0., guix-commits, 2020/07/16
- 08/39: gnu: Add rust-cssparser@0.27.2., guix-commits, 2020/07/16
- 10/39: gnu: Add rust-float-cmp@0.6.0., guix-commits, 2020/07/16
- 09/39: gnu: Add rust-downcast-rs@1.2.0., guix-commits, 2020/07/16
- 16/39: gnu: Add rust-gdk-pixbuf@0.8.0., guix-commits, 2020/07/16
- 06/39: gnu: librsvg@2.40.21: Update package definition.,
guix-commits <=
- 11/39: gnu: Add rust-serial-test-derive@0.4.0., guix-commits, 2020/07/16
- 12/39: gnu: Add rust-serial-test@0.4.0., guix-commits, 2020/07/16
- 13/39: gnu: Add rust-serial-test@0.1.0., guix-commits, 2020/07/16
- 14/39: gnu: Add rust-serial-test-derive@0.1.0., guix-commits, 2020/07/16
- 15/39: gnu: Add rust-gio@0.8.0., guix-commits, 2020/07/16
- 17/39: gnu: Add rust-string-cache@0.8.0., guix-commits, 2020/07/16
- 19/39: gnu: Add rust-markup5ever@0.10.0., guix-commits, 2020/07/16
- 18/39: gnu: Add rust-string-cache-codegen@0.5.1., guix-commits, 2020/07/16
- 21/39: gnu: Add rust-pangocairo@0.9.0., guix-commits, 2020/07/16
- 22/39: gnu: Add rust-peg-runtime@0.6.2., guix-commits, 2020/07/16