gnu: rhash: Update to 1.3.6.

* gnu/packages/crypto.scm (rhash): Update to 1.3.6.
[arguments]: Adjust to extensive build system changes.
master
Tobias Geerinckx-Rice 2018-04-30 21:09:59 +02:00
parent 539a8d2931
commit 53bed20918
No known key found for this signature in database
GPG Key ID: 0DB0FF884F556D79
1 changed files with 14 additions and 19 deletions

View File

@ -671,7 +671,7 @@ BLAKE.")
(define-public rhash (define-public rhash
(package (package
(name "rhash") (name "rhash")
(version "1.3.5") (version "1.3.6")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
@ -680,32 +680,27 @@ BLAKE.")
(file-name (string-append name "-" version ".tar.gz")) (file-name (string-append name "-" version ".tar.gz"))
(sha256 (sha256
(base32 (base32
"0bhz3xdl6r06k1bqigdjz42l31iqz2qdpg7zk316i7p2ra56iq4q")))) "14ngzfgmd1lfp7m78sn49x8ymf2s37nrr67c6p5vas85nrrgjkcn"))))
(build-system gnu-build-system) (build-system gnu-build-system)
(arguments (arguments
`(#:make-flags (list "CC=gcc" `(#:make-flags
(string-append "PREFIX=" %output)) ;; The binaries in /bin need some help finding librhash.so.0.
#:test-target "test" (list (string-append "LDFLAGS=-Wl,-rpath=" %output "/lib"))
#:test-target "test" ; make check just checks the sources
#:phases #:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(replace 'configure (replace 'configure
;; ./configure is not GNU autotools' and doesn't gracefully handle
;; unrecognized options, so we must call it manually.
(lambda* (#:key outputs #:allow-other-keys) (lambda* (#:key outputs #:allow-other-keys)
(substitute* "Makefile" (invoke "./configure"
(("\\$\\(DESTDIR\\)/etc") (string-append "--prefix=" (assoc-ref outputs "out")))))
(string-append (assoc-ref outputs "out") "/etc"))) (add-after 'install 'install-library-extras
#t))
(add-after 'build 'build-library
(lambda* (#:key make-flags #:allow-other-keys) (lambda* (#:key make-flags #:allow-other-keys)
(apply invoke "make" "lib-shared" make-flags)))
(add-after 'install 'install-library
(lambda* (#:key make-flags #:allow-other-keys)
(apply invoke "make" "install-lib-shared" make-flags)
(apply invoke (apply invoke
"make" "-C" "librhash" "install-headers" "make" "-C" "librhash"
"install-so-link" make-flags))) "install-headers" "install-so-link"
(add-after 'check 'check-library make-flags))))))
(lambda* (#:key make-flags #:allow-other-keys)
(apply invoke "make" "test-shared-lib" make-flags))))))
(home-page "https://sourceforge.net/projects/rhash/") (home-page "https://sourceforge.net/projects/rhash/")
(synopsis "Utility for computing hash sums") (synopsis "Utility for computing hash sums")
(description "RHash is a console utility for calculation and verification (description "RHash is a console utility for calculation and verification