emacs-bug-tracker
[Top][All Lists]
Advanced

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

bug#53248: closed ([PATCH] gnu: Add utf-8-lineseparator.)


From: GNU bug Tracking System
Subject: bug#53248: closed ([PATCH] gnu: Add utf-8-lineseparator.)
Date: Sun, 23 Jan 2022 22:20:02 +0000

Your message dated Sun, 23 Jan 2022 23:19:30 +0100
with message-id <87v8yaxfgt.fsf_-_@gnu.org>
and subject line Re: bug#53248: [PATCH] gnu: Add utf-8-lineseparator.
has caused the debbugs.gnu.org bug report #53248,
regarding [PATCH] gnu: Add utf-8-lineseparator.
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
53248: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=53248
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: [PATCH] gnu: Add utf-8-lineseparator. Date: Fri, 14 Jan 2022 02:50:35 -0500
* 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




--- End Message ---
--- Begin Message --- Subject: Re: bug#53248: [PATCH] gnu: Add utf-8-lineseparator. Date: Sun, 23 Jan 2022 23:19:30 +0100 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Hi,

jgart <jgart@dismail.de> skribis:

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

Applied, thanks!

Ludo’.


--- End Message ---

reply via email to

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