mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 13:28:12 -05:00
gnu: sdsl-lite: Don't use bundled libraries.
* gnu/packages/datastructures.scm (sdsl-lite)[source]: Remove bundled libraries in a snippet. Add patch to link to external libraries. [arguments]: Add phase to install static library. [native-inputs]: Add libdivsufsort.
This commit is contained in:
parent
2b04bb3b4e
commit
aca2bf51b7
1 changed files with 24 additions and 1 deletions
|
@ -213,8 +213,31 @@ (define-public sdsl-lite
|
||||||
".tar.gz.offline.install.gz"))
|
".tar.gz.offline.install.gz"))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"1v86ivv3mmdy802i9xkjpxb4cggj3s27wb19ja4sw1klnivjj69g"))))
|
"1v86ivv3mmdy802i9xkjpxb4cggj3s27wb19ja4sw1klnivjj69g"))
|
||||||
|
(modules '((guix build utils)))
|
||||||
|
(snippet
|
||||||
|
'(begin
|
||||||
|
(delete-file-recursively "external") #t))
|
||||||
|
(patches
|
||||||
|
(list (origin
|
||||||
|
(method url-fetch)
|
||||||
|
(uri "https://salsa.debian.org/science-team/libsdsl/raw/debian/2.1.1+dfsg-2/debian/patches/0001-Patch-cmake-files.patch")
|
||||||
|
(file-name "sdsl-lite-dont-use-bundled-libraries.patch")
|
||||||
|
(sha256
|
||||||
|
(base32
|
||||||
|
"0m542xpys54bni29zibgrfpgpd0zgyny4h131virxsanixsbz52z")))))))
|
||||||
(build-system cmake-build-system)
|
(build-system cmake-build-system)
|
||||||
|
(arguments
|
||||||
|
'(#:phases
|
||||||
|
(modify-phases %standard-phases
|
||||||
|
(add-after 'install 'install-static-library
|
||||||
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
|
(let ((out (assoc-ref outputs "out")))
|
||||||
|
(copy-file "lib/libsdsl_static.a"
|
||||||
|
(string-append out "/lib/libsdsl.a")))
|
||||||
|
#t)))))
|
||||||
|
(native-inputs
|
||||||
|
`(("libdivsufsort" ,libdivsufsort)))
|
||||||
(home-page "https://github.com/simongog/sdsl-lite")
|
(home-page "https://github.com/simongog/sdsl-lite")
|
||||||
(synopsis "Succinct data structure library")
|
(synopsis "Succinct data structure library")
|
||||||
(description "The Succinct Data Structure Library (SDSL) is a powerful and
|
(description "The Succinct Data Structure Library (SDSL) is a powerful and
|
||||||
|
|
Loading…
Reference in a new issue