gnu: librsvg-next: Update package definition.
* gnu/packages/gnome.scm (librsvg-next): Remove inheritance from librsvg. [outputs]: Add "doc". [arguments]<#:phases>['patch-docbook-xml]: New phase. [arguments]<#:configure-flags>: Add --with-html-dir. [native-inputs]: Add docbook-xml, python, ruby. [inputs]: Add fontconfig, freetype, harfbuzz. [propagated-inputs]: Add cairo, gdk-pixbuf, glib. Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org>
This commit is contained in:
parent
97787a24df
commit
b030bc0c27
1 changed files with 48 additions and 13 deletions
|
@ -3047,7 +3047,6 @@ library.")
|
||||||
|
|
||||||
(define-public librsvg-next
|
(define-public librsvg-next
|
||||||
(package
|
(package
|
||||||
(inherit librsvg)
|
|
||||||
(name "librsvg")
|
(name "librsvg")
|
||||||
(version "2.48.8")
|
(version "2.48.8")
|
||||||
(source (origin
|
(source (origin
|
||||||
|
@ -3063,11 +3062,12 @@ library.")
|
||||||
'(begin (delete-file-recursively "vendor")
|
'(begin (delete-file-recursively "vendor")
|
||||||
#t))))
|
#t))))
|
||||||
(build-system cargo-build-system)
|
(build-system cargo-build-system)
|
||||||
|
(outputs '("out" "doc"))
|
||||||
(arguments
|
(arguments
|
||||||
`(#:modules ((guix build cargo-build-system)
|
`(#:modules
|
||||||
|
((guix build cargo-build-system)
|
||||||
(guix build utils)
|
(guix build utils)
|
||||||
((guix build gnu-build-system) #:prefix gnu:))
|
((guix build gnu-build-system) #:prefix gnu:))
|
||||||
#:vendor-dir "vendor"
|
|
||||||
#:cargo-inputs
|
#:cargo-inputs
|
||||||
(("rust-bitflags" ,rust-bitflags-1)
|
(("rust-bitflags" ,rust-bitflags-1)
|
||||||
("rust-cairo-rs" ,rust-cairo-rs-0.8)
|
("rust-cairo-rs" ,rust-cairo-rs-0.8)
|
||||||
|
@ -3109,14 +3109,21 @@ library.")
|
||||||
("rust-criterion" ,rust-criterion-0.3))
|
("rust-criterion" ,rust-criterion-0.3))
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
|
(add-after 'unpack 'patch-docbook-xml
|
||||||
|
(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-after 'unpack 'prepare-for-build
|
(add-after 'unpack 'prepare-for-build
|
||||||
(lambda _
|
(lambda _
|
||||||
;; In lieu of #:make-flags
|
;; In lieu of #:make-flags
|
||||||
(setenv "CC" ,(cc-for-target))
|
(setenv "CC" ,(cc-for-target))
|
||||||
;; 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"
|
(substitute* '("Makefile.am" "Makefile.in")
|
||||||
"Makefile.in")
|
|
||||||
(("--locked") ""))
|
(("--locked") ""))
|
||||||
#t))
|
#t))
|
||||||
(add-before 'configure 'pre-configure
|
(add-before 'configure 'pre-configure
|
||||||
|
@ -3138,8 +3145,12 @@ library.")
|
||||||
#:native-inputs native-inputs
|
#:native-inputs native-inputs
|
||||||
#:inputs inputs
|
#:inputs inputs
|
||||||
#:outputs outputs
|
#:outputs outputs
|
||||||
#:configure-flags (list "--disable-static"
|
#:configure-flags
|
||||||
"--enable-vala"))))
|
(list "--disable-static"
|
||||||
|
"--enable-vala"
|
||||||
|
(string-append "--with-html-dir="
|
||||||
|
(assoc-ref %outputs "doc")
|
||||||
|
"/share/gtk-doc/html")))))
|
||||||
(add-after 'configure 'dont-vendor-self
|
(add-after 'configure 'dont-vendor-self
|
||||||
(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
|
||||||
|
@ -3154,9 +3165,33 @@ library.")
|
||||||
#:test-target "check")))
|
#:test-target "check")))
|
||||||
(replace 'install
|
(replace 'install
|
||||||
(assoc-ref gnu:%standard-phases 'install)))))
|
(assoc-ref gnu:%standard-phases 'install)))))
|
||||||
|
(native-inputs
|
||||||
|
`(("docbook-xml" ,docbook-xml-4.3)
|
||||||
|
("glib" ,glib "bin")
|
||||||
|
("gobject-introspection" ,gobject-introspection)
|
||||||
|
("pkg-config" ,pkg-config)
|
||||||
|
("python" ,python-wrapper)
|
||||||
|
("ruby" ,ruby)
|
||||||
|
("vala" ,vala)))
|
||||||
(inputs
|
(inputs
|
||||||
`(("pango" ,pango)
|
`(("bzip2" ,bzip2)
|
||||||
,@(alist-delete "pango" (package-inputs librsvg))))
|
("fontconfig" ,fontconfig)
|
||||||
|
("freetype" ,freetype)
|
||||||
|
("harfbuzz" ,harfbuzz)
|
||||||
|
("libcroco" ,libcroco)
|
||||||
|
("libgsf" ,libgsf)
|
||||||
|
("libxml2" ,libxml2)
|
||||||
|
("pango" ,pango)))
|
||||||
|
(propagated-inputs
|
||||||
|
`(("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")
|
||||||
(license license:lgpl2.1+)))
|
(license license:lgpl2.1+)))
|
||||||
|
|
||||||
(define-public libidl
|
(define-public libidl
|
||||||
|
|
Reference in a new issue