gnu: blesh: Update to 0.4.0-devel3.

* gnu/packages/bash.scm (blesh): Update to 0.4.0-devel3.
[source]: Use recursive checkout.
[phases]: Remove 'make-readlink-work. Rename 'pretend-contrib-.git-exists
to 'pretend-.git-exists. Substitute commit_hash for package version.
[native-inputs]: Add git.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
kiasoc5 2023-05-29 19:46:53 -04:00 committed by Ludovic Courtès
parent 748665f49a
commit d3f5c35e40
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -445,28 +445,27 @@ (define-public bash-ctypes
(define-public blesh (define-public blesh
(package (package
(name "blesh") (name "blesh")
(version "0.4.0-devel2") (version "0.4.0-devel3")
(source (origin (source (origin
(method git-fetch) (method git-fetch)
(uri (git-reference (uri (git-reference
(url "https://github.com/akinomyoga/ble.sh") (url "https://github.com/akinomyoga/ble.sh")
(commit (string-append "v" version)))) (commit (string-append "v" version))
(recursive? #t)))
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 (base32
"02fdjyh4x6wr5hg3i86nsxhz8ysgjrvvxdmk6pqr0lm8ngw9p3sh")))) "19y9rmj9srl7akx33gl34l5qgz2ww0vlmi4j2r11029p8sn4s418"))))
(arguments (arguments
(list #:make-flags #~(list (string-append "PREFIX=" (list #:make-flags #~(list (string-append "PREFIX="
#$output)) #$output))
#:phases #~(modify-phases %standard-phases #:phases #~(modify-phases %standard-phases
(add-after 'unpack 'pretend-contrib-.git-exists (add-after 'unpack 'pretend-.git-exists
(lambda _
(mkdir-p "contrib/.git")))
(add-after 'unpack 'make-readlink-work
(lambda _ (lambda _
(substitute* "ble.pp" (substitute* "ble.pp"
(("PATH=/bin:/usr/bin readlink") (("#%\\[commit_hash =.*")
"readlink")))) (string-append "#%[commit_hash = " #$version "]\n")))
(mkdir-p ".git")))
(delete 'configure) ;no configure (delete 'configure) ;no configure
(add-before 'check 'use-LANG-for-tests (add-before 'check 'use-LANG-for-tests
(lambda _ (lambda _
@ -474,7 +473,7 @@ (define-public blesh
(getenv "LC_ALL")) (getenv "LC_ALL"))
(unsetenv "LC_ALL")))))) (unsetenv "LC_ALL"))))))
(build-system gnu-build-system) (build-system gnu-build-system)
(native-inputs (list less)) (native-inputs (list git less))
(home-page "https://github.com/akinomyoga/ble.sh") (home-page "https://github.com/akinomyoga/ble.sh")
(synopsis "Bash Line Editor") (synopsis "Bash Line Editor")
(description (description