From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Thompson Subject: [PATCH] gnu: Add xxhash. Date: Sun, 26 Apr 2015 17:53:32 -0400 Message-ID: <87oama8skj.fsf@fsf.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56658) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YmUUa-0006PA-Fw for guix-devel@gnu.org; Sun, 26 Apr 2015 17:53:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YmUUX-0001Wr-U6 for guix-devel@gnu.org; Sun, 26 Apr 2015 17:53:36 -0400 Received: from mail.fsf.org ([208.118.235.13]:45503) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YmUUX-0001Wn-QD for guix-devel@gnu.org; Sun, 26 Apr 2015 17:53:33 -0400 Received: from 209-6-40-86.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com ([209.6.40.86]:40122 helo=izanagi) by mail.fsf.org with esmtpsa (TLS-1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.69) (envelope-from ) id 1YmUUX-0004Vz-Ae for guix-devel@gnu.org; Sun, 26 Apr 2015 17:53:33 -0400 List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix-devel@gnu.org --=-=-= Content-Type: text/x-diff; charset=utf-8 Content-Disposition: inline; filename=0001-gnu-Add-xxhash.patch Content-Transfer-Encoding: quoted-printable >From 43b55a20d7d4c01b200768ccea733d261c12e699 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Sun, 26 Apr 2015 16:42:05 -0400 Subject: [PATCH] gnu: Add xxhash. * gnu/packages/xxhash.scm: New file. * gnu-system.am (GNU_SYSTEM_MODULES): Add it. --- gnu-system.am | 1 + gnu/packages/xxhash.scm | 63 +++++++++++++++++++++++++++++++++++++++++++++= ++++ 2 files changed, 64 insertions(+) create mode 100644 gnu/packages/xxhash.scm diff --git a/gnu-system.am b/gnu-system.am index ae6b4e2..a99e2bd 100644 --- a/gnu-system.am +++ b/gnu-system.am @@ -317,6 +317,7 @@ GNU_SYSTEM_MODULES =3D \ gnu/packages/xdisorg.scm \ gnu/packages/xorg.scm \ gnu/packages/xfce.scm \ + gnu/packages/xxhash.scm \ gnu/packages/yasm.scm \ gnu/packages/yubico.scm \ gnu/packages/zile.scm \ diff --git a/gnu/packages/xxhash.scm b/gnu/packages/xxhash.scm new file mode 100644 index 0000000..28241db --- /dev/null +++ b/gnu/packages/xxhash.scm @@ -0,0 +1,63 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright =C2=A9 2015 David Thompson +;;; +;;; This file is part of GNU Guix. +;;; +;;; GNU Guix is free software; you can redistribute it and/or modify it +;;; under the terms of the GNU General Public License as published by +;;; the Free Software Foundation; either version 3 of the License, or (at +;;; your option) any later version. +;;; +;;; GNU Guix is distributed in the hope that it will be useful, but +;;; WITHOUT ANY WARRANTY; without even the implied warranty of +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;;; GNU General Public License for more details. +;;; +;;; You should have received a copy of the GNU General Public License +;;; along with GNU Guix. If not, see . + +(define-module (gnu packages xxhash) + #:use-module (gnu packages) + #:use-module (guix licenses) + #:use-module (guix packages) + #:use-module (guix download) + #:use-module (guix build-system gnu) + #:use-module (gnu packages valgrind)) + +(define-public xxhash + (package + (name "xxhash") + (version "r39") + (source (origin + (method url-fetch) + (uri (string-append "https://github.com/Cyan4973/xxHash/arch= ive/" + version ".tar.gz")) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "06mw48qyb58w6rclfsplbmakczdy9rnb72dwqj5an4bfsax2vai3")))) + (build-system gnu-build-system) + (arguments + `(#:test-target "test" + #:make-flags '("CC=3Dgcc") + #:phases (modify-phases %standard-phases + (delete 'configure) + ;; There is no 'install' phase in the Makefile. + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (bindir (string-append out "/bin")) + (xxhsum (string-append bindir "/xxhsum"))) + (mkdir-p bindir) + (copy-file "xxhsum" xxhsum) + (symlink xxhsum (string-append bindir "/xxh32sum")) + (symlink xxhsum (string-append bindir "/xxh64sum")) + #t)))))) + (native-inputs + `(("valgrind" ,valgrind))) + (home-page "https://github.com/Cyan4973/xxHash") + (synopsis "Extremely fast non-cryptographic hash algorithm") + (description + "xxHash is an extremely fast hash algorithm, running at RAM speed lim= its. +It successfully passes the SMHasher test suite evaluating hash quality.") + (license bsd-2))) --=20 2.1.4 --=-=-= Content-Type: text/plain -- David Thompson Web Developer - Free Software Foundation - http://fsf.org GPG Key: 0FF1D807 Support the FSF: https://fsf.org/donate --=-=-=--