me
/
guix
Archived
1
0
Fork 0

gnu: efl: Only conditionally enable the optional SVG support.

* gnu/packages/enlightenment.scm (efl)[inputs]
{librsvg}: Only provide it when the target is x86_64.
[configure-flags]: Remove dead code.  Conditionally disable the 'rsvg' loader
via the 'evas-loaders-disabler' flag.
master
Maxim Cournoyer 2021-11-25 15:44:35 -05:00
parent 0702bbe1f7
commit 0df12a32bb
No known key found for this signature in database
GPG Key ID: 1260E46482E63562
1 changed files with 22 additions and 15 deletions

View File

@ -92,7 +92,11 @@
("ibus" ,ibus)
("mesa" ,mesa)
("libraw" ,libraw)
("librsvg" ,librsvg)
;; Only enable the optional SVG support on x86_64, as this is the only
;; architecture where librsvg can be built.
,@(if (target-x86-64?)
`(("librsvg" ,librsvg))
'())
("libspectre" ,libspectre)
("libtiff" ,libtiff)
("libxau" ,libxau)
@ -138,17 +142,20 @@
("wayland" ,wayland)
("zlib" ,zlib)))
(arguments
`(#:configure-flags '("-Dembedded-lz4=false"
`(#:configure-flags
`("-Dembedded-lz4=false"
"-Dbuild-examples=false"
"-Decore-imf-loaders-disabler=scim"
"-Dglib=true"
"-Dmount-path=/run/setuid-programs/mount"
"-Dunmount-path=/run/setuid-programs/umount"
;(string-append "-Ddictionaries-hyphen-dir="
; (assoc-ref %build-inputs "hyphen")
; "/share/hyphen")
"-Dnetwork-backend=connman"
;; for wayland
;; Add 'rsvg' to the default list (json and avif) of disabled loaders
;; unless librsvg is available.
,,@(if (target-x86-64?)
'()
(list "-Devas-loaders-disabler=json,avif,rsvg"))
;; For Wayland.
"-Dwl=true"
"-Ddrm=true")
#:tests? #f ; Many tests fail due to timeouts and network requests.