gnu: libgit2: Don't use unstable tarball.
* gnu/packages/version-control.scm (libgit2)[source]: Use GIT-FETCH and GIT-FILE-NAME. [arguments]: Add ‘make-git-checkout-writable’ phase.
This commit is contained in:
parent
c3ecab0dc5
commit
22c88f5d85
|
@ -522,13 +522,14 @@ everything from small to very large projects with speed and efficiency.")
|
||||||
(name "libgit2")
|
(name "libgit2")
|
||||||
(version "0.28.1")
|
(version "0.28.1")
|
||||||
(source (origin
|
(source (origin
|
||||||
(method url-fetch)
|
(method git-fetch)
|
||||||
(uri (string-append "https://github.com/libgit2/libgit2/"
|
(uri (git-reference
|
||||||
"archive/v" version ".tar.gz"))
|
(url "https://github.com/libgit2/libgit2.git")
|
||||||
(file-name (string-append name "-" version ".tar.gz"))
|
(commit (string-append "v" version))))
|
||||||
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"0swk2dyq5a4p1jn5wvbcsrxckhh808vifxz5y8w663avg541188c"))
|
"0j5p0hhz2wizvgkf0nbpd8g32mb5bg1vp8ckpbhb0pq38ja4h43r"))
|
||||||
(patches (search-patches "libgit2-avoid-python.patch"
|
(patches (search-patches "libgit2-avoid-python.patch"
|
||||||
"libgit2-mtime-0.patch"))
|
"libgit2-mtime-0.patch"))
|
||||||
|
|
||||||
|
@ -551,6 +552,10 @@ everything from small to very large projects with speed and efficiency.")
|
||||||
(("/bin/cp") (which "cp"))
|
(("/bin/cp") (which "cp"))
|
||||||
(("/bin/rm") (which "rm")))
|
(("/bin/rm") (which "rm")))
|
||||||
#t))
|
#t))
|
||||||
|
(add-after 'unpack 'make-git-checkout-writable
|
||||||
|
(lambda _
|
||||||
|
(for-each make-file-writable (find-files "."))
|
||||||
|
#t))
|
||||||
;; Run checks more verbosely.
|
;; Run checks more verbosely.
|
||||||
(replace 'check
|
(replace 'check
|
||||||
(lambda _ (invoke "./libgit2_clar" "-v" "-Q"))))))
|
(lambda _ (invoke "./libgit2_clar" "-v" "-Q"))))))
|
||||||
|
|
Loading…
Reference in New Issue