@@ -66,6 +66,7 @@
#:use-module (gnu packages admin)
#:use-module (gnu packages adns)
#:use-module (gnu packages apr)
+ #:use-module (gnu packages boost)
#:use-module (gnu packages check)
#:use-module (gnu packages documentation)
#:use-module (gnu packages docbook)
@@ -86,6 +87,7 @@
#:use-module (gnu packages gnupg)
#:use-module (gnu packages gnuzilla)
#:use-module (gnu packages gperf)
+ #:use-module (gnu packages graphviz)
#:use-module (gnu packages gtk)
#:use-module (gnu packages guile)
#:use-module (gnu packages guile-xyz)
@@ -4907,6 +4909,46 @@ and xinetd usually launches another daemon to handle the request. It can be
used to start services with both privileged and non-privileged port numbers.")
(license (l:fsf-free "file://COPYRIGHT"))))
+(define-public yahttp
+ (package
+ (name "yahttp")
+ (version "0.2.1")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/cmouse/yahttp.git")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "09pxykgby8hlyvaff106p6m847idg6nkprahx62kr05ks5r6i77v"))))
+ ;; Separate the ~7.5 MiB of HTML documentation from the rest (~700 KiB).
+ ;; Installing the package without it would require patching Makefiles.
+ (outputs (list "out" "doc"))
+ (build-system gnu-build-system)
+ (arguments
+ `(#:configure-flags
+ (list (string-append "--htmldir=" (assoc-ref %outputs "doc")
+ "/share/doc/" ,name "-" ,version))))
+ (native-inputs
+ `(("autoconf" ,autoconf)
+ ("automake" ,automake)
+ ("libtool" ,libtool)
+
+ ;; For creating the documentation.
+ ("doxygen" ,doxygen)
+ ("graphviz" ,graphviz)))
+ (inputs
+ `(("boost" ,boost)))
+ (home-page "https://github.com/cmouse/yahttp")
+ (synopsis "Small-footprint HTTP request/response parser")
+ (description
+ "@acronym{YaHTTP, Yet Another HTTP Library} aims to be purely an HTTP
+request/response parser with no input/output ties. It is intended to be used in
+small-footprint applications and other utilities that want to use HTTP over
+something else than network I/O.")
+ (license l:expat)))
+
(define-public tidy-html
(package
(name "tidy-html")
From: Tobias Geerinckx-Rice <me@tobias.gr> * gnu/packages/web.scm (yahttp): New public variable. --- gnu/packages/web.scm | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+)