~ruther/guix-local

e7b8d43eb2398e566e56b30466a9c3773a9ecd20 — Greg Hogan 1 year, 3 months ago 8ecb605
gnu: re2-next: Fix tests.

* gnu/packages/regex.scm (re2-next)[arguments]: Add #:tests?.
<#:configure-flags>: Build tests for native builds.
[native-inputs]: Add googlebenchmark.

Change-Id: I565fdd236d0c37b84c5bacc64a8c27aa17ddd8e0
1 files changed, 4 insertions(+), 3 deletions(-)

M gnu/packages/regex.scm
M gnu/packages/regex.scm => gnu/packages/regex.scm +4 -3
@@ 81,12 81,13 @@ Python.  It is a C++ library.")
               (base32
                "11q0kz8b3y5ysn58fr62yhib520f9l3grbn8gxr8x5s9k700vq11"))))
    (build-system cmake-build-system)
    (arguments (list #:configure-flags #~(list "-DBUILD_SHARED_LIBS=ON"
    (arguments (list #:tests? (not (%current-target-system))
                     #:configure-flags #~(list "-DBUILD_SHARED_LIBS=ON"
                                               ;; "-DRE2_USE_ICU=ON"
                                               #$@(if (%current-target-system)
                                               #$@(if (not (%current-target-system))
                                                      #~("-DRE2_BUILD_TESTING=ON")
                                                      #~()))))
    (native-inputs (list googletest))
    (native-inputs (list googlebenchmark googletest))
    (propagated-inputs (list abseil-cpp))))

(define-public tre