diff options
author | Julien Lepiller <julien@lepiller.eu> | 2017-10-24 22:30:48 +0200 |
---|---|---|
committer | Julien Lepiller <julien@lepiller.eu> | 2017-11-02 13:06:59 +0100 |
commit | 1717a7de7b7a163644fc9e0761c1d8ec80bb29c1 (patch) | |
tree | e957a5817dcdef25f0fe607115014929850c98c9 /gnu/packages/java.scm | |
parent | 0442d897e9e498cff647f03964689dc044825254 (diff) |
gnu: Add java-jnacl.
* gnu/packages/java.scm (java-jnacl): New variable.
Diffstat (limited to 'gnu/packages/java.scm')
-rw-r--r-- | gnu/packages/java.scm | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm index 681c5ab9d4..0e4ed6d89c 100644 --- a/gnu/packages/java.scm +++ b/gnu/packages/java.scm @@ -6517,3 +6517,53 @@ those in Perl and JavaScript.") but introducing some new functionalities that make it more powerful and easier to use.") (license license:asl2.0))) + +(define-public java-jnacl + (package + (name "java-jnacl") + (version "0.1.0") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/neilalexander/jnacl") + (commit "40c322e0a42637ab17cdf941138eeaf2494055f8"))) + (sha256 + (base32 + "1pspnmp44q61a2q4bpslpxw86rfn8s5l0xgvyrikqgdvg7ypx597")))) + (build-system ant-build-system) + (arguments + `(#:jar-name "java-jnacl.jar" + #:source-dir "src/main/java" + #:jdk ,icedtea-8 + #:phases + (modify-phases %standard-phases + (add-before 'build 'fix-tests + (lambda _ + (substitute* "src/test/java/com/neilalexander/jnacl/NaClTest.java" + (("assertions.Assertions") "assertions.api.Assertions")) + (substitute* "src/test/java/com/neilalexander/jnacl/NaclSecretBoxTest.java" + (("assertions.Assertions") "assertions.api.Assertions")) + #t)) + (replace 'check + (lambda _ + (system* "ant" "compile-tests") + (and + (zero? (system* "java" "-cp" (string-append (getenv "CLASSPATH") + ":build/classes" + ":build/test-classes") + "org.testng.TestNG" "-testclass" + "build/test-classes/com/neilalexander/jnacl/NaclSecretBoxTest.class")) + (zero? (system* "java" "-cp" (string-append (getenv "CLASSPATH") + ":build/classes" + ":build/test-classes") + "org.testng.TestNG" "-testclass" + "build/test-classes/com/neilalexander/jnacl/NaClTest.class")))))))) + (native-inputs + `(("java-testng" ,java-testng) + ("java-fest-util" ,java-fest-util) + ("java-fest-assert" ,java-fest-assert))) + (home-page "https://github.com/neilalexander/jnacl") + (synopsis "Java implementation of NaCl") + (description "Pure Java implementation of the NaCl: Networking and +Cryptography library.") + (license license:mpl2.0))) |