From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33472) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1efRyb-0003O3-Pz for guix-patches@gnu.org; Sat, 27 Jan 2018 10:01:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1efRyY-0000ST-VV for guix-patches@gnu.org; Sat, 27 Jan 2018 10:01:05 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:37452) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1efRyY-0000Rz-RF for guix-patches@gnu.org; Sat, 27 Jan 2018 10:01:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1efRyY-0004oz-JJ for guix-patches@gnu.org; Sat, 27 Jan 2018 10:01:02 -0500 Subject: [bug#30214] [PATCH 08/10] gnu: Add go-github.com-mattn-go-runewidth. Resent-Message-ID: From: Christopher Baines Date: Sat, 27 Jan 2018 15:00:25 +0000 Message-Id: <20180127150027.27150-8-mail@cbaines.net> In-Reply-To: <20180127150027.27150-1-mail@cbaines.net> References: <20180127150027.27150-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 | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/gnu/packages/textutils.scm b/gnu/packages/textutils.scm index 1f5fe6aba..3284be243 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,26 @@ 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 git-fetch) + (uri (git-reference + (url "https://github.com/mattn/go-runewidth") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0vkrfrz3fzn5n6ix4k8s0cg0b448459sldq8bp4riavsxm932jzb")))) + (build-system go-build-system) + (arguments + '(#:import-path "github.com/mattn/go-runewidth")) + (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.15.1