gnu: hungrycat: Build from git.

* gnu/packages/admin.scm (hungrycat):
[source]: Switch to git-fetch.
[arguments] <make-flags>: Set CC for target.
<phases>: Add 'build-doc.
[native-inputs]: Remove python-wrapper and python-pynose; add automake,
autoconf, cppcheck, and python-docutils.

Change-Id: I874ebefc90b850985bf55bfd3718e817a4f6d580
This commit is contained in:
Sharlatan Hellseher 2025-12-02 10:40:17 +00:00
parent c0b961fd94
commit 01831203c2
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -376,17 +376,34 @@ service.")
(package
(name "hungrycat")
(version "0.4.2")
(source (origin
(method url-fetch)
(uri (string-append "https://github.com/jwilk/hungrycat/"
"releases/download/" version "/"
"hungrycat-" version ".tar.gz"))
(sha256
(base32
"0xy9l4hky85h3rgdmqmhcnx0q1hq0brskr8lzw2lz6lh7pxlxmyw"))))
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/jwilk/hungrycat/")
(commit version)))
(file-name (git-file-name name version))
(sha256
(base32 "0llfb7kh2k53aqwc1fagw77fmwhvwdxd5qlg0fyrhqq298gj8wif"))))
(build-system gnu-build-system)
(arguments (list #:test-target "test"))
(native-inputs (list perl perl-ipc-run python-wrapper python-pynose))
(arguments
(list
;; tests: Files=2, Tests=2334, 1 wallclock secs
#:test-target "test"
#:make-flags
#~(list (string-append "CC=" #$(cc-for-target)))
#:phases
#~(modify-phases %standard-phases
(add-after 'build 'build-doc
(lambda _
(invoke "make" "-C" "doc"))))))
(native-inputs
(list automake
autoconf
cppcheck
perl
perl-ipc-run
python-docutils))
(synopsis "Single tool that combines @command{cat} & @command{rm}")
(description
"hungrycat prints the contents of a file to standard output, while