gnu: libgit2: Upgrade to 1.0.0.
* gnu/packages/version-control.scm (libgit2): Upgrade to 1.0.0. [source]: Download using url-fetch. [arguments]: Remove 'fix-pcre2-reference, 'make-git-checkout-writable custom phases. [home-page]: Update home-page.master
parent
b94098af1e
commit
912b6ab01c
|
@ -601,16 +601,15 @@ on @command{git}, and use any regular Git hosting service.")
|
||||||
(define-public libgit2
|
(define-public libgit2
|
||||||
(package
|
(package
|
||||||
(name "libgit2")
|
(name "libgit2")
|
||||||
(version "0.99.0")
|
(version "1.0.0")
|
||||||
(source (origin
|
(source (origin
|
||||||
(method git-fetch)
|
(method url-fetch)
|
||||||
(uri (git-reference
|
(uri (string-append "https://github.com/libgit2/libgit2/"
|
||||||
(url "https://github.com/libgit2/libgit2.git")
|
"releases/download/v" version
|
||||||
(commit (string-append "v" version))))
|
"/libgit2-" version ".tar.gz"))
|
||||||
(file-name (git-file-name name version))
|
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"0qxzv49ip378g1n7hrbifb9c6pys2kj1hnxcafmbb94gj3pgd9kg"))
|
"1d09ni0v3vammk8zqmmwks92fh3wwnsxpyrh4s5wwdb3gxma27va"))
|
||||||
(patches (search-patches "libgit2-mtime-0.patch"))
|
(patches (search-patches "libgit2-mtime-0.patch"))
|
||||||
(snippet '(begin
|
(snippet '(begin
|
||||||
(delete-file-recursively "deps") #t))
|
(delete-file-recursively "deps") #t))
|
||||||
|
@ -623,14 +622,6 @@ on @command{git}, and use any regular Git hosting service.")
|
||||||
"-DUSE_HTTP_PARSER=system")
|
"-DUSE_HTTP_PARSER=system")
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(add-after 'unpack 'fix-pcre2-reference
|
|
||||||
(lambda _
|
|
||||||
;; Use PCRE2 with 8-bit character support, as there is no "libpcre2.pc".
|
|
||||||
;; See <https://github.com/libgit2/libgit2/issues/5438>.
|
|
||||||
(substitute* "src/CMakeLists.txt"
|
|
||||||
(("\"libpcre2\"")
|
|
||||||
"\"libpcre2-8\""))
|
|
||||||
#t))
|
|
||||||
(add-after 'unpack 'fix-hardcoded-paths
|
(add-after 'unpack 'fix-hardcoded-paths
|
||||||
(lambda _
|
(lambda _
|
||||||
(substitute* "tests/repo/init.c"
|
(substitute* "tests/repo/init.c"
|
||||||
|
@ -639,10 +630,6 @@ on @command{git}, and use any regular Git hosting service.")
|
||||||
(("/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"))))))
|
||||||
|
@ -657,7 +644,7 @@ on @command{git}, and use any regular Git hosting service.")
|
||||||
`(("openssl" ,openssl)
|
`(("openssl" ,openssl)
|
||||||
("pcre2" ,pcre2)
|
("pcre2" ,pcre2)
|
||||||
("zlib" ,zlib)))
|
("zlib" ,zlib)))
|
||||||
(home-page "https://libgit2.github.com/")
|
(home-page "https://libgit2.org/")
|
||||||
(synopsis "Library providing Git core methods")
|
(synopsis "Library providing Git core methods")
|
||||||
(description
|
(description
|
||||||
"Libgit2 is a portable, pure C implementation of the Git core methods
|
"Libgit2 is a portable, pure C implementation of the Git core methods
|
||||||
|
|
Reference in New Issue