mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
gnu: Add cpp-ada-url-parser.
* gnu/packages/cpp.scm (cpp-ada-url-parser): New variable. (cpm-for-cpp-ada-url-parser): New variable. Change-Id: I0b61c3b136e2781774c6a5e67eeb6b662e97dd88 Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
This commit is contained in:
parent
b695fb48d1
commit
ecdcc19200
1 changed files with 57 additions and 0 deletions
|
@ -3284,3 +3284,60 @@ (define-public tl-optional
|
|||
the std::optional for C++11/14/17, with support for monadic operations added in
|
||||
C++23.")
|
||||
(license license:cc0)))
|
||||
|
||||
(define-public cpp-ada-url-parser
|
||||
(package
|
||||
(name "cpp-ada-url-parser")
|
||||
(version "2.9.2")
|
||||
(source
|
||||
(origin
|
||||
(method git-fetch)
|
||||
(uri (git-reference
|
||||
(url "https://github.com/ada-url/ada")
|
||||
(commit (string-append "v" version))))
|
||||
(file-name (git-file-name name version))
|
||||
(sha256
|
||||
(base32 "0xvvjlia627ajl966gdxzy2b1j0jiimx7zx8ypmffwx0k6x72qam"))))
|
||||
(build-system cmake-build-system)
|
||||
(arguments
|
||||
(list
|
||||
#:configure-flags
|
||||
#~(list "-DCPM_LOCAL_PACKAGES_ONLY=ON")
|
||||
#:phases
|
||||
#~(modify-phases %standard-phases
|
||||
(add-after 'unpack 'patch-deps
|
||||
(lambda _
|
||||
(substitute* "CMakeLists.txt"
|
||||
(("cmake/CPM.cmake")
|
||||
(string-append #$(this-package-native-input
|
||||
"cpm-cmake")
|
||||
"/lib/cmake/CPM.cmake"))
|
||||
;; We force CPM to find system packages rather than using git
|
||||
;; to download them.
|
||||
(("Git_FOUND") "TRUE")
|
||||
(("(simdjson@)[0-9.]*" _ simdjson)
|
||||
(string-append simdjson
|
||||
#$(package-version (this-package-native-input
|
||||
"simdjson")))))
|
||||
(substitute* "tools/cli/CMakeLists.txt"
|
||||
(("(VERSION\\s)[0-9.]*" _ a)
|
||||
(string-append a
|
||||
#$(package-version (this-package-native-input
|
||||
"cxxopts")))))))
|
||||
(add-after 'patch-deps 'python-zipfile-disable-strict-timestamps
|
||||
(lambda _
|
||||
(substitute* "singleheader/amalgamate.py"
|
||||
(("zipfile.ZIP_DEFLATED")
|
||||
"zipfile.ZIP_DEFLATED, strict_timestamps=False")))))))
|
||||
(native-inputs (list cpm-cmake
|
||||
cxxopts
|
||||
fmt-10
|
||||
googletest
|
||||
python
|
||||
simdjson))
|
||||
(home-page "https://github.com/ada-url/ada")
|
||||
(synopsis "URL parser")
|
||||
(description
|
||||
"Ada is a fast and spec-compliant URL parser written in C++.
|
||||
Specification for URL parser can be found from the WHATWG website.")
|
||||
(license license:gpl3+)))
|
||||
|
|
Loading…
Reference in a new issue