gnu: hebcal: Update to 5.8.7.

* gnu/packages/calendar.scm (hebcal): Update to 5.8.7.
[inputs]: Remove go-github-com-pborman-getopt; add
go-github-com-pborman-getopt-v2.

Change-Id: I7105ce40d84610ba598fc3c95718354415d36109
This commit is contained in:
Sharlatan Hellseher 2024-12-22 16:40:58 +00:00
parent dc1074ddc3
commit 5538884e50
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -437,23 +437,33 @@ (define-public gsimplecal
(license license:bsd-3))))
(define-public hebcal
(let ((commit "2384bb88dc1a41a4a5ae57a29fb58b2dd49a475d")
(revision "0"))
(package
(name "hebcal")
(version (git-version "5.3.0" revision commit))
(version "5.8.7")
(source (origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/hebcal/hebcal")
(commit commit)))
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32
"12rv3b51jb7wcjwmmizz9jkw7gh37yklys4xncvpzgxdkkfgmmjx"))))
"1a1b9jip1ha6bzv6xg9fx47q167yzgbxjvrp5zngv175nzl9427j"))))
(build-system go-build-system)
(arguments
(list #:import-path "github.com/hebcal/hebcal"))
(list
#:install-source? #f
#:import-path "github.com/hebcal/hebcal"
#:phases
#~(modify-phases %standard-phases
;; taken from Makefile
(add-after 'unpack 'set-defautl-city
(lambda* (#:key import-path #:allow-other-keys)
(with-directory-excursion (string-append "src/" import-path)
(with-output-to-file "dcity.go"
(lambda ()
(format #t "package main~%var defaultCity = ~s~%"
"Paris")))))))))
(inputs
(list go-github-com-hebcal-hebcal-go
go-github-com-pborman-getopt-v2))
@ -469,4 +479,4 @@ (define-public hebcal
Omer or with calculation of Hebrew yahrzeits, birthdays, or
anniversaries.")
(home-page "https://github.com/hebcal/hebcal")
(license license:gpl2+))))
(license license:gpl2+)))