[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/01: gnu: Add java-xz.
From: |
Ricardo Wurmus |
Subject: |
01/01: gnu: Add java-xz. |
Date: |
Wed, 27 Apr 2016 08:52:47 +0000 |
rekado pushed a commit to branch master
in repository guix.
commit 068e476f68dd6eea9cb90269997d862025fbd696
Author: Roel Janssen <address@hidden>
Date: Wed Apr 27 00:00:44 2016 +0200
gnu: Add java-xz.
* gnu/packages/java.scm (java-xz): New variable.
---
gnu/packages/java.scm | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index d6ad28f..c94f2e4 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -1,6 +1,7 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2015, 2016 Ricardo Wurmus <address@hidden>
;;; Copyright © 2016 Leo Famulari <address@hidden>
+;;; Copyright © 2016 Roel Janssen <address@hidden>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -22,6 +23,7 @@
#:use-module (guix packages)
#:use-module (guix download)
#:use-module (guix utils)
+ #:use-module (guix build-system ant)
#:use-module (guix build-system gnu)
#:use-module (gnu packages)
#:use-module (gnu packages attr)
@@ -829,3 +831,31 @@ build process and its dependencies, whereas Make uses
Makefile format.")
"jdk-drop" "langtools-drop" "hotspot-drop")))))))
(define-public icedtea icedtea-7)
+
+(define-public java-xz
+ (package
+ (name "java-xz")
+ (version "1.5")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "http://tukaani.org/xz/xz-java-" version ".zip"))
+ (sha256
+ (base32
+ "0x6vn9dp9kxk83x2fp3394n95dk8fx9yg8jns9371iqsn0vy8ih1"))))
+ (build-system ant-build-system)
+ (arguments
+ `(#:tests? #f ; There are no tests to run.
+ #:jar-name ,(string-append "xz-" version ".jar")
+ #:phases
+ (modify-phases %standard-phases
+ ;; The unpack phase enters the "maven" directory by accident.
+ (add-after 'unpack 'chdir
+ (lambda _ (chdir "..") #t)))))
+ (native-inputs
+ `(("unzip" ,unzip)))
+ (home-page "http://tukaani.org/xz/java.html")
+ (synopsis "Implementation of XZ data compression in pure Java")
+ (description "This library aims to be a complete implementation of XZ data
+compression in pure Java. Single-threaded streamed compression and
+decompression and random access decompression have been fully implemented.")
+ (license license:public-domain)))