[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
14/17: gnu: Add ulfius.
From: |
guix-commits |
Subject: |
14/17: gnu: Add ulfius. |
Date: |
Sat, 24 Jun 2023 11:09:01 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit e920bfdb0b6f04db3b493ee38445084df3388619
Author: Antero Mejr <antero@mailbox.org>
AuthorDate: Wed May 31 19:27:04 2023 +0000
gnu: Add ulfius.
* gnu/packages/web.scm (ulfius): New variable.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
gnu/packages/web.scm | 59 ++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 59 insertions(+)
diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index 04e19a36a0..3c50864cf4 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -8868,6 +8868,65 @@ libraries.")
console, a file, syslog, journald, or a callback function.")
(license license:lgpl2.1)))
+(define-public ulfius
+ (package
+ (name "ulfius")
+ (version "2.7.13")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/babelouest/ulfius")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1dfwdpqmqki63dddi53bfv6jd0kzv8gh2w1lxsv6mzk3sxl6qakf"))))
+ (build-system cmake-build-system)
+ (arguments
+ (list #:configure-flags #~(list "-DBUILD_ULFIUS_TESTING=ON"
+ "-DBUILD_ULFIUS_DOCUMENTATION=ON")
+ #:phases #~(modify-phases %standard-phases
+ (add-after 'build 'build-doc
+ (lambda _
+ (invoke "make" "doc")))
+ (replace 'check
+ (lambda* (#:key tests? parallel-tests?
#:allow-other-keys)
+ (when tests?
+ (let ((job-count (number->string
+ (or (and parallel-tests?
+ (parallel-job-count))
+ 1))))
+ ;; Skip failing tests that try to start a
server.
+ (invoke "ctest" "--output-on-failure"
+ "-j" job-count "-E"
+
"(core|framework|example_callbacks)")))))
+ (add-after 'install 'install-doc
+ (lambda _
+ (let ((doc (string-append #$output
+ "/share/doc/ulfius")))
+ (mkdir-p doc)
+ (copy-recursively "../source/doc/html" doc)))))))
+ (native-inputs (list check doxygen subunit))
+ (inputs (list zlib))
+ (propagated-inputs ;for libulfius.pc
+ (list curl
+ gnutls
+ jansson
+ libgcrypt
+ libmicrohttpd
+ orcania
+ yder))
+ (home-page "https://babelouest.github.io/ulfius/")
+ (synopsis "HTTP Framework for REST Applications in C")
+ (description
+ "Ulfius is a HTTP Framework library for REST Applications written in C.
+It is based on GNU libmicrohttpd for the backend web server, Jansson for the
+JSON manipulation library, and libcurl for the http/smtp client API. It can
+be used to facilitate creation of web applications in C programs with a small
+memory footprint, as in embedded systems applications. It can create
+webservices in HTTP or HTTPS mode, stream data, or implement server
+websockets.")
+ (license license:lgpl2.1)))
;;;
;;; Avoid adding new packages to the end of this file. To reduce the chances
- 06/17: gnu: ruby-mini-portile-2: Update to 2.8.2., (continued)
- 06/17: gnu: ruby-mini-portile-2: Update to 2.8.2., guix-commits, 2023/06/24
- 04/17: gnu: fenics: Make sure 'jit.py' can find 'dolfin.pc'., guix-commits, 2023/06/24
- 05/17: gnu: fenics-dolfin, fenics: Remove input labels., guix-commits, 2023/06/24
- 07/17: gnu: ruby-nokogiri: Update to 1.15.2., guix-commits, 2023/06/24
- 11/17: gnu: Add subunit., guix-commits, 2023/06/24
- 13/17: gnu: Add yder., guix-commits, 2023/06/24
- 09/17: gnu: Add libansilove., guix-commits, 2023/06/24
- 12/17: gnu: Add orcania., guix-commits, 2023/06/24
- 08/17: gnu: dyninst: Fix runtime error with new glibc., guix-commits, 2023/06/24
- 10/17: gnu: Add ansilove., guix-commits, 2023/06/24
- 14/17: gnu: Add ulfius.,
guix-commits <=
- 16/17: gnu: Add le-biniou., guix-commits, 2023/06/24
- 17/17: gnu: blesh: Update to 0.4.0-devel3., guix-commits, 2023/06/24
- 15/17: gnu: Add le-biniou-data., guix-commits, 2023/06/24