gnu: cityhash: Install citycrc.h.

* gnu/packages/textutils.scm (cityhash)[arguments]: Install citycrc.h.
[version]: Use standardised format, increment to 1.1-2.
This commit is contained in:
Ben Woodcroft 2016-02-15 22:11:13 +10:00
parent e86409c566
commit a64a8c465d

View file

@ -1,7 +1,7 @@
;;; GNU Guix --- Functional package management for GNU ;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2015 Taylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com> ;;; Copyright © 2015 Taylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com>
;;; Copyright © 2015, 2016 Ricardo Wurmus <rekado@elephly.net> ;;; Copyright © 2015, 2016 Ricardo Wurmus <rekado@elephly.net>
;;; Copyright © 2015 Ben Woodcroft <donttrustben@gmail.com> ;;; Copyright © 2015, 2016 Ben Woodcroft <donttrustben@gmail.com>
;;; Copyright © 2015 Roel Janssen <roel@gnu.org> ;;; Copyright © 2015 Roel Janssen <roel@gnu.org>
;;; ;;;
;;; This file is part of GNU Guix. ;;; This file is part of GNU Guix.
@ -152,11 +152,10 @@ (define-public libgtextutils
(license license:agpl3+))) (license license:agpl3+)))
(define-public cityhash (define-public cityhash
(let ((commit "8af9b8c") (let ((commit "8af9b8c"))
(revision "1"))
(package (package
(name "cityhash") (name "cityhash")
(version (string-append "1.1." revision "." commit)) (version (string-append "1.1-2." commit))
(source (origin (source (origin
(method git-fetch) (method git-fetch)
(uri (git-reference (uri (git-reference
@ -167,6 +166,18 @@ (define-public cityhash
(base32 (base32
"0n6skf5dv8yfl1ckax8dqhvsbslkwc9158zf2ims0xqdvzsahbi6")))) "0n6skf5dv8yfl1ckax8dqhvsbslkwc9158zf2ims0xqdvzsahbi6"))))
(build-system gnu-build-system) (build-system gnu-build-system)
(arguments
'(#:make-flags (list "CXXFLAGS=-g -O3")
#:phases
(modify-phases %standard-phases
;; citycrc is not installed by default but is used by some
;; programs.
(add-after 'install 'install-citycrc
(lambda* (#:key outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))
(include (string-append out "/include")))
(install-file "src/citycrc.h" include))
#t)))))
(home-page "https://github.com/google/cityhash") (home-page "https://github.com/google/cityhash")
(synopsis "C++ hash functions for strings") (synopsis "C++ hash functions for strings")
(description (description