[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: gnu: Add abseil-cpp.
From: |
guix-commits |
Subject: |
branch master updated: gnu: Add abseil-cpp. |
Date: |
Wed, 04 Mar 2020 09:12:43 -0500 |
This is an automated email from the git hooks/post-receive script.
ambrevar pushed a commit to branch master
in repository guix.
The following commit(s) were added to refs/heads/master by this push:
new 33aa372 gnu: Add abseil-cpp.
33aa372 is described below
commit 33aa372eecaf274e5542228623194d27744d3cd3
Author: Roel Janssen <address@hidden>
AuthorDate: Wed Mar 4 15:03:29 2020 +0100
gnu: Add abseil-cpp.
* gnu/packages/cpp.scm (abseil-cpp): New variable.
Signed-off-by: Pierre Neidhardt <address@hidden>
---
gnu/packages/cpp.scm | 45 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 45 insertions(+)
diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm
index 8b32c3f..dba9ec7 100644
--- a/gnu/packages/cpp.scm
+++ b/gnu/packages/cpp.scm
@@ -7,6 +7,7 @@
;;; Copyright © 2019 Pierre Neidhardt <address@hidden>
;;; Copyright © 2019 Jan Wielkiewicz <address@hidden>
;;; Copyright © 2020 Nicolò Balzarotti <address@hidden>
+;;; Copyright © 2020 Roel Janssen <address@hidden>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -439,3 +440,47 @@ create fluid interpolations when animating position,
scale, rotation, frames or
other values of screen objects, by setting their values as the tween starting
point and then, after each tween step, plugging back the result.")
(license license:expat)))
+
+(define-public abseil-cpp
+ (package
+ (name "abseil-cpp")
+ (version "20200225")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/abseil/abseil-cpp.git")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0wb04pszzrl39ny1pz9jvvq8lbbm355dd60jspcyqfwxnk6njgd1"))))
+ (build-system cmake-build-system)
+ (arguments
+ `(#:configure-flags (list "-DBUILD_SHARED_LIBS=ON"
+ "-DABSL_RUN_TESTS=ON"
+ ;; Needed, else we get errors like:
+ ;;
+ ;; ld:
CMakeFiles/absl_periodic_sampler_test.dir/internal/periodic_sampler_test.cc.o:
+ ;; undefined reference to symbol
'_ZN7testing4Mock16UnregisterLockedEPNS_8internal25UntypedFunctionMockerBaseE'
+ ;; ld:
/gnu/store/bxapb1f1l8frjpbjckk3zdxhmcig3xzk-googletest-1.10.0/lib/libgmock.so:
+ ;; error adding symbols: DSO missing from
command line
+ ;; collect2: error: ld returned 1 exit status
+ "-DCMAKE_EXE_LINKER_FLAGS=-lgtest -lpthread
-lgmock")
+ #:phases
+ (modify-phases %standard-phases
+ (add-before 'configure 'remove-gtest-check
+ ;; The CMakeLists fails to find our googletest for some reason, but
+ ;; it works nonetheless.
+ (lambda _
+ (substitute* "CMakeLists.txt"
+ (("check_target\\(gtest\\)") "")
+ (("check_target\\(gtest_main\\)") "")
+ (("check_target\\(gmock\\)") "")))))))
+ (native-inputs
+ `(("googletest" ,googletest)))
+ (home-page "https://abseil.io")
+ (synopsis "Augmented C++ standard library")
+ (description "Abseil is a collection of C++ library code designed to
+augment the C++ standard library. The Abseil library code is collected from
+Google's C++ code base.")
+ (license license:asl2.0)))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: gnu: Add abseil-cpp.,
guix-commits <=