diff options
author | Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de> | 2016-03-17 13:08:30 +0100 |
---|---|---|
committer | Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de> | 2016-03-21 15:53:40 +0100 |
commit | 9128db2178ab29f665352b0a2b4494c1df4c1afe (patch) | |
tree | e915aa29975740d7be8bf6353773bfa28aa9e718 | |
parent | ce16d1dc94035a89841085a628c93acc39563e45 (diff) | |
download | patches-9128db2178ab29f665352b0a2b4494c1df4c1afe.tar patches-9128db2178ab29f665352b0a2b4494c1df4c1afe.tar.gz |
gnu: Add ustr.
* gnu/packages/textutils.scm (ustr): New variable.
-rw-r--r-- | gnu/packages/textutils.scm | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/gnu/packages/textutils.scm b/gnu/packages/textutils.scm index 6f3782fa7b..73a0532478 100644 --- a/gnu/packages/textutils.scm +++ b/gnu/packages/textutils.scm @@ -185,6 +185,49 @@ 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=" + ;; Override "/sbin/ldconfig" with "echo" because we don't need + ;; "ldconfig". + "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") |