guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

07/14: gnu: java-groovy-bootstrap: Don't use unstable tarball.


From: guix-commits
Subject: 07/14: gnu: java-groovy-bootstrap: Don't use unstable tarball.
Date: Sun, 10 Feb 2019 11:48:56 -0500 (EST)

nckx pushed a commit to branch master
in repository guix.

commit ef6a5fcc30dd56fa8ef7a4be53b98a736499b833
Author: Tobias Geerinckx-Rice <address@hidden>
Date:   Sun Feb 10 15:13:23 2019 +0100

    gnu: java-groovy-bootstrap: Don't use unstable tarball.
    
    * gnu/packages/groovy.scm (java-groovy-bootstrap)[source]: Use GIT-FETCH and
    GIT-FILE-NAME.
---
 gnu/packages/groovy.scm | 28 ++++++++++++++++------------
 1 file changed, 16 insertions(+), 12 deletions(-)

diff --git a/gnu/packages/groovy.scm b/gnu/packages/groovy.scm
index aaa524b..f5d0416 100644
--- a/gnu/packages/groovy.scm
+++ b/gnu/packages/groovy.scm
@@ -1,5 +1,6 @@
 ;;; GNU Guix --- Functional package management for GNU
 ;;; Copyright © 2018 Julien Lepiller <address@hidden>
+;;; Copyright © 2019 Tobias Geerinck-Rice <address@hidden>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -20,6 +21,7 @@
   #:use-module ((guix licenses) #:prefix license:)
   #:use-module (guix packages)
   #:use-module (guix download)
+  #:use-module (guix git-download)
   #:use-module (guix utils)
   #:use-module (guix build-system ant)
   #:use-module (gnu packages)
@@ -30,18 +32,20 @@
   (package
     (name "java-groovy-bootstrap")
     (version "2.4.15")
-    (source (origin
-              (method url-fetch)
-              (uri (string-append 
"https://github.com/apache/groovy/archive/GROOVY_";
-                                  (string-map (lambda (x) (if (eq? x #\.) #\_ 
x)) version)
-                                  ".tar.gz"))
-              (file-name (string-append name "-" version ".tar.gz"))
-              (sha256
-               (base32
-                "19f3yd2z6jmz1xhwi5kkg1wmgbqkfs7qvd3rzb43xr3nffz8cisv"))
-              (patches
-                (search-patches
-                  "groovy-add-exceptionutilsgenerator.patch"))))
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/apache/groovy.git";)
+             (commit (string-append
+                      "GROOVY_"
+                      (string-map (lambda (x) (if (eq? x #\.) #\_ x))
+                                  version)))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1q4cplimr18j93zz92kgq8b6wdv0p9svr7cdr47q8b2mbjpd0x3j"))
+       (patches
+        (search-patches "groovy-add-exceptionutilsgenerator.patch"))))
     (build-system ant-build-system)
     (arguments
      `(#:jar-name "groovy.jar"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]