[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/16: gnu: java-snappy: Don't use unstable tarball.
From: |
guix-commits |
Subject: |
02/16: gnu: java-snappy: Don't use unstable tarball. |
Date: |
Thu, 12 Mar 2020 00:12:03 -0400 (EDT) |
nckx pushed a commit to branch master
in repository guix.
commit 0308944ab06a103791c853743c88280a2abc114f
Author: Tobias Geerinckx-Rice <address@hidden>
AuthorDate: Thu Mar 12 04:54:32 2020 +0100
gnu: java-snappy: Don't use unstable tarball.
* gnu/packages/java-compression.scm (java-snappy)[source]: Use GIT-FETCH
and GIT-FILE-NAME.
[arguments]: Add ‘make-git-checkout-writable’ phase.
---
gnu/packages/java-compression.scm | 22 ++++++++++++++--------
1 file changed, 14 insertions(+), 8 deletions(-)
diff --git a/gnu/packages/java-compression.scm
b/gnu/packages/java-compression.scm
index 1c246f6..3a90826 100644
--- a/gnu/packages/java-compression.scm
+++ b/gnu/packages/java-compression.scm
@@ -25,6 +25,7 @@
#:use-module (guix utils)
#:use-module (guix packages)
#:use-module (guix download)
+ #:use-module (guix git-download)
#:use-module (guix build-system ant)
#:use-module (gnu packages)
#:use-module (gnu packages compression)
@@ -36,20 +37,25 @@
(package
(name "java-snappy")
(version "1.1.7.3")
- (source (origin
- (method url-fetch)
- (uri (string-append
"https://github.com/xerial/snappy-java/archive/"
- version ".tar.gz"))
- (file-name (string-append name "-" version ".tar.gz"))
- (sha256
- (base32
- "0v7mrc62v2wyr5l3c5xx11rn0k5bcl1l05cwr79xyw7zqr8k71qh"))))
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/xerial/snappy-java")
+ (commit version)))
+ (sha256
+ (base32 "07c145w1kv8g7dbwpy5xss142il7zr0qq78p2ih76azgl97n5cba"))
+ (file-name (git-file-name name version))))
(build-system ant-build-system)
(arguments
`(#:jar-name "snappy.jar"
#:source-dir "src/main/java"
#:phases
(modify-phases %standard-phases
+ (add-after 'unpack 'make-git-checkout-writable
+ (lambda _
+ (for-each make-file-writable (find-files "."))
+ #t))
(add-before 'build 'remove-binaries
(lambda _
(delete-file "lib/org/xerial/snappy/OSInfo.class")
- branch master updated (d7af020 -> bf8ee1c), guix-commits, 2020/03/12
- 01/16: gnu: java-snappy: Update to 1.1.7.3., guix-commits, 2020/03/12
- 03/16: gnu: picprog: Use HTTPS home page., guix-commits, 2020/03/12
- 02/16: gnu: java-snappy: Don't use unstable tarball.,
guix-commits <=
- 04/16: gnu: simple-scan: Update to 3.36.0., guix-commits, 2020/03/12
- 08/16: gnu: xmobar: Update to 0.33., guix-commits, 2020/03/12
- 10/16: gnu: rsound: Use HTTPS home page., guix-commits, 2020/03/12
- 06/16: gnu: ephoto: Update source and home page URIs., guix-commits, 2020/03/12
- 11/16: gnu: faust: Use HTTPS home page., guix-commits, 2020/03/12
- 07/16: gnu: gptfdisk: Use HTTPS home page., guix-commits, 2020/03/12
- 09/16: gnu: libgme: Update to 0.6.3., guix-commits, 2020/03/12
- 13/16: gnu: dosbox: Use HTTPS home page., guix-commits, 2020/03/12
- 16/16: gnu: xlockmore: Update to 5.62., guix-commits, 2020/03/12
- 14/16: gnu: mame: Use HTTPS home page., guix-commits, 2020/03/12