From patchwork Mon Mar 4 16:19:54 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tobias Geerinckx-Rice X-Patchwork-Id: 1325 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 139B316CFA; Mon, 4 Mar 2019 16:31:48 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id B450916CF8 for ; Mon, 4 Mar 2019 16:31:47 +0000 (GMT) Received: from localhost ([127.0.0.1]:56854 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h0qVH-0002PT-Aq for patchwork@mira.cbaines.net; Mon, 04 Mar 2019 11:31:47 -0500 Received: from eggs.gnu.org ([209.51.188.92]:44958) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h0qKz-0002ul-S3 for guix-patches@gnu.org; Mon, 04 Mar 2019 11:21:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h0qKv-0005lO-GB for guix-patches@gnu.org; Mon, 04 Mar 2019 11:21:09 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:46563) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h0qKs-0005fN-F4 for guix-patches@gnu.org; Mon, 04 Mar 2019 11:21:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1h0qKs-00083Q-Ah for guix-patches@gnu.org; Mon, 04 Mar 2019 11:21:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#33026] [PATCH v2 1/2] gnu: Add yahttp. Resent-From: Tobias Geerinckx-Rice Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 04 Mar 2019 16:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33026 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 33026@debbugs.gnu.org Received: via spool by 33026-submit@debbugs.gnu.org id=B33026.155171641730871 (code B ref 33026); Mon, 04 Mar 2019 16:21:02 +0000 Received: (at 33026) by debbugs.gnu.org; 4 Mar 2019 16:20:17 +0000 Received: from localhost ([127.0.0.1]:60104 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h0qK8-00081m-SX for submit@debbugs.gnu.org; Mon, 04 Mar 2019 11:20:17 -0500 Received: from tobias.gr ([80.241.217.52]:59964) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h0qK7-00081P-Mz for 33026@debbugs.gnu.org; Mon, 04 Mar 2019 11:20:16 -0500 Received: by tobias.gr (OpenSMTPD) with ESMTP id 6066eddc; Mon, 4 Mar 2019 16:20:11 +0000 (UTC) Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id b120b615 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Mon, 4 Mar 2019 16:20:09 +0000 (UTC) From: Tobias Geerinckx-Rice Date: Mon, 4 Mar 2019 17:19:54 +0100 Message-Id: <20190304161955.12712-2-somebody@not-sent-or-endorsed-by.tobias.gr> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190304161955.12712-1-somebody@not-sent-or-endorsed-by.tobias.gr> References: <8736t7c6rv.fsf@gnu.org> <20190304161955.12712-1-somebody@not-sent-or-endorsed-by.tobias.gr> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches From: Tobias Geerinckx-Rice * gnu/packages/web.scm (yahttp): New public variable. --- gnu/packages/web.scm | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index b0ee78b92b..95099e450e 100644 --- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm @@ -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")