From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: [PATCH] Add ustr. Date: Thu, 17 Mar 2016 13:13:33 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/x-patch Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56530) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1agWoK-0005ru-Dz for guix-devel@gnu.org; Thu, 17 Mar 2016 08:13:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1agWoF-0000vi-Db for guix-devel@gnu.org; Thu, 17 Mar 2016 08:13:52 -0400 Received: from venus.bbbm.mdc-berlin.de ([141.80.25.30]:52502) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1agWoF-0000vN-1B for guix-devel@gnu.org; Thu, 17 Mar 2016 08:13:47 -0400 Received: from localhost (localhost [127.0.0.1]) by venus.bbbm.mdc-berlin.de (Postfix) with ESMTP id 1F3D0381132 for ; Thu, 17 Mar 2016 13:13:44 +0100 (CET) Received: from venus.bbbm.mdc-berlin.de ([127.0.0.1]) by localhost (venus.bbbm.mdc-berlin.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7Qppe6JapTVg for ; Thu, 17 Mar 2016 13:13:38 +0100 (CET) Received: from HTCATWO.mdc-berlin.net (puck.citx.mdc-berlin.de [141.80.36.101]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by venus.bbbm.mdc-berlin.de (Postfix) with ESMTPS for ; Thu, 17 Mar 2016 13:13:38 +0100 (CET) Content-Disposition: inline; filename="0001-gnu-Add-ustr.patch" 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 >From 0caa764661bef61145541497a0124ff2c7e8494c Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Thu, 17 Mar 2016 13:08:30 +0100 Subject: [PATCH] gnu: Add ustr. * gnu/packages/textutils.scm (ustr): New variable. --- gnu/packages/textutils.scm | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/gnu/packages/textutils.scm b/gnu/packages/textutils.scm index 6f3782f..d2f7d32 100644 --- a/gnu/packages/textutils.scm +++ b/gnu/packages/textutils.scm @@ -185,6 +185,47 @@ the Hannon Lab.") input bits thoroughly but are not suitable for cryptography.") (license license:expat)))) +(define-public ustr + (package + (name "ustr") + (version "1.0.4") + (source (origin + (method url-fetch) + (uri (string-append "http://www.and.org/ustr/" version + "/ustr-" version ".tar.bz2")) + (sha256 + (base32 + "1i623ygdj7rkizj7985q9d6vj5amwg686aqb5j3ixpkqkyp6xbrx")))) + (build-system gnu-build-system) + (arguments + `(#:make-flags + (list "CC=gcc" + "HIDE=" + "LDCONFIG=echo" + (string-append "prefix=" (assoc-ref %outputs "out")) + "all-shared") + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'disable-check-for-stdint + (lambda _ + ;; Of course we have stdint.h, just not in /usr/include + (substitute* '("Makefile" + "ustr-import.in") + (("-f \"/usr/include/stdint.h\"") "-z \"\"")) + #t)) + ;; No configure script + (delete 'configure)))) + (home-page "http://www.and.org/ustr/") + (synopsis "String library with very low memory overhead") + (description + "Ustr is a string library for C with very low memory overhead.") + ;; Quoted from the home page: "The License for the code is MIT, new-BSD, + ;; LGPL, etc. ... if you need another license to help compatibility, just + ;; ask for it. It's basically public domain, without all the legal + ;; problems for everyone that trying to make something public domain + ;; entails." + (license license:public-domain))) + (define-public libconfig (package (name "libconfig") -- 2.1.0