unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Julien Lepiller <julien@lepiller.eu>
To: 58553@debbugs.gnu.org
Subject: [bug#58553] [PATCH 2/7] gnu: Add java-zstd.
Date: Sat, 15 Oct 2022 23:39:20 +0200	[thread overview]
Message-ID: <20221015213925.6447-2-julien@lepiller.eu> (raw)
In-Reply-To: <20221015213925.6447-1-julien@lepiller.eu>

* gnu/packages/java.scm (java-zstd): New variable.
---
 gnu/packages/java-compression.scm | 40 +++++++++++++++++++++++++++++++
 1 file changed, 40 insertions(+)

diff --git a/gnu/packages/java-compression.scm b/gnu/packages/java-compression.scm
index 32d04a2fa6..74bf335fcc 100644
--- a/gnu/packages/java-compression.scm
+++ b/gnu/packages/java-compression.scm
@@ -322,3 +322,43 @@ (define-public java-xz
     (description "Tukaani-xz is an implementation of xz compression/decompression
 algorithms in Java.")
     (license license:public-domain)))
+
+(define-public java-zstd
+  (package
+    (name "java-zstd")
+    (version "1.5.2-3")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                     (url "https://github.com/luben/zstd-jni")
+                     (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "0z26z04sc4j6k0g4gvq4xc86mc4wiyp1j7z5hh6wpqgmy9b6h2zb"))))
+    (build-system ant-build-system)
+    (arguments
+     `(#:jar-name "java-zstd.jar"
+       #:source-dir "src/main/java"
+       #:tests? #f; Require scala
+       #:phases
+       (modify-phases %standard-phases
+         (add-before 'build 'generate-version
+           (lambda _
+             (with-output-to-file "src/main/java/com/github/luben/zstd/util/ZstdVersion.java"
+               (lambda _
+                 (format #t "package com.github.luben.zstd.util;
+
+public class ZstdVersion {
+  public static final String VERSION = \"~a\";
+}" ,version))))))))
+    (inputs
+     `(("zstd" ,zstd)))
+    (home-page "https://github.com/luben/zstd-jni")
+    (synopsis "JNI bindings for Zstd native library")
+    (description "Zstd, short for Zstandard, is a lossless compression
+algorithm, which provides both good compression ratio and speed for standard
+compression needs.  This package provides JNI bindings for Zstd native
+library that provides fast and high compression lossless algorithm for
+Android, Java and all JVM languages.")
+    (license license:bsd-2)))
-- 
2.38.0





  reply	other threads:[~2022-10-15 21:40 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-15 21:36 [bug#58553] [PATCH] gnu: josm: Update to 18570 Julien Lepiller
2022-10-15 21:39 ` [bug#58553] [PATCH 1/7] gnu: Add java-brotli Julien Lepiller
2022-10-15 21:39   ` Julien Lepiller [this message]
2022-10-15 21:39   ` [bug#58553] [PATCH 3/7] gnu: Add java-asm-3 Julien Lepiller
2022-10-15 21:39   ` [bug#58553] [PATCH 4/7] gnu: java-commons-compress: Update to 1.21 Julien Lepiller
2022-10-15 21:39   ` [bug#58553] [PATCH 5/7] gnu: java-opening-hours-parser: Update to 0.27.0 Julien Lepiller
2022-10-15 21:39   ` [bug#58553] [PATCH 6/7] gnu: java-commons-jcs: Update to 3.1 Julien Lepiller
2022-10-15 21:39   ` [bug#58553] [PATCH 7/7] gnu: josm: Udpate to 18570 Julien Lepiller
2022-10-16  8:48 ` [bug#58553] [PATCH 1/8] gnu: Add java-brotli Julien Lepiller
2022-10-16  8:48   ` [bug#58553] [PATCH 2/8] gnu: Add java-zstd Julien Lepiller
2022-10-16  8:48   ` [bug#58553] [PATCH 3/8] gnu: Add java-ow-util-ant-tasks Julien Lepiller
2022-10-16  8:48   ` [bug#58553] [PATCH 4/8] gnu: Add java-asm-3 Julien Lepiller
2022-10-16  8:48   ` [bug#58553] [PATCH 5/8] gnu: java-commons-compress: Update to 1.21 Julien Lepiller
2022-10-16  8:48   ` [bug#58553] [PATCH 6/8] gnu: java-opening-hours-parser: Update to 0.27.0 Julien Lepiller
2022-10-16  8:48   ` [bug#58553] [PATCH 7/8] gnu: java-commons-jcs: Update to 3.1 Julien Lepiller
2022-10-16  8:48   ` [bug#58553] [PATCH 8/8] gnu: josm: Udpate to 18570 Julien Lepiller
2022-11-03 14:13     ` bug#58553: " Julien Lepiller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20221015213925.6447-2-julien@lepiller.eu \
    --to=julien@lepiller.eu \
    --cc=58553@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).