From: Alex Griffin <a@ajgrf.com>
To: Alex Kost <alezost@gmail.com>, Leo Famulari <leo@famulari.name>
Cc: guix-devel@gnu.org
Subject: Re: [PATCH 1/3] gnu: Add utfcpp.
Date: Tue, 10 May 2016 18:31:59 -0500 [thread overview]
Message-ID: <1462923119.2127152.604121329.706EC4C2@webmail.messagingengine.com> (raw)
In-Reply-To: <87h9e7pskn.fsf@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 73 bytes --]
Here's an updated patch with utfcpp moved to textutils.
--
Alex Griffin
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-Add-utfcpp.patch --]
[-- Type: text/x-patch; name="0001-gnu-Add-utfcpp.patch", Size: 2952 bytes --]
From 0fada0c526a9d3aa1573d96ec488da1c20b43a0d Mon Sep 17 00:00:00 2001
From: Alex Griffin <a@ajgrf.com>
Date: Sat, 7 May 2016 12:16:39 -0500
Subject: [PATCH 1/2] gnu: Add utfcpp.
* gnu/packages/textutils.scm (utfcpp): New variable.
---
gnu/packages/textutils.scm | 44 +++++++++++++++++++++++++++++++++++++++++++-
1 file changed, 43 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/textutils.scm b/gnu/packages/textutils.scm
index f6735a4..080c95b 100644
--- a/gnu/packages/textutils.scm
+++ b/gnu/packages/textutils.scm
@@ -4,6 +4,7 @@
;;; Copyright © 2015, 2016 Ben Woodcroft <donttrustben@gmail.com>
;;; Copyright © 2015 Roel Janssen <roel@gnu.org>
;;; Copyright © 2016 Jelle Licht <jlicht@fsfe.org>
+;;; Copyright © 2016 Alex Griffin <a@ajgrf.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -27,8 +28,10 @@
#:use-module (guix git-download)
#:use-module (guix build-system gnu)
#:use-module (guix build-system cmake)
+ #:use-module (guix build-system trivial)
#:use-module (gnu packages autotools)
- #:use-module (gnu packages python))
+ #:use-module (gnu packages python)
+ #:use-module (gnu packages zip))
(define-public recode
(package
@@ -328,3 +331,42 @@ name comes from: \"The antidote against people who send Microsoft Word files
to everybody, because they believe that everybody runs Windows and therefore
runs Word\".")
(license license:gpl2+)))
+
+(define-public utfcpp
+ (package
+ (name "utfcpp")
+ (version "2.3.4")
+ (source (origin
+ (method url-fetch)
+ (uri
+ (string-append
+ "mirror://sourceforge/project/utfcpp/utf8cpp_2x/Release%20"
+ version "/utf8_v"
+ (string-map (lambda (x) (if (eq? x #\.) #\_ x)) version)
+ ".zip"))
+ (file-name (string-append name "-" version ".zip"))
+ (sha256
+ (base32
+ "1vqhs0aipcvvdrwcs7h3jsryg6mgbmc4s34n5cm6d36q4nxwwwrk"))))
+ (build-system trivial-build-system)
+ (arguments
+ `(#:modules ((guix build utils))
+ #:builder
+ (begin
+ (use-modules (guix build utils))
+ (let ((source (assoc-ref %build-inputs "source"))
+ (out (assoc-ref %outputs "out"))
+ (unzip (string-append (assoc-ref %build-inputs "unzip")
+ "/bin/unzip")))
+ (mkdir-p out)
+ (with-directory-excursion out
+ (system* unzip source)
+ (mkdir-p "share/doc")
+ (rename-file "doc" "share/doc/utfcpp")
+ (rename-file "source" "include"))))))
+ (native-inputs `(("unzip" ,unzip)))
+ (home-page "https://github.com/nemtrif/utfcpp")
+ (synopsis "Portable C++ library for handling UTF-8")
+ (description "UTF8-CPP is a C++ library for handling UTF-8 encoded text
+in a portable way.")
+ (license license:boost1.0)))
--
2.7.4
next prev parent reply other threads:[~2016-05-10 23:32 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-07 18:36 [PATCH 1/3] gnu: Add utfcpp Alex Griffin
2016-05-07 22:19 ` Leo Famulari
2016-05-08 2:10 ` Alex Griffin
2016-05-08 8:13 ` Alex Kost
2016-05-08 14:43 ` Alex Griffin
2016-05-08 19:42 ` Alex Kost
2016-05-09 3:31 ` Leo Famulari
2016-05-09 8:02 ` Alex Kost
2016-05-10 23:31 ` Alex Griffin [this message]
2016-05-12 10:02 ` Alex Kost
2016-05-08 16:12 ` Ludovic Courtès
2016-05-08 19:22 ` Alex Kost
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1462923119.2127152.604121329.706EC4C2@webmail.messagingengine.com \
--to=a@ajgrf.com \
--cc=alezost@gmail.com \
--cc=guix-devel@gnu.org \
--cc=leo@famulari.name \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.