From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45822) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d8jJS-000211-2x for guix-patches@gnu.org; Thu, 11 May 2017 04:19:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d8jJO-0001mo-Uc for guix-patches@gnu.org; Thu, 11 May 2017 04:19:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:34914) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d8jJO-0001mH-Qr for guix-patches@gnu.org; Thu, 11 May 2017 04:19:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1d8jJO-0004uJ-FP for guix-patches@gnu.org; Thu, 11 May 2017 04:19:02 -0400 Subject: bug#26803: [PATCH 29/36] gnu: Add java-httpcomponents-httpcore-nio. Resent-Message-ID: References: <20170506153617.3074-1-rekado@elephly.net> <20170506153617.3074-29-rekado@elephly.net> From: Roel Janssen In-reply-to: <20170506153617.3074-29-rekado@elephly.net> Date: Thu, 11 May 2017 10:18:21 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain 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: Ricardo Wurmus Cc: 26803@debbugs.gnu.org Ricardo Wurmus writes: > * 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") Same suggestion as the 'java-httpcomponents-httpcore' patch. @code{HttpCore} or just HttpCore? I don't know, so it's up to you. :-) Otherwise, LGTM! Kind regards, Roel Janssen