mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-09 20:59:31 -05:00
gnu: librsvg: Update to 2.50.3.
* gnu/packages/gnome.scm (librsvg): Update to 2.50.3. Remove trailing #t. [cargo-development-inputs]: Update rust-lopdf to 0.26. (librsvg-next): Remove variable. (eog): Adjust.
This commit is contained in:
parent
f63f524053
commit
6e20d190dc
1 changed files with 10 additions and 84 deletions
|
@ -3223,75 +3223,7 @@ (define-public libgsf
|
||||||
(define-public librsvg
|
(define-public librsvg
|
||||||
(package
|
(package
|
||||||
(name "librsvg")
|
(name "librsvg")
|
||||||
(version "2.40.21")
|
(version "2.50.3")
|
||||||
(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)
|
|
||||||
(arguments
|
|
||||||
`(#:configure-flags
|
|
||||||
(list "--disable-static"
|
|
||||||
"--enable-vala") ; needed for e.g. gnome-mines
|
|
||||||
#:phases
|
|
||||||
(modify-phases %standard-phases
|
|
||||||
(add-before 'configure 'pre-configure
|
|
||||||
(lambda* (#:key inputs #:allow-other-keys)
|
|
||||||
(substitute* "gdk-pixbuf-loader/Makefile.in"
|
|
||||||
;; By default the gdk-pixbuf loader is installed under
|
|
||||||
;; gdk-pixbuf's prefix. Work around that.
|
|
||||||
(("gdk_pixbuf_moduledir = .*$")
|
|
||||||
(string-append "gdk_pixbuf_moduledir = "
|
|
||||||
"$(prefix)/lib/gdk-pixbuf-2.0/2.10.0/"
|
|
||||||
"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"))
|
|
||||||
#t))
|
|
||||||
(add-before 'check 'remove-failing-tests
|
|
||||||
(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/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.
|
|
||||||
(inputs
|
|
||||||
`(;; XXX: 1.44 causes some test failures, so we stick with 1.42 for
|
|
||||||
;; this ancient version of librsvg.
|
|
||||||
("pango" ,pango-1.42)
|
|
||||||
("libcroco" ,libcroco)
|
|
||||||
("bzip2" ,bzip2)
|
|
||||||
("libgsf" ,libgsf)
|
|
||||||
("libxml2" ,libxml2)))
|
|
||||||
(propagated-inputs
|
|
||||||
;; librsvg-2.0.pc refers to all of that.
|
|
||||||
`(("cairo" ,cairo)
|
|
||||||
("gdk-pixbuf" ,gdk-pixbuf)
|
|
||||||
("glib" ,glib)))
|
|
||||||
(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+)))
|
|
||||||
|
|
||||||
(define-public librsvg-next
|
|
||||||
(package
|
|
||||||
(name "librsvg")
|
|
||||||
(version "2.50.2")
|
|
||||||
(source (origin
|
(source (origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (string-append "mirror://gnome/sources/librsvg/"
|
(uri (string-append "mirror://gnome/sources/librsvg/"
|
||||||
|
@ -3299,11 +3231,10 @@ (define-public librsvg-next
|
||||||
"librsvg-" version ".tar.xz"))
|
"librsvg-" version ".tar.xz"))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"1lsnl08b5pjf01q3agixjd53islw5rqkc38r31rlmm2crrqz44b2"))
|
"0n79i4wj9hm0d3bbn4xvknq5ylhqs16pvhaqr1rxspx9wfc8lad4"))
|
||||||
(modules '((guix build utils)))
|
(modules '((guix build utils)))
|
||||||
(snippet
|
(snippet
|
||||||
'(begin (delete-file-recursively "vendor")
|
'(begin (delete-file-recursively "vendor")))))
|
||||||
#t))))
|
|
||||||
(build-system cargo-build-system)
|
(build-system cargo-build-system)
|
||||||
(outputs '("out" "doc"))
|
(outputs '("out" "doc"))
|
||||||
(arguments
|
(arguments
|
||||||
|
@ -3354,7 +3285,7 @@ (define-public librsvg-next
|
||||||
("rust-chrono" ,rust-chrono-0.4)
|
("rust-chrono" ,rust-chrono-0.4)
|
||||||
("rust-criterion" ,rust-criterion-0.3)
|
("rust-criterion" ,rust-criterion-0.3)
|
||||||
("rust-float-cmp" ,rust-float-cmp-0.8)
|
("rust-float-cmp" ,rust-float-cmp-0.8)
|
||||||
("rust-lopdf" ,rust-lopdf-0.25)
|
("rust-lopdf" ,rust-lopdf-0.26)
|
||||||
("rust-png" ,rust-png-0.16)
|
("rust-png" ,rust-png-0.16)
|
||||||
("rust-predicates" ,rust-predicates-1)
|
("rust-predicates" ,rust-predicates-1)
|
||||||
("rust-tempfile" ,rust-tempfile-3))
|
("rust-tempfile" ,rust-tempfile-3))
|
||||||
|
@ -3366,8 +3297,7 @@ (define-public librsvg-next
|
||||||
(substitute* "rsvg-docs.xml"
|
(substitute* "rsvg-docs.xml"
|
||||||
(("http://www.oasis-open.org/docbook/xml/4.3/")
|
(("http://www.oasis-open.org/docbook/xml/4.3/")
|
||||||
(string-append (assoc-ref inputs "docbook-xml")
|
(string-append (assoc-ref inputs "docbook-xml")
|
||||||
"/xml/dtd/docbook/"))))
|
"/xml/dtd/docbook/"))))))
|
||||||
#t))
|
|
||||||
(add-after 'unpack 'prepare-for-build
|
(add-after 'unpack 'prepare-for-build
|
||||||
(lambda _
|
(lambda _
|
||||||
;; In lieu of #:make-flags
|
;; In lieu of #:make-flags
|
||||||
|
@ -3375,8 +3305,7 @@ (define-public librsvg-next
|
||||||
;; Something about the build environment resists building
|
;; Something about the build environment resists building
|
||||||
;; successfully with the '--locked' flag.
|
;; successfully with the '--locked' flag.
|
||||||
(substitute* '("Makefile.am" "Makefile.in")
|
(substitute* '("Makefile.am" "Makefile.in")
|
||||||
(("--locked") ""))
|
(("--locked") ""))))
|
||||||
#t))
|
|
||||||
(add-before 'configure 'pre-configure
|
(add-before 'configure 'pre-configure
|
||||||
(lambda _
|
(lambda _
|
||||||
(substitute* "gdk-pixbuf-loader/Makefile.in"
|
(substitute* "gdk-pixbuf-loader/Makefile.in"
|
||||||
|
@ -3388,8 +3317,7 @@ (define-public librsvg-next
|
||||||
"loaders\n"))
|
"loaders\n"))
|
||||||
;; Drop the 'loaders.cache' file, it's in gdk-pixbuf+svg.
|
;; Drop the 'loaders.cache' file, it's in gdk-pixbuf+svg.
|
||||||
(("gdk_pixbuf_cache_file = .*$")
|
(("gdk_pixbuf_cache_file = .*$")
|
||||||
"gdk_pixbuf_cache_file = $(TMPDIR)/loaders.cache\n"))
|
"gdk_pixbuf_cache_file = $(TMPDIR)/loaders.cache\n"))))
|
||||||
#t))
|
|
||||||
(add-after 'configure 'gnu-configure
|
(add-after 'configure 'gnu-configure
|
||||||
(lambda* (#:key inputs native-inputs outputs #:allow-other-keys)
|
(lambda* (#:key inputs native-inputs outputs #:allow-other-keys)
|
||||||
((assoc-ref gnu:%standard-phases 'configure)
|
((assoc-ref gnu:%standard-phases 'configure)
|
||||||
|
@ -3406,8 +3334,7 @@ (define-public librsvg-next
|
||||||
(lambda* (#:key vendor-dir #:allow-other-keys)
|
(lambda* (#:key vendor-dir #:allow-other-keys)
|
||||||
;; Don't keep the whole tarball in the vendor directory
|
;; Don't keep the whole tarball in the vendor directory
|
||||||
(delete-file-recursively
|
(delete-file-recursively
|
||||||
(string-append vendor-dir "/" ,name "-" ,version ".tar.xz"))
|
(string-append vendor-dir "/" ,name "-" ,version ".tar.xz"))))
|
||||||
#t))
|
|
||||||
(replace 'build
|
(replace 'build
|
||||||
(assoc-ref gnu:%standard-phases 'build))
|
(assoc-ref gnu:%standard-phases 'build))
|
||||||
(add-before 'check 'ignore-failing-tests
|
(add-before 'check 'ignore-failing-tests
|
||||||
|
@ -3433,8 +3360,7 @@ (define-public librsvg-next
|
||||||
(("fn multiple_input_files_not_allowed_for_png_output" all)
|
(("fn multiple_input_files_not_allowed_for_png_output" all)
|
||||||
(string-append "#[ignore] " all))
|
(string-append "#[ignore] " all))
|
||||||
(("fn stylesheet_option_error" all)
|
(("fn stylesheet_option_error" all)
|
||||||
(string-append "#[ignore] " all)))
|
(string-append "#[ignore] " all)))))
|
||||||
#t))
|
|
||||||
(replace 'check
|
(replace 'check
|
||||||
(lambda* args
|
(lambda* args
|
||||||
((assoc-ref gnu:%standard-phases 'check)
|
((assoc-ref gnu:%standard-phases 'check)
|
||||||
|
@ -6277,7 +6203,7 @@ (define-public eog
|
||||||
("libexif" ,libexif)
|
("libexif" ,libexif)
|
||||||
("libpeas" ,libpeas)
|
("libpeas" ,libpeas)
|
||||||
("libjpeg" ,libjpeg-turbo)
|
("libjpeg" ,libjpeg-turbo)
|
||||||
("librsvg" ,librsvg-next)
|
("librsvg" ,librsvg)
|
||||||
("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
|
("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
|
||||||
("gtk+" ,gtk+)))
|
("gtk+" ,gtk+)))
|
||||||
(home-page "https://wiki.gnome.org/Apps/EyeOfGnome")
|
(home-page "https://wiki.gnome.org/Apps/EyeOfGnome")
|
||||||
|
|
Loading…
Reference in a new issue