From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37522) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d71mc-00042T-N6 for guix-patches@gnu.org; Sat, 06 May 2017 11:38:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d71mb-0003o6-CL for guix-patches@gnu.org; Sat, 06 May 2017 11:38:10 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:60153) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d71mb-0003nf-7o for guix-patches@gnu.org; Sat, 06 May 2017 11:38:09 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1d71mb-0002S2-0E for guix-patches@gnu.org; Sat, 06 May 2017 11:38:09 -0400 Subject: bug#26803: [PATCH 29/36] gnu: Add java-httpcomponents-httpcore-nio. Resent-Message-ID: From: Ricardo Wurmus Date: Sat, 6 May 2017 17:36:10 +0200 Message-Id: <20170506153617.3074-29-rekado@elephly.net> In-Reply-To: <20170506153617.3074-1-rekado@elephly.net> References: <20170506153617.3074-1-rekado@elephly.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 26803@debbugs.gnu.org Cc: Ricardo Wurmus * gnu/packages/java.scm (java-httpcomponents-httpcore-nio): New variable. --- gnu/packages/java.scm | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm index a770cd4cc..620a276d0 100644 --- a/gnu/packages/java.scm +++ b/gnu/packages/java.scm @@ -2073,6 +2073,28 @@ NIO. This package provides the blocking I/O model library.") (license license:asl2.0))) +(define-public java-httpcomponents-httpcore-nio + (package (inherit java-httpcomponents-httpcore) + (name "java-httpcomponents-httpcore-nio") + (arguments + `(#:jar-name "httpcomponents-httpcore-nio.jar" + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'chdir + (lambda _ (chdir "httpcore-nio") #t))))) + (inputs + `(("java-httpcomponents-httpcore" ,java-httpcomponents-httpcore) + ("java-hamcrest-core" ,java-hamcrest-core) + ,@(package-inputs java-httpcomponents-httpcore))) + (description "HttpCore is a set of low level HTTP transport components +that can be used to build custom client and server side HTTP services with a +minimal footprint. HttpCore supports two I/O models: blocking I/O model based +on the classic Java I/O and non-blocking, event driven I/O model based on Java +NIO. + +This package provides the non-blocking I/O model library based on Java +NIO."))) + (define-public java-commons-cli (package (name "java-commons-cli") -- 2.12.2