all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#53248] [PATCH] gnu: Add utf-8-lineseparator.
@ 2022-01-14  7:50 jgart via Guix-patches via
  2022-01-14  8:33 ` [bug#53248] [PATCH v2] " jgart via Guix-patches via
  0 siblings, 1 reply; 3+ messages in thread
From: jgart via Guix-patches via @ 2022-01-14  7:50 UTC (permalink / raw)
  To: 53248; +Cc: jgart

* gnu/packages/textutils.scm (utf-8-lineseparator): New variable.
---
 gnu/packages/textutils.scm | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

diff --git a/gnu/packages/textutils.scm b/gnu/packages/textutils.scm
index 3a90fc8da7..5b1ebfdd9d 100644
--- a/gnu/packages/textutils.scm
+++ b/gnu/packages/textutils.scm
@@ -1374,6 +1374,40 @@ (define-public go-github-com-errata-ai-vale
 @url{https://github.com/errata-ai/styles, their styles repo}.")
     (license license:expat)))
 
+(define-public utf-8-lineseparator
+  (package
+    (name "utf-8-lineseparator")
+    (version "cj3")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/pflanze/utf-8-lineseparator")
+                    (commit version)))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "1xnbcanqn5jr965gw9195ij6hz04clfm77m5776dysn9nykn20w1"))))
+    (build-system gnu-build-system)
+    (arguments
+     `(#:make-flags
+       (list
+         (string-append "CC=" ,(cc-for-target)))
+       #:phases
+       (modify-phases %standard-phases
+         (delete 'configure)
+         (replace 'install
+           (lambda* (#:key inputs outputs #:allow-other-keys)
+             (let* ((out (assoc-ref outputs "out"))
+                    (bin (string-append out "/bin")))
+               (install-file "utf-8-lineseparator" bin)))))))
+    (home-page "https://github.com/pflanze/utf-8-lineseparator")
+    (synopsis "Line ending detection library")
+    (description
+     "@code{utf-8-lineseparator} provides a tool to efficiently check text
+(CSV) files for valid UTF-8 use, and to report which line endings
+they use.")
+    (license license:expat)))
+
 (define-public csvdiff
   (package
     (name "csvdiff")
-- 
2.34.1





^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [bug#53248] [PATCH v2] gnu: Add utf-8-lineseparator.
  2022-01-14  7:50 [bug#53248] [PATCH] gnu: Add utf-8-lineseparator jgart via Guix-patches via
@ 2022-01-14  8:33 ` jgart via Guix-patches via
  2022-01-23 22:19   ` bug#53248: [PATCH] " Ludovic Courtès
  0 siblings, 1 reply; 3+ messages in thread
From: jgart via Guix-patches via @ 2022-01-14  8:33 UTC (permalink / raw)
  To: 53248; +Cc: jgart

* gnu/packages/textutils.scm (utf-8-lineseparator): New variable.
---

Small fix in the description.

 gnu/packages/textutils.scm | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git a/gnu/packages/textutils.scm b/gnu/packages/textutils.scm
index 3a90fc8da7..12e3d3b3c8 100644
--- a/gnu/packages/textutils.scm
+++ b/gnu/packages/textutils.scm
@@ -1374,6 +1374,39 @@ (define-public go-github-com-errata-ai-vale
 @url{https://github.com/errata-ai/styles, their styles repo}.")
     (license license:expat)))
 
+(define-public utf-8-lineseparator
+  (package
+    (name "utf-8-lineseparator")
+    (version "cj3")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/pflanze/utf-8-lineseparator")
+                    (commit version)))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "1xnbcanqn5jr965gw9195ij6hz04clfm77m5776dysn9nykn20w1"))))
+    (build-system gnu-build-system)
+    (arguments
+     `(#:make-flags
+       (list
+         (string-append "CC=" ,(cc-for-target)))
+       #:phases
+       (modify-phases %standard-phases
+         (delete 'configure)
+         (replace 'install
+           (lambda* (#:key inputs outputs #:allow-other-keys)
+             (let* ((out (assoc-ref outputs "out"))
+                    (bin (string-append out "/bin")))
+               (install-file "utf-8-lineseparator" bin)))))))
+    (home-page "https://github.com/pflanze/utf-8-lineseparator")
+    (synopsis "Line ending detection library")
+    (description
+"@code{utf-8-lineseparator} provides a tool to efficiently check text
+files for valid UTF-8 use and to report which line endings they use.")
+    (license license:expat)))
+
 (define-public csvdiff
   (package
     (name "csvdiff")
-- 
2.34.1





^ permalink raw reply related	[flat|nested] 3+ messages in thread

* bug#53248: [PATCH] gnu: Add utf-8-lineseparator.
  2022-01-14  8:33 ` [bug#53248] [PATCH v2] " jgart via Guix-patches via
@ 2022-01-23 22:19   ` Ludovic Courtès
  0 siblings, 0 replies; 3+ messages in thread
From: Ludovic Courtès @ 2022-01-23 22:19 UTC (permalink / raw)
  To: jgart; +Cc: 53248-done

Hi,

jgart <jgart@dismail.de> skribis:

> * gnu/packages/textutils.scm (utf-8-lineseparator): New variable.

Applied, thanks!

Ludo’.




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-01-23 22:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-14  7:50 [bug#53248] [PATCH] gnu: Add utf-8-lineseparator jgart via Guix-patches via
2022-01-14  8:33 ` [bug#53248] [PATCH v2] " jgart via Guix-patches via
2022-01-23 22:19   ` bug#53248: [PATCH] " Ludovic Courtès

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.