From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36618) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d71le-0003Vt-UN for guix-patches@gnu.org; Sat, 06 May 2017 11:37:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d71ld-0002gk-Tq for guix-patches@gnu.org; Sat, 06 May 2017 11:37:10 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:60076) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d71ld-0002gY-QK for guix-patches@gnu.org; Sat, 06 May 2017 11:37:09 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1d71ld-0002Kl-Kt for guix-patches@gnu.org; Sat, 06 May 2017 11:37:09 -0400 Subject: bug#26803: [PATCH 15/36] gnu: Add java-commons-io. Resent-Message-ID: From: Ricardo Wurmus Date: Sat, 6 May 2017 17:35:56 +0200 Message-Id: <20170506153617.3074-15-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: Hartmut Goebel From: Hartmut Goebel * gnu/packages/java.scm (java-commons-io): New variable. Co-authored-by: Ricardo Wurmus --- gnu/packages/java.scm | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm index f595af58c..c9707d0d2 100644 --- a/gnu/packages/java.scm +++ b/gnu/packages/java.scm @@ -1624,3 +1624,44 @@ are many features, including: such as union, intersection, and closure. @end itemize\n") (license license:asl2.0))) + +(define-public java-commons-io + (package + (name "java-commons-io") + (version "2.5") + (source + (origin + (method url-fetch) + (uri (string-append "mirror://apache/commons/io/source/" + "commons-io-" version "-src.tar.gz")) + (sha256 + (base32 + "0q5y41jrcjvx9hzs47x5kdhnasdy6rm4bzqd2jxl02w717m7a7v3")))) + (build-system ant-build-system) + (outputs '("out" "doc")) + (arguments + `(#:test-target "test" + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'symlink-junit.jar + (lambda* (#:key inputs #:allow-other-keys) + ;; TODO: don't do this; use make-flags + ;; The existence of this file is taken as indicator whether test + ;; dependencies will to be downloaded. + (let ((junit (assoc-ref inputs "java-junit")) + (junit-version "4.12")) ; from build.xml + (mkdir-p "lib") + (symlink (string-append junit "/share/java/junit.jar") + (string-append "lib/junit-" junit-version ".jar")) + #t))) + (add-after 'build 'build-javadoc ant-build-javadoc) + (replace 'install (install-jars "target")) + (add-after 'install 'install-doc (install-javadoc "target/apidocs"))))) + (native-inputs + `(("java-junit" ,java-junit) + ("java-hamcrest-core" ,java-hamcrest-core))) + (home-page "http://commons.apache.org/io/") + (synopsis "Common useful IO related classes") + (description "Commons-IO contains utility classes, stream implementations, +file filters and endian classes.") + (license license:asl2.0))) -- 2.12.2