From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54939) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ee563-0002H1-B1 for guix-patches@gnu.org; Tue, 23 Jan 2018 15:23:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ee561-0001Dq-RZ for guix-patches@gnu.org; Tue, 23 Jan 2018 15:23:07 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:60344) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ee561-0001Dd-OL for guix-patches@gnu.org; Tue, 23 Jan 2018 15:23:05 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ee561-0007s2-H2 for guix-patches@gnu.org; Tue, 23 Jan 2018 15:23:05 -0500 Subject: [bug#30214] [PATCH 08/10] gnu: Add go-github.com-mattn-go-runewidth. Resent-Message-ID: From: Christopher Baines Date: Tue, 23 Jan 2018 20:22:00 +0000 Message-Id: <20180123202202.32140-8-mail@cbaines.net> In-Reply-To: <20180123202202.32140-1-mail@cbaines.net> References: <20180123202202.32140-1-mail@cbaines.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 30214@debbugs.gnu.org * gnu/packages/textutils.scm (go-github.com-mattn-go-runewidth): New variable. --- gnu/packages/textutils.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/gnu/packages/textutils.scm b/gnu/packages/textutils.scm index 1f5fe6aba..2e7051ee2 100644 --- a/gnu/packages/textutils.scm +++ b/gnu/packages/textutils.scm @@ -37,6 +37,7 @@ #:use-module (guix git-download) #:use-module (guix build-system ant) #:use-module (guix build-system gnu) + #:use-module (guix build-system go) #:use-module (guix build-system cmake) #:use-module (guix build-system python) #:use-module (gnu packages) @@ -660,3 +661,35 @@ source code.") "This library simply implements Levenshtein distance algorithm with C++ and Cython.") (license license:expat)))) + +(define-public go-github.com-mattn-go-runewidth + (package + (name "go-github.com-mattn-go-runewidth") + (version "0.0.2") + (source (origin + (method url-fetch) + (uri (string-append + "https://github.com/mattn/go-runewidth/archive/v" + version ".tar.gz")) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0xmhjpzdsy01apxl0s9kd0x7v3slahdg4njsygs9m0nz3x038xvc")))) + (build-system go-build-system) + (arguments + `(#:import-path "github.com/mattn/go-runewidth" + #:unpack-path "github.com/mattn" + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'rename-archive + (lambda _ + (rename-file + ,(string-append "src/github.com/mattn/go-runewidth-" version) + "src/github.com/mattn/go-runewidth") + #t))))) + (synopsis "@code{runewidth} provides Go functions to work with string widths") + (description + "The @code{runewidth} library provides Go functions for padding, +measuring and checking the width of strings, with support east asian text.") + (home-page "https://github.com/jessevdk/go-flags") + (license license:expat))) -- 2.16.0