[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#29394] [PATCH 12/12] gnu: Add java-jbzip2.
From: |
ricardo.wurmus |
Subject: |
[bug#29394] [PATCH 12/12] gnu: Add java-jbzip2. |
Date: |
Wed, 22 Nov 2017 12:30:42 +0100 |
From: Ricardo Wurmus <address@hidden>
* gnu/packages/compression.scm (java-jbzip2): New variable.
---
gnu/packages/compression.scm | 40 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)
diff --git a/gnu/packages/compression.scm b/gnu/packages/compression.scm
index 193d36797..4ea4b105f 100644
--- a/gnu/packages/compression.scm
+++ b/gnu/packages/compression.scm
@@ -1314,6 +1314,46 @@ 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 java-jbzip2
+ (package
+ (name "java-jbzip2")
+ (version "0.9.1")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "https://storage.googleapis.com/"
+ "google-code-archive-source/v2/"
+ "code.google.com/jbzip2/"
+ "source-archive.zip"))
+ (file-name (string-append name "-" version ".zip"))
+ (sha256
+ (base32
+ "0ncmhlqmrfmj96nqf6p77b9ws35lcfsvpfxzwxi2asissc83z1l3"))))
+ (build-system ant-build-system)
+ (native-inputs
+ `(("unzip" ,unzip)
+ ("java-junit" ,java-junit)))
+ (arguments
+ `(#:tests? #f ; no tests
+ #:jar-name "jbzip2.jar"
+ #:source-dir "tags/release-0.9.1/src"
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'fix-encoding-problems
+ (lambda _
+ ;; Some of the files we're patching are
+ ;; ISO-8859-1-encoded, so choose it as the default
+ ;; encoding so the byte encoding is preserved.
+ (with-fluids ((%default-port-encoding #f))
+ (substitute*
"tags/release-0.9.1/src/org/itadaki/bzip2/HuffmanAllocator.java"
+ (("Milidi.") "Milidiu")))
+ #t)))))
+ (home-page "https://code.google.com/archive/p/jbzip2/")
+ (synopsis "Java bzip2 compression/decompression library")
+ (description "Jbzip2 is a Java bzip2 compression/decompression library.
+It can be used as a replacement for the Apache @code{CBZip2InputStream} /
address@hidden classes.")
+ (license license:expat)))
+
(define-public p7zip
(package
(name "p7zip")
--
2.14.1
- [bug#29394] [PATCH 01/12] gnu: Add java-snappy-1., (continued)
- [bug#29394] [PATCH 01/12] gnu: Add java-snappy-1., ricardo.wurmus, 2017/11/22
- [bug#29394] [PATCH 03/12] gnu: Add javacc-4., ricardo.wurmus, 2017/11/22
- [bug#29394] [PATCH 02/12] gnu: Add javacc., ricardo.wurmus, 2017/11/22
- [bug#29394] [PATCH 04/12] gnu: Add java-commons-jexl-2., ricardo.wurmus, 2017/11/22
- [bug#29394] [PATCH 05/12] gnu: java-htsjdk: Update to 2.3.0., ricardo.wurmus, 2017/11/22
- [bug#29394] [PATCH 06/12] gnu: Add java-picard., ricardo.wurmus, 2017/11/22
- [bug#29394] [PATCH 07/12] gnu: Add java-cofoja., ricardo.wurmus, 2017/11/22
- [bug#29394] [PATCH 08/12] gnu: Add java-commons-bcel., ricardo.wurmus, 2017/11/22
- [bug#29394] [PATCH 10/12] gnu: Add ant-junit., ricardo.wurmus, 2017/11/22
- [bug#29394] [PATCH 09/12] gnu: Add ant-apache-bcel., ricardo.wurmus, 2017/11/22
- [bug#29394] [PATCH 12/12] gnu: Add java-jbzip2.,
ricardo.wurmus <=
- [bug#29394] [PATCH 11/12] gnu: Add java-picard-1.113., ricardo.wurmus, 2017/11/22