diff options
author | Julien Lepiller <julien@lepiller.eu> | 2017-11-05 11:12:05 +0100 |
---|---|---|
committer | Julien Lepiller <julien@lepiller.eu> | 2017-11-18 11:29:34 +0100 |
commit | 823997e969718efd6ab56fca7a9aae3f458ba978 (patch) | |
tree | c8095a35cba8e14e260cd40ceb45884f8dd8e614 /gnu/packages | |
parent | cea834668861ae4fc81b5da5a1aa531027310b93 (diff) | |
download | patches-823997e969718efd6ab56fca7a9aae3f458ba978.tar patches-823997e969718efd6ab56fca7a9aae3f458ba978.tar.gz |
gnu: Add java-iq80-snappy.
* gnu/packages/compression.scm (java-iq80-snappy): New variable.
Diffstat (limited to 'gnu/packages')
-rw-r--r-- | gnu/packages/compression.scm | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/gnu/packages/compression.scm b/gnu/packages/compression.scm index 00dff2747e..5768d52da9 100644 --- a/gnu/packages/compression.scm +++ b/gnu/packages/compression.scm @@ -1204,6 +1204,56 @@ for most inputs, but the resulting compressed files are anywhere from 20% to compresser/decompresser.") (license license:asl2.0))) +(define-public java-iq80-snappy + (package + (name "java-iq80-snappy") + (version "0.4") + (source (origin + (method url-fetch) + (uri (string-append "https://github.com/dain/snappy/archive/snappy-" + version ".tar.gz")) + (sha256 + (base32 + "0rb3zhci7w9wzd65lfnk7p3ip0n6gb58a9qpx8n7r0231gahyamf")))) + (build-system ant-build-system) + (arguments + `(#:jar-name "iq80-snappy.jar" + #:source-dir "src/main/java" + #:test-dir "src/test" + #:jdk ,icedtea-8 + #:phases + (modify-phases %standard-phases + (replace 'check + (lambda _ + (define (test class) + (zero? (system* "java" "-cp" (string-append (getenv "CLASSPATH") + ":build/classes" + ":build/test-classes") + "-Dtest.resources.dir=src/test/resources" + "org.testng.TestNG" "-testclass" + class))) + (system* "ant" "compile-tests") + (and + (test "org.iq80.snappy.SnappyFramedStreamTest") + (test "org.iq80.snappy.SnappyStreamTest")))) + (add-before 'build 'remove-hadoop-dependency + (lambda _ + ;; We don't have hadoop + (delete-file "src/main/java/org/iq80/snappy/HadoopSnappyCodec.java") + (delete-file "src/test/java/org/iq80/snappy/TestHadoopSnappyCodec.java") + #t))))) + (home-page "https://github.com/dain/snappy") + (native-inputs + `(("guava" ,java-guava) + ("java-snappy" ,java-snappy) + ("hamcrest" ,java-hamcrest-core) + ("testng" ,java-testng))) + (synopsis "Java port of snappy") + (description "Iq80-snappy is a rewrite (port) of Snappy writen in pure +Java. This compression code produces a byte-for-byte exact copy of the output +created by the original C++ code, and extremely fast.") + (license license:asl2.0))) + (define-public p7zip (package (name "p7zip") |