aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Lepiller <julien@lepiller.eu>2017-10-24 22:36:11 +0200
committerJulien Lepiller <julien@lepiller.eu>2017-11-02 13:07:04 +0100
commitd54d7d31ac3b7679e1d2d8d98750f2cf8d748f7e (patch)
tree20d696de0fe65aa7124cf73634578938b02c9c78
parenteaf3cb7a418df1cf9d7837f0f1aef0a2efeb2538 (diff)
downloadpatches-d54d7d31ac3b7679e1d2d8d98750f2cf8d748f7e.tar
patches-d54d7d31ac3b7679e1d2d8d98750f2cf8d748f7e.tar.gz
gnu: Add java-lz4.
* gnu/packages/java.scm (java-lz4): New variable.
-rw-r--r--gnu/packages/java.scm32
1 files changed, 32 insertions, 0 deletions
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index 59f941f8ef..1dedb13613 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -6621,3 +6621,35 @@ written using Java syntax.
In addition to the expression language, MVEL serves as a templating language for
configuration and string construction.")
(license license:asl2.0)))
+
+(define-public java-lz4
+ (package
+ (name "java-lz4")
+ (version "1.4.0")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "https://github.com/lz4/lz4-java/archive/"
+ version ".tar.gz"))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "096dm57p2lzqk28n0j2p52x2j3cvnsd2dfqn43n7vbwrkjsy7y54"))))
+ (build-system ant-build-system)
+ (arguments
+ `(#:jar-name "lz4.jar"
+ #:jdk ,icedtea-8
+ #:source-dir "src/java:src/java-unsafe"
+ #:tests? #f; FIXME: requires more dependencies
+ #:phases
+ (modify-phases %standard-phases
+ (add-before 'configure 'generate-source
+ (lambda _
+ (with-directory-excursion "src/build/source_templates"
+ (zero? (system* "mvel2" "../gen_sources.mvel" "../../java"))))))))
+ (native-inputs
+ `(("mvel" ,java-mvel2)))
+ (home-page "https://jpountz.github.io/lz4-java")
+ (synopsis "Compression algorithm")
+ (description "LZ4 - Java is a Java port of the popular lz4 compression
+algorithms and xxHash hashing algorithm.")
+ (license license:asl2.0)))