From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34768) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eyLlt-0006vZ-Ep for guix-patches@gnu.org; Tue, 20 Mar 2018 14:14:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eyLlq-0007Zr-K1 for guix-patches@gnu.org; Tue, 20 Mar 2018 14:14:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:36334) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eyLlq-0007Zh-Fi for guix-patches@gnu.org; Tue, 20 Mar 2018 14:14:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eyLlq-0002Ij-9M for guix-patches@gnu.org; Tue, 20 Mar 2018 14:14:02 -0400 Subject: [bug#30845] [PATCH 09/82] gnu: Add java-native-access. Resent-Message-ID: Date: Tue, 20 Mar 2018 19:13:11 +0100 From: =?UTF-8?Q?Bj=C3=B6rn_?= =?UTF-8?Q?H=C3=B6fling?= Message-ID: <20180320191311.0a722683@alma-ubu> In-Reply-To: <20180318130530.1654-9-julien@lepiller.eu> References: <20180318134211.38163cd6@lepiller.eu> <20180318130530.1654-9-julien@lepiller.eu> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; boundary="Sig_/YLoeMYTQ60kGfAht2jEpc/h"; 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_/YLoeMYTQ60kGfAht2jEpc/h Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Sun, 18 Mar 2018 14:05:29 +0100 Julien Lepiller wrote: > * gnu/packages/java.scm (java-native-access): New variable. > --- > gnu/packages/java.scm | 65 > +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, > 65 insertions(+) >=20 > diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm > index 37eeda0a6..54b44a9d0 100644 > --- a/gnu/packages/java.scm > +++ b/gnu/packages/java.scm > @@ -9547,3 +9547,68 @@ substitutions, splits, filtering filenames, > etc. This library is the successor of the OROMatcher, AwkTools, > PerlTools, and TextTools libraries originally from ORO, Inc.") > (license license:asl2.0))) > + > +(define-public java-native-access > + (package > + (name "java-native-access") > + (version "4.5.1") > + (source (origin > + (method url-fetch) > + (uri (string-append > "https://github.com/java-native-access/jna/" > + "archive/" version ".tar.gz")) > + (file-name (string-append name "-" version ".tar.gz")) > + (sha256 > + (base32 > + > "0zrpzkib6b905i018a9pqlzkqinphywr6y4jwv6mwp63jjqvqkd9")) > + (modules '((guix build utils))) > + (snippet > + `(for-each delete-file (find-files "." ".*.jar"))))) Additionaly snip away: natives/libffi: First it has a different license (Expat) and second you have it already as a dependency. There is a "dist" directory. Please look at at. It contains some binaries. Maybe strip it totally away, as it doesn't give us more than the source we have? ./dist/jna.aar: Binary. dist/src-full.zip contains two jars: ./lib/junit.jar ./lib/clover.jar So, snip it away. src-full.zip:./native/libffi/LICENSE: Is EXPAT. Either snip away or add to license list. Not completely digged into the "dist" directory. [..] > + ;; Java Native Access project (JNA) is dual-licensed under 2 > + ;; alternative Open Source/Free licenses: LGPL 2.1 or later and > + ;; Apache License 2.0. (starting with JNA version 4.0.0). > + (license (list > + license:asl2.0 > + license:lgpl2.1+)))) Remove "Open Source/" from comment. Otherwise, LGTM Bj=C3=B6rn --Sig_/YLoeMYTQ60kGfAht2jEpc/h Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAlqxTzgACgkQvyhstlk+X/2MTwCgrEtDQ1vQGdZMo4q6/w9WBF9a ECYAoLII4Hr/vrJ+yQ2Hy1hY1ZJl7npz =QtwF -----END PGP SIGNATURE----- --Sig_/YLoeMYTQ60kGfAht2jEpc/h--