guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#30214] [PATCH 08/10] gnu: Add go-github.com-mattn-go-runewidth.


From: Christopher Baines
Subject: [bug#30214] [PATCH 08/10] gnu: Add go-github.com-mattn-go-runewidth.
Date: Mon, 22 Jan 2018 21:08:28 +0000

* 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






reply via email to

[Prev in Thread] Current Thread [Next in Thread]