gnu: restinio: Prepare for tests and propagate some inputs.

* gnu/packages/networking.scm (restinio): Update to 0.6.15.
[configure-flags]: New field.
[phases]: {change-directory}: Change directory to 'dev'.
[inputs]: Remove zlib, catch2, boost, pcre, and pcre2.
[propagated-inputs]: Add pcre, pcre2, and zlib.
[native-inputs]: Add catch2, clara, and json-dto.
This commit is contained in:
Maxim Cournoyer 2022-11-04 15:03:24 -04:00
parent bc27d83b96
commit 4f407a9c49
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -3640,24 +3640,36 @@ (define-public restinio
(base32 (base32
"1f8d5nfm8jqhspzsslwb1b7j4glipz31i9vszrcnkx3clc39nj2n")))) "1f8d5nfm8jqhspzsslwb1b7j4glipz31i9vszrcnkx3clc39nj2n"))))
(build-system cmake-build-system) (build-system cmake-build-system)
(inputs ; TODO: Need to force-keep references on some inputs, e.g. boost. (arguments
(list zlib (list
catch2 ;; Multiple tests fail to run in the build container due to host name
openssl ;; resolution (see: https://github.com/Stiffstream/restinio/issues/172).
boost #:tests? #f
pcre #:configure-flags #~(list "-DRESTINIO_FIND_DEPS=ON"
pcre2 "-DRESTINIO_INSTALL=ON"
"-DRESTINIO_TEST=ON"
"-DRESTINIO_USE_EXTERNAL_HTTP_PARSER=ON"
"-DRESTINIO_USE_EXTERNAL_SOBJECTIZER=ON")
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'change-directory
(lambda _
(chdir "dev"))))))
(native-inputs
(list catch2
clara
json-dto))
(inputs
(list openssl
sobjectizer)) sobjectizer))
(propagated-inputs (propagated-inputs
(list asio fmt-8 http-parser)) ;; These are all #include'd by restinio's .hpp header files.
(arguments (list asio
`(#:configure-flags '("-DRESTINIO_INSTALL=on") fmt-8
#:tests? #f ; TODO: The tests are called from the root CMakelist, need RESTINIO_TEST=on. http-parser
#:phases pcre
(modify-phases %standard-phases pcre2
(add-after 'unpack 'change-directory zlib))
(lambda _
(chdir "dev/restinio"))))))
(home-page "https://stiffstream.com/en/products/restinio.html") (home-page "https://stiffstream.com/en/products/restinio.html")
(synopsis "C++14 library that gives you an embedded HTTP/Websocket server") (synopsis "C++14 library that gives you an embedded HTTP/Websocket server")
(description "RESTinio is a header-only C++14 library that gives you an embedded (description "RESTinio is a header-only C++14 library that gives you an embedded