guix-commits
[Top][All Lists]
Advanced

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

07/09: gnu: colormake: Don't use unstable tarball.


From: guix-commits
Subject: 07/09: gnu: colormake: Don't use unstable tarball.
Date: Sun, 3 Nov 2019 01:57:20 -0400 (EDT)

nckx pushed a commit to branch master
in repository guix.

commit 213c32e4b231b767458658bdfd673a9832a73a81
Author: Tobias Geerinckx-Rice <address@hidden>
Date:   Sun Nov 3 06:27:09 2019 +0100

    gnu: colormake: Don't use unstable tarball.
    
    * gnu/packages/code.scm (colormake)[source]: Use GIT-FETCH and
    GIT-FILE-NAME.
    [native-inputs]: Remove gzip and tar.
    [arguments]: Copy the source checkout instead of extracting the source
    tarball.
---
 gnu/packages/code.scm | 24 +++++++++---------------
 1 file changed, 9 insertions(+), 15 deletions(-)

diff --git a/gnu/packages/code.scm b/gnu/packages/code.scm
index 67a2f80..2b858c4 100644
--- a/gnu/packages/code.scm
+++ b/gnu/packages/code.scm
@@ -461,30 +461,24 @@ importantly we give you proper follow-symbol and 
find-references support.")
     (version "0.9.20140503")
     (source
      (origin
-       (method url-fetch)
-       (uri (string-append "https://github.com/pagekite/Colormake/archive/";
-                           version ".tar.gz"))
-       (file-name (string-append name "-" version ".tar.gz"))
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/pagekite/Colormake.git";)
+             (commit version)))
+       (file-name (git-file-name name version))
        (sha256
-        (base32
-         "08ldss9zd8ls6bjahvxhffpsjcysifr720yf3jz9db2mlklzmyd3"))))
+        (base32 "1f9v5s0viq4yc9iv6701h3pv7j21zz1ckl37lpp9hsnliiizv03p"))))
     (build-system trivial-build-system)
     (native-inputs
      `(("bash" ,bash)
-       ("gzip" ,gzip)
-       ("perl" ,perl)
-       ("tar" ,tar)))
+       ("perl" ,perl)))
     (arguments
      `(#:modules ((guix build utils))
        #:builder
        (begin
          (use-modules (guix build utils))
-         ;; bootstrap
-         (setenv "PATH" (string-append
-                         (assoc-ref %build-inputs "tar") "/bin" ":"
-                         (assoc-ref %build-inputs "gzip") "/bin"))
-         (invoke "tar" "xvf" (assoc-ref %build-inputs "source"))
-         (chdir (string-append (string-capitalize ,name) "-" ,version))
+         (copy-recursively (assoc-ref %build-inputs "source") "source")
+         (chdir "source")
          (patch-shebang  "colormake.pl"
                          (list (string-append (assoc-ref %build-inputs "perl")
                                               "/bin")))



reply via email to

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