From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41069) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1edjKz-0005ID-J0 for guix-patches@gnu.org; Mon, 22 Jan 2018 16:09:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1edjKy-0002qj-A9 for guix-patches@gnu.org; Mon, 22 Jan 2018 16:09:05 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:58947) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1edjKy-0002qA-5x for guix-patches@gnu.org; Mon, 22 Jan 2018 16:09:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1edjKy-0007mz-0f for guix-patches@gnu.org; Mon, 22 Jan 2018 16:09:04 -0500 Subject: [bug#30214] [PATCH 08/10] gnu: Add go-github.com-mattn-go-runewidth. Resent-Message-ID: From: Christopher Baines Date: Mon, 22 Jan 2018 21:08:28 +0000 Message-Id: <20180122210830.28924-8-mail@cbaines.net> In-Reply-To: <20180122210830.28924-1-mail@cbaines.net> References: <87h8rd4nxg.fsf@cbaines.net> <20180122210830.28924-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..6cf7c2165 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 "-checkout")) + (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.15.1