[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 12/13] gnu: Add libutf.
From: |
ng0 |
Subject: |
[PATCH 12/13] gnu: Add libutf. |
Date: |
Mon, 9 Jan 2017 20:21:24 +0000 |
* gnu/packages/suckless.scm (libutf): New variable.
---
gnu/packages/suckless.scm | 50 ++++++++++++++++++++++++++++++++++++++++++++++-
1 file changed, 49 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/suckless.scm b/gnu/packages/suckless.scm
index de251bc7b..0fd49fe7c 100644
--- a/gnu/packages/suckless.scm
+++ b/gnu/packages/suckless.scm
@@ -27,6 +27,7 @@
#:use-module ((guix licenses) #:prefix license:)
#:use-module (guix packages)
#:use-module (guix download)
+ #:use-module (guix git-download)
#:use-module (guix build-system gnu)
#:use-module (guix build-system glib-or-gtk)
#:use-module (gnu packages)
@@ -41,7 +42,8 @@
#:use-module (gnu packages linux)
#:use-module (gnu packages compression)
#:use-module (gnu packages cups)
- #:use-module (gnu packages ncurses))
+ #:use-module (gnu packages ncurses)
+ #:use-module (gnu packages gawk))
(define-public dwm
(package
@@ -568,3 +570,49 @@ initially intended to be used on musl based Linux
distributions.
strings(1) but for pictures. For a given input file it outputs a
colormap to stdout.")
(license license:isc)))
+
+;; No new releases were made at github, this repository is more active than
+;; the one at http://git.suckless.org/libutf/ and it is
+;; done by the same developer.
+(define-public libutf
+ (let ((revision "1")
+ (commit "ff4c60635e1f455b0a0b4200f8183fbd5a88225b"))
+ (package
+ (name "libutf")
+ (version (string-append "0.0.0-" revision "." (string-take commit 7)))
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/cls/libutf")
+ (commit commit)))
+ (file-name (string-append name "-" version "-checkout"))
+ (sha256
+ (base32
+ "1ih5vjavilzggyr1j1z6w1z12c2fs5fg77cfnv7ami5ivsy3kg3d"))))
+ (build-system gnu-build-system)
+ (arguments
+ `(#:tests? #f ; No tests
+ #:make-flags (list "CC=gcc"
+ (string-append "PREFIX=" %output))
+ #:phases
+ (modify-phases %standard-phases
+ (delete 'configure)))) ; No configure script
+ (inputs
+ `(("gawk" ,gawk)))
+ (home-page "https://github.com/cls/libutf")
+ (synopsis "Plan 9 compatible UTF-8 library")
+ (description
+ "This is a C89 UTF-8 library, with an API compatible with that of
+Plan 9's libutf, but with a number of improvements:
+
address@hidden
address@hidden Support for runes beyond the Basic Multilingual Plane.
address@hidden utflen and utfnlen cannot overflow on 32- or 64-bit machines.
address@hidden chartorune treats all invalid codepoints as though Runeerror.
address@hidden fullrune, utfecpy, and utfnlen do not overestimate the length of
malformed runes.
address@hidden An extra function, charntorune(p,s,n), equivalent to
fullrune(s,n) ? chartorune(p,s)
+: 0.
address@hidden Runeerror may be set to an alternative replacement value, such
as -1, to be used instead of U+FFFD.
address@hidden itemize\n")
+ (license license:expat))))
--
2.11.0
- Re: [PATCH 05/13] gnu: Add skroll., (continued)
- [PATCH 11/13] gnu: Add colors., ng0, 2017/01/09
- [PATCH 08/13] gnu: Add noice., ng0, 2017/01/09
- [PATCH 10/13] gnu: Add fortify-headers., ng0, 2017/01/09
- [PATCH 07/13] gnu: Add prout., ng0, 2017/01/09
- [PATCH 06/13] gnu: Add sbm., ng0, 2017/01/09
- [PATCH 13/13] gnu: Add lchat., ng0, 2017/01/09
- [PATCH 04/13] licenses: Add wtfpl., ng0, 2017/01/09
- [PATCH 12/13] gnu: Add libutf.,
ng0 <=
- Re: Some suckless/2f30 packages., Leo Famulari, 2017/01/09
- 2f30, v2, ng0, 2017/01/11
- [PATCH 04/13] licenses: Add wtfpl2., ng0, 2017/01/11
- [PATCH 01/13] gnu: Add xbattmon., ng0, 2017/01/11
- [PATCH 03/13] gnu: Add spoon., ng0, 2017/01/11
- [PATCH 05/13] gnu: Add skroll., ng0, 2017/01/11
- [PATCH 07/13] gnu: Add prout., ng0, 2017/01/11
- [PATCH 06/13] gnu: Add sbm., ng0, 2017/01/11
- [PATCH 12/13] gnu: Add libutf., ng0, 2017/01/11
- [PATCH 11/13] gnu: Add colors., ng0, 2017/01/11