From ff6bb37299c71d535eae472791357be3d66c0c12 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Mon, 5 Jun 2023 21:59:44 +0300 Subject: gnu: cpp-httplib: Update to 0.12.5. * gnu/packages/cpp.scm (cpp-httplib): Update to 0.12.5. [arguments]: Adjust configure-flags to build the tests. Add a make-flag to set CXX. Adjust custom 'disable-network-tests phase to skip more network tests. Remove custom 'check phase. [native-inputs]: Add googletest. --- gnu/packages/cpp.scm | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) (limited to 'gnu') diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm index 9983213f7f..365b15a3b9 100644 --- a/gnu/packages/cpp.scm +++ b/gnu/packages/cpp.scm @@ -25,7 +25,7 @@ ;;; Copyright © 2021 jgart ;;; Copyright © 2021 Julien Lepiller ;;; Copyright © 2021 Disseminate Dissent -;;; Copyright © 2022 Efraim Flashner +;;; Copyright © 2022, 2023 Efraim Flashner ;;; Copyright © 2022 muradm ;;; Copyright © 2022 Attila Lendvai ;;; Copyright © 2022 Arun Isaac @@ -821,7 +821,7 @@ (define-public cpp-httplib ;; header (package (name "cpp-httplib") - (version "0.8.8") + (version "0.12.5") (source (origin (method git-fetch) @@ -829,16 +829,19 @@ (define-public cpp-httplib (url "https://github.com/yhirose/cpp-httplib") (commit (string-append "v" version)))) (sha256 - (base32 "0c0gyfbvm34bgrqy9fhfxw1f8nb9zhf063j7xq91k892flb7qm1c")) + (base32 "1m1p6h1dsxg4kg5zziffb6xl8zgjbkw7gmgmmlnrhpl3bswam87n")) (file-name (git-file-name name version)))) (build-system cmake-build-system) (arguments `(#:configure-flags '("-DBUILD_SHARED_LIBS=ON" + "-DHTTPLIB_TEST=ON" "-DHTTPLIB_COMPILE=ON" "-DHTTPLIB_REQUIRE_BROTLI=ON" "-DHTTPLIB_REQUIRE_OPENSSL=ON" "-DHTTPLIB_REQUIRE_ZLIB=ON") + #:make-flags + '(,(string-append "CXX=" (cxx-for-target))) #:phases (modify-phases %standard-phases (add-after 'unpack 'disable-network-tests @@ -850,21 +853,19 @@ (define-public cpp-httplib (string-append "(DISABLED_" test)))) ;; There are tests requiring network access, disable them '("AbsoluteRedirectTest" "BaseAuthTest" "CancelTest" + "ConnectionErrorTest" "ChunkedEncodingTest" "ChunkedEncodingTest" + "ClientDefaultHeadersTest" "DecodeWithChunkedEncoding" "DefaultHeadersTest" "DigestAuthTest" "HttpsToHttpRedirectTest" + "HostnameToIPConversionTest" "RangeTest" "RedirectTest" "RelativeRedirectTest" - "SSLClientTest" "SendAPI" "TooManyRedirectTest" "UrlWithSpace" - "YahooRedirectTest" "YahooRedirectTest")))) - (replace 'check - (lambda* (#:key source tests? #:allow-other-keys) - ;; openssl genrsa wants to write a file in the git checkout - (when tests? - (with-directory-excursion "../source/test" - (invoke "make")))))))) + "SSLClientTest" "SendAPI" + "SpecifyServerIPAddressTest" + "TooManyRedirectTest" "UrlWithSpace" + "YahooRedirectTest" "YahooRedirectTest"))))))) (native-inputs - ;; required to build shared lib - (list python)) + (list googletest python)) (inputs (list brotli openssl zlib)) (home-page "https://github.com/yhirose/cpp-httplib") -- cgit v1.2.3