[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
19/19: gnu: sdsl-lite: Don't use bundled libraries.
From: |
guix-commits |
Subject: |
19/19: gnu: sdsl-lite: Don't use bundled libraries. |
Date: |
Mon, 25 Nov 2019 07:08:56 -0500 (EST) |
efraim pushed a commit to branch master
in repository guix.
commit aca2bf51b767bfdc152896430f83b7c1124c346d
Author: Efraim Flashner <address@hidden>
Date: Mon Nov 25 09:58:15 2019 +0200
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.
---
gnu/packages/datastructures.scm | 25 ++++++++++++++++++++++++-
1 file changed, 24 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/datastructures.scm b/gnu/packages/datastructures.scm
index 36a135c..e7833b8 100644
--- a/gnu/packages/datastructures.scm
+++ b/gnu/packages/datastructures.scm
@@ -213,8 +213,31 @@ to the structure and choosing one or more fields to act as
the key.")
".tar.gz.offline.install.gz"))
(sha256
(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)
+ (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")
(synopsis "Succinct data structure library")
(description "The Succinct Data Structure Library (SDSL) is a powerful and
- branch master updated (8e77da0 -> aca2bf5), guix-commits, 2019/11/25
- 11/19: gnu: unshield: Don't use unstable tarball., guix-commits, 2019/11/25
- 15/19: gnu: coq-bignums: Don't use unstable tarball., guix-commits, 2019/11/25
- 14/19: gnu: bioperl-minimal: Don't use unstable tarball., guix-commits, 2019/11/25
- 13/19: gnu: innoextract: Update to 1.8., guix-commits, 2019/11/25
- 17/19: gnu: libdivsufsort: Move to datastructures.scm., guix-commits, 2019/11/25
- 12/19: gnu: innoextract: Don't use unstable tarball., guix-commits, 2019/11/25
- 19/19: gnu: sdsl-lite: Don't use bundled libraries.,
guix-commits <=
- 18/19: gnu: sdsl-lite: Remove unused inputs., guix-commits, 2019/11/25
- 16/19: gnu: Add boost-static., guix-commits, 2019/11/25
- 10/19: gnu: snappy: Don't use unstable tarball., guix-commits, 2019/11/25
- 07/19: gnu: sparsehash: Don't use unstable tarball., guix-commits, 2019/11/25
- 05/19: gnu: imlib2: Update to 1.6.0., guix-commits, 2019/11/25
- 03/19: gnu: gnunet-gtk: Update to 0.11.7., guix-commits, 2019/11/25
- 02/19: gnu: gnunet: Update to 0.11.8., guix-commits, 2019/11/25
- 08/19: gnu: cinnamon-desktop: Don't use unstable tarball., guix-commits, 2019/11/25
- 04/19: gnu: gnunet-gtk: Sort inputs alphabetically., guix-commits, 2019/11/25
- 09/19: gnu: sfarklib: Don't use unstable tarball., guix-commits, 2019/11/25