From: Pierre Neidhardt <mail@ambrevar.xyz>
To: 38211@debbugs.gnu.org
Subject: [bug#38211] [PATCH 3/9] gnu: Add restinio.
Date: Thu, 14 Nov 2019 19:07:02 +0100 [thread overview]
Message-ID: <20191114180708.6942-1-mail@ambrevar.xyz> (raw)
In-Reply-To: <20191114180422.5592-1-mail@ambrevar.xyz>
* gnu/packages/networking.scm (restinio): New variable.
---
gnu/packages/networking.scm | 51 +++++++++++++++++++++++++++++++++++++
1 file changed, 51 insertions(+)
diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm
index 87cabee645..53822c427e 100644
--- a/gnu/packages/networking.scm
+++ b/gnu/packages/networking.scm
@@ -33,6 +33,7 @@
;;; Copyright © 2019 Brice Waegeneire <brice@waegenei.re>
;;; Copyright © 2019 Tonton <tonton@riseup.net>
;;; Copyright © 2019 Alex Griffin <a@ajgrf.com>
+;;; Copyright © 2019 Jan Wielkiewicz <tona_kosmicznego_smiecia@interia.pl>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -72,6 +73,7 @@
#:use-module (gnu packages check)
#:use-module (gnu packages code)
#:use-module (gnu packages compression)
+ #:use-module (gnu packages cpp)
#:use-module (gnu packages crypto)
#:use-module (gnu packages curl)
#:use-module (gnu packages dejagnu)
@@ -95,6 +97,7 @@
#:use-module (gnu packages perl)
#:use-module (gnu packages perl-check)
#:use-module (gnu packages pkg-config)
+ #:use-module (gnu packages pretty-print)
#:use-module (gnu packages python)
#:use-module (gnu packages python-web)
#:use-module (gnu packages python-xyz)
@@ -2520,6 +2523,54 @@ communication over HTTP.")
(home-page "https://github.com/Corvusoft/restbed")
(license license:agpl3+))))
+(define fmt-restinio
+ (package
+ (inherit fmt)
+ (arguments
+ '(#:configure-flags '("-DCMAKE_CXX_FLAGS=-fPIC")))))
+
+(define-public restinio
+ (package
+ (name "restinio")
+ (version "0.6.0.1")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/Stiffstream/restinio.git")
+ (commit (string-append "v." version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1c25kpx652nng8m1sqf5an2c3c4g3k6zj85mkkaxzk88iwfzq1s8"))))
+ (build-system cmake-build-system)
+ (inputs ; TODO: Need to force-keep references on some inputs, e.g. boost.
+ `(("zlib" ,zlib)
+ ("catch2" ,catch-framework2)
+ ("openssl" ,openssl)
+ ("boost" ,boost)
+ ("pcre" ,pcre)
+ ("pcre2" ,pcre2)
+ ("sobjectizer" ,sobjectizer)))
+ (propagated-inputs
+ `(("asio", asio)
+ ("fmt" ,fmt-restinio)
+ ("http-parser", 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")
+ #t)))))
+ (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
+HTTP/Websocket server. It is based on standalone version of ASIO
+and targeted primarily for asynchronous processing of HTTP-requests.")
+ (license license:bsd-3)))
+
(define-public opendht
(package
(name "opendht")
--
2.23.0
next prev parent reply other threads:[~2019-11-14 18:08 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-14 18:04 [bug#38211] [PATCH 0/9] Update Jami to 20111101 Pierre Neidhardt
2019-11-14 18:06 ` [bug#38211] [PATCH 1/9] gnu: Add resample Pierre Neidhardt
2019-11-14 18:06 ` [bug#38211] [PATCH 2/9] gnu: Add sobjectizer Pierre Neidhardt
2019-11-14 18:07 ` Pierre Neidhardt [this message]
2019-11-14 18:07 ` [bug#38211] [PATCH 4/9] gnu: opendht: Update to 2.0.0beta2 Pierre Neidhardt
2019-11-14 18:07 ` [bug#38211] [PATCH 7/9] gnu: pjproject-jami: Update to 2.9 Pierre Neidhardt
2019-11-14 18:07 ` [bug#38211] [PATCH 8/9] gnu: libring: Update to 20191101 Pierre Neidhardt
2019-11-14 18:07 ` [bug#38211] [PATCH 9/9] gnu: jami: Fix wrapper Pierre Neidhardt
2019-11-16 13:08 ` [bug#38211] [PATCH 0/9] Update Jami to 20111101 Jan
2019-11-27 11:24 ` Arun Isaac
2019-11-27 12:05 ` Pierre Neidhardt
2019-11-28 9:47 ` Arun Isaac
2019-11-28 10:10 ` Pierre Neidhardt
2019-11-30 19:04 ` Arun Isaac
2019-11-30 20:02 ` Pierre Neidhardt
2019-12-01 11:16 ` Arun Isaac
2019-12-01 12:24 ` Pierre Neidhardt
2019-12-01 12:46 ` Pierre Neidhardt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20191114180708.6942-1-mail@ambrevar.xyz \
--to=mail@ambrevar.xyz \
--cc=38211@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).