mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 13:58:15 -05:00
gnu: librsvg: Use 'modify-phases' syntax.
* gnu/packages/gnome.scm (librsvg)[arguments]: Use 'modify-phases' syntax.
This commit is contained in:
parent
56ccafbe7c
commit
b6239e452c
1 changed files with 20 additions and 21 deletions
|
@ -1178,27 +1178,26 @@ (define-public librsvg
|
|||
(build-system gnu-build-system)
|
||||
(arguments
|
||||
`(#:phases
|
||||
(alist-cons-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")))
|
||||
(alist-cons-after
|
||||
'unpack 'remove-failing-test
|
||||
;; This test fails on aarch64.
|
||||
(lambda _
|
||||
(delete-file "tests/fixtures/reftests/bugs/777834-empty-text-children.svg")
|
||||
(delete-file "tests/fixtures/reftests/bugs/777834-empty-text-children-ref.png")
|
||||
#t)
|
||||
%standard-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-after 'unpack 'remove-failing-test
|
||||
;; This test fails on aarch64.
|
||||
(lambda _
|
||||
(delete-file "tests/fixtures/reftests/bugs/777834-empty-text-children.svg")
|
||||
(delete-file "tests/fixtures/reftests/bugs/777834-empty-text-children-ref.png")
|
||||
#t)))))
|
||||
(native-inputs
|
||||
`(("pkg-config" ,pkg-config)
|
||||
("glib" ,glib "bin") ; glib-mkenums, etc.
|
||||
|
|
Loading…
Reference in a new issue