~ruther/guix-local

01831203c26383fdb873bf10e934a403b6971335 — Sharlatan Hellseher 3 months ago c0b961f
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
1 files changed, 27 insertions(+), 10 deletions(-)

M gnu/packages/admin.scm
M gnu/packages/admin.scm => gnu/packages/admin.scm +27 -10
@@ 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