From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55569) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d8jsK-0002KI-9y for guix-patches@gnu.org; Thu, 11 May 2017 04:55:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d8jsG-0001X1-2E for guix-patches@gnu.org; Thu, 11 May 2017 04:55:08 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:34972) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d8jsF-0001Wv-U6 for guix-patches@gnu.org; Thu, 11 May 2017 04:55:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1d8jsE-0005nE-K9 for guix-patches@gnu.org; Thu, 11 May 2017 04:55:03 -0400 Subject: bug#26803: [PATCH 36/36] gnu: Add java-commons-compress. Resent-Message-ID: References: <20170506153617.3074-1-rekado@elephly.net> <20170506153617.3074-36-rekado@elephly.net> From: Roel Janssen In-reply-to: <20170506153617.3074-36-rekado@elephly.net> Date: Thu, 11 May 2017 10:53:49 +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-commons-compress): New variable. > --- > gnu/packages/java.scm | 44 ++++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 44 insertions(+) > > diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm > index 8ecd5bbfc..35e1c315e 100644 > --- a/gnu/packages/java.scm > +++ b/gnu/packages/java.scm > @@ -2275,6 +2275,50 @@ transfer, etc., and you can integrate its functionality into your own Java > programs.") > (license license:bsd-3))) > > +(define-public java-commons-compress > + (package > + (name "java-commons-compress") > + (version "1.13") > + (source (origin > + (method url-fetch) > + (uri (string-append "mirror://apache/commons/compress/source/" > + "commons-compress-" version "-src.tar.gz")) > + (sha256 > + (base32 > + "1vjqvavrn0babffn1kciz6v52ibwq2vwhzlb95hazis3lgllnxc8")))) > + (build-system ant-build-system) > + (arguments > + `(#:jar-name "commons-compress.jar" > + #:phases > + (modify-phases %standard-phases > + (add-after 'unpack 'delete-bad-tests > + (lambda _ > + (with-directory-excursion "src/test/java/org/apache/commons/compress/" > + ;; FIXME: These tests really should not fail. Maybe they are > + ;; indicative of problems with our Java packaging work. We should definitely take note of this. > + ;; This test fails with a null pointer exception. > + (delete-file "archivers/sevenz/SevenZOutputFileTest.java") > + > + ;; This test fails to open test resources. > + (delete-file "archivers/zip/ExplodeSupportTest.java") > + > + ;; FIXME: This test adds a dependency on powermock, which is hard to > + ;; package at this point. > + ;; https://github.com/powermock/powermock > + (delete-file "archivers/sevenz/SevenZNativeHeapTest.java")) > + #t))))) > + (inputs > + `(("java-junit" ,java-junit) > + ("java-hamcrest-core" ,java-hamcrest-core) > + ("java-mockito" ,java-mockito-1) > + ("java-xz" ,java-xz))) > + (home-page "https://commons.apache.org/proper/commons-compress/") > + (synopsis "Java library for working with compressed files") > + (description "The Apache Commons Compress library defines an API for > +working with compressed files such as ar, cpio, Unix dump, tar, zip, gzip, XZ, > +Pack200, bzip2, 7z, arj, lzma, snappy, DEFLATE, lz4 and Z files.") > + (license license:asl2.0))) > + > (define-public java-commons-cli > (package > (name "java-commons-cli") LGTM. I think this concludes the first batch of Java packages. Thanks a lot for this very important work! Kind regards, Roel Janssen