From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34439) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eyLkv-0005XK-Fl for guix-patches@gnu.org; Tue, 20 Mar 2018 14:13:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eyLks-0006yC-ME for guix-patches@gnu.org; Tue, 20 Mar 2018 14:13:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:36322) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eyLks-0006y2-HD for guix-patches@gnu.org; Tue, 20 Mar 2018 14:13:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eyLks-0002GD-CD for guix-patches@gnu.org; Tue, 20 Mar 2018 14:13:02 -0400 Subject: [bug#30845] [PATCH 07/82] gnu: Add java-commons-vfs. Resent-Message-ID: Date: Tue, 20 Mar 2018 19:12:31 +0100 From: =?UTF-8?Q?Bj=C3=B6rn_?= =?UTF-8?Q?H=C3=B6fling?= Message-ID: <20180320191231.3662944a@alma-ubu> In-Reply-To: <20180318130530.1654-7-julien@lepiller.eu> References: <20180318134211.38163cd6@lepiller.eu> <20180318130530.1654-7-julien@lepiller.eu> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; boundary="Sig_/So5el0Ty2MtN4G5K6kH_O5y"; protocol="application/pgp-signature" 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: Julien Lepiller Cc: 30845@debbugs.gnu.org --Sig_/So5el0Ty2MtN4G5K6kH_O5y Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Sun, 18 Mar 2018 14:05:27 +0100 Julien Lepiller wrote: > * gnu/packages/java.scm (java-commons-vfs): New variable. > --- > gnu/packages/java.scm | 41 +++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 41 insertions(+) >=20 > diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm > index b8fd30ea5..0ee4ade95 100644 > --- a/gnu/packages/java.scm > +++ b/gnu/packages/java.scm > @@ -9474,3 +9474,44 @@ graphs, and pie charts.") > implementation. It also provides reusable components for client-side > authentication, HTTP state management, and HTTP connection > management.") (license license:asl2.0))) > + > +(define-public java-commons-vfs > + (package > + (name "java-commons-vfs") > + (version "2.2") > + (source (origin > + (method url-fetch) > + (uri (string-append > "mirror://apache/commons/vfs/source/" > + "commons-vfs2-distribution-" > version "-src.tar.gz")) > + (file-name (string-append name "-" version ".tar.gz")) > + (sha256 > + (base32 Snippets: ./commons-vfs2/src/test/resources/test-data/read-tests/dir1/subdir4.jar ./commons-vfs2/src/test/resources/test-data/nested.jar ./commons-vfs2/src/test/resources/test-data/test.jar > + > "1cnq1iaghbp4cslpnvwbp83i5v234x87irssqynhwpfgw7caf1s3")))) > + (build-system ant-build-system) > + (arguments > + `(#:jar-name "commons-vfs.jar" > + #:source-dir "commons-vfs2/src/main/java" > + #:tests? #f; no tests > + #:phases > + (modify-phases %standard-phases > + (add-before 'build 'remove-hadoop-and-webdav > + ; Remove these files as they are not required and depend > on difficult > + ; packages. > + (lambda _ > + (for-each delete-file-recursively > + > '("commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/webdav" > + > "commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/hdfs"))))))) > + (inputs > + `(("java-commons-collections4" ,java-commons-collections4) > + ("java-commons-compress" ,java-commons-compress) > + ("java-commons-httpclient" ,java-commons-httpclient) > + ("java-commons-logging-minimal" ,java-commons-logging-minimal) > + ("java-commons-net" ,java-commons-net) > + ("java-jsch" ,java-jsch))) I wonder: When do you use "inputs", when "propagated-inputs" for the ant-build-system? For commons-http-client you used "propagated-inputs". For antlr3-3.3 there are even both "propagated-inputs" and "inputs". Otherwise, LGTM. Bj=C3=B6rn --Sig_/So5el0Ty2MtN4G5K6kH_O5y Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAlqxTw8ACgkQvyhstlk+X/3MxwCgo+39AL05DMswH5MUNwbOkF7g qyoAniWjispVM5COJJmaimfvio5NEOkq =hHdD -----END PGP SIGNATURE----- --Sig_/So5el0Ty2MtN4G5K6kH_O5y--