gnu: Add julia-gumbo.

* gnu/packages/julia-xyz.scm (julia-gumbo-0.5.1): New variable.
This commit is contained in:
nixo 2019-10-12 15:16:23 +02:00
parent 7386050234
commit 4121adffc2
1 changed files with 44 additions and 0 deletions

View File

@ -25,6 +25,7 @@
#:use-module (gnu packages graphics)
#:use-module (gnu packages maths)
#:use-module (gnu packages video)
#:use-module (gnu packages web)
#:use-module (gnu packages xml)
#:use-module (gnu packages tls))
@ -2149,3 +2150,46 @@ that any package that contains such a datastructure may import and extend in
order to take advantage of any generic tree algorithm in this package (or
other packages compatible with this package).")
(license license:expat)))
(define-public julia-gumbo
(package
(name "julia-gumbo")
(version "0.5.1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/JuliaWeb/Gumbo.jl")
(commit (string-append "v" version))))
(file-name "Gumbo")
(sha256
(base32 "1wsdrqz3jj684paanmpla9kvpdcv7sbsw2967kljykvb4plvsx95"))))
(propagated-inputs `(("julia-sha" ,julia-sha)
("julia-abstracttrees" ,julia-abstracttrees)
("julia-binaryprovider" ,julia-binaryprovider)
("julia-compat" ,julia-compat)
("gumbo-parser", gumbo-parser)))
(build-system julia-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(add-before 'precompile 'build-deps
(lambda* (#:key outputs source inputs #:allow-other-keys)
(let ((f (open-file
(string-append
(assoc-ref outputs "out")
"/share/julia/packages/"
(string-append
(strip-store-file-name source) "/deps/deps.jl"))
"w")))
(display (string-append "const libgumbo = \""
(assoc-ref inputs "gumbo-parser")
"/lib/libgumbo.so\"\n") f)
(close-port f))
#t)))))
(home-page "https://github.com/JuliaWeb/Gumbo.jl")
(synopsis "Julia wrapper around Google's gumbo C library for parsing
HTML")
(description "@code{Gumbo.jl} is a Julia wrapper around Google's gumbo
library for parsing HTML.")
(license license:expat)))