[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
12/21: gnu: restinio: Prepare for tests and propagate some inputs.
From: |
guix-commits |
Subject: |
12/21: gnu: restinio: Prepare for tests and propagate some inputs. |
Date: |
Sun, 6 Nov 2022 00:11:19 -0400 (EDT) |
apteryx pushed a commit to branch master
in repository guix.
commit 4f407a9c49c1948e916e41b0597254ff6069e7f1
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Fri Nov 4 15:03:24 2022 -0400
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.
---
gnu/packages/networking.scm | 44 ++++++++++++++++++++++++++++----------------
1 file changed, 28 insertions(+), 16 deletions(-)
diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm
index b0393a7e69..99fd1445f2 100644
--- a/gnu/packages/networking.scm
+++ b/gnu/packages/networking.scm
@@ -3640,24 +3640,36 @@ communication over HTTP.")
(base32
"1f8d5nfm8jqhspzsslwb1b7j4glipz31i9vszrcnkx3clc39nj2n"))))
(build-system cmake-build-system)
- (inputs ; TODO: Need to force-keep references
on some inputs, e.g. boost.
- (list zlib
- catch2
- openssl
- boost
- pcre
- pcre2
+ (arguments
+ (list
+ ;; Multiple tests fail to run in the build container due to host name
+ ;; resolution (see: https://github.com/Stiffstream/restinio/issues/172).
+ #:tests? #f
+ #:configure-flags #~(list "-DRESTINIO_FIND_DEPS=ON"
+ "-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))
(propagated-inputs
- (list asio fmt-8 http-parser))
- (arguments
- `(#:configure-flags '("-DRESTINIO_INSTALL=on")
- #:tests? #f ; TODO: The tests are called from the root CMakelist, need
RESTINIO_TEST=on.
- #:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'change-directory
- (lambda _
- (chdir "dev/restinio"))))))
+ ;; These are all #include'd by restinio's .hpp header files.
+ (list asio
+ fmt-8
+ http-parser
+ pcre
+ pcre2
+ zlib))
(home-page "https://stiffstream.com/en/products/restinio.html")
(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
- 07/21: gnu: fmt-for-solidity: Rename to fmt-8.0., (continued)
- 07/21: gnu: fmt-for-solidity: Rename to fmt-8.0., guix-commits, 2022/11/06
- 02/21: gnu: Add libx264-next., guix-commits, 2022/11/06
- 03/21: gnu: fcitx5-gtk4: Fix build., guix-commits, 2022/11/06
- 11/21: gnu: Add json-dto., guix-commits, 2022/11/06
- 06/21: gnu: protobuf-c: Update to 1.4.1., guix-commits, 2022/11/06
- 01/21: gnu: Add libvpx-next., guix-commits, 2022/11/06
- 05/21: gnu: protobuf: Unbundle googletest., guix-commits, 2022/11/06
- 08/21: gnu: fmt: Update to 9.1.0., guix-commits, 2022/11/06
- 09/21: gnu: ccache: Update to 4.7.2., guix-commits, 2022/11/06
- 10/21: gnu: Add clara., guix-commits, 2022/11/06
- 12/21: gnu: restinio: Prepare for tests and propagate some inputs.,
guix-commits <=
- 14/21: gnu: qtwebengine: Fix build., guix-commits, 2022/11/06
- 18/21: gnu: Add python-uc-micro-py., guix-commits, 2022/11/06
- 15/21: gnu: Add python-sphinx-pytest., guix-commits, 2022/11/06
- 16/21: gnu: Add python-pytest-param-files., guix-commits, 2022/11/06
- 13/21: gnu: restinio: Update to 0.6.17., guix-commits, 2022/11/06
- 17/21: gnu: python-mdit-py-plugins: Update to 0.3.1., guix-commits, 2022/11/06
- 19/21: gnu: Add python-linkify-it-py., guix-commits, 2022/11/06
- 20/21: gnu: Add python-myst-parser., guix-commits, 2022/11/06
- 21/21: gnu: Add jami-docs., guix-commits, 2022/11/06