From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35582) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1exY0l-0002Ap-Ud for guix-patches@gnu.org; Sun, 18 Mar 2018 09:06:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1exY0k-0001sb-Ul for guix-patches@gnu.org; Sun, 18 Mar 2018 09:06:07 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:59574) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1exY0k-0001sX-Rd for guix-patches@gnu.org; Sun, 18 Mar 2018 09:06:06 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1exY0k-0004Yw-K7 for guix-patches@gnu.org; Sun, 18 Mar 2018 09:06:06 -0400 Subject: [bug#30845] [PATCH 10/82] gnu: Add java-native-access-platform. Resent-Message-ID: From: Julien Lepiller Date: Sun, 18 Mar 2018 14:05:30 +0100 Message-Id: <20180318130530.1654-10-julien@lepiller.eu> In-Reply-To: <20180318134211.38163cd6@lepiller.eu> References: <20180318134211.38163cd6@lepiller.eu> 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: 30845@debbugs.gnu.org * gnu/packages/java.scm (java-native-access-platform): New variable. --- gnu/packages/java.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm index 54b44a9d0..fa11480eb 100644 --- a/gnu/packages/java.scm +++ b/gnu/packages/java.scm @@ -9612,3 +9612,32 @@ Java method invocation.") (license (list license:asl2.0 license:lgpl2.1+)))) + +(define-public java-native-access-platform + (package + (inherit java-native-access) + (name "java-native-access-platform") + (arguments + `(#:test-target "test" + #:tests? #f; require jna-test.jar + #:phases + (modify-phases %standard-phases + (add-before 'build 'chdir + (lambda _ + (chdir "contrib/platform"))) + (add-after 'chdir 'fix-ant + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "nbproject/project.properties" + (("../../build/jna.jar") + (string-append (assoc-ref inputs "java-native-access") + "/share/java/jna.jar")) + (("../../lib/hamcrest-core-.*.jar") + (string-append (assoc-ref inputs "java-hamcrest-core") + "/share/java/hamcrest-core.jar")) + (("../../lib/junit.jar") + (string-append (assoc-ref inputs "java-junit") + "/share/java/junit.jar"))))) + (replace 'install + (install-jars "dist"))))) + (inputs + `(("java-native-access" ,java-native-access))))) -- 2.16.1