From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50322) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dMeH1-00054G-8U for guix-patches@gnu.org; Sun, 18 Jun 2017 13:46:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dMeGx-0007Pj-CK for guix-patches@gnu.org; Sun, 18 Jun 2017 13:46:07 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:52628) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dMeGx-0007Pd-88 for guix-patches@gnu.org; Sun, 18 Jun 2017 13:46:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dMeGx-0002B4-25 for guix-patches@gnu.org; Sun, 18 Jun 2017 13:46:03 -0400 Subject: [bug#27421] [PATCH 2/5] gnu: Add dos2unix. References: <87injt42pu.fsf@openmailbox.org> In-Reply-To: <87injt42pu.fsf@openmailbox.org> Resent-Message-ID: From: Kei Kebreau Date: Sun, 18 Jun 2017 13:45:16 -0400 Message-Id: <20170618174519.32747-1-kei@openmailbox.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: 27421@debbugs.gnu.org Cc: Kei Kebreau * gnu/packages/textutils.scm (dos2unix): New variable. --- gnu/packages/textutils.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/gnu/packages/textutils.scm b/gnu/packages/textutils.scm index 7bc2fc47f..a94ae39c8 100644 --- a/gnu/packages/textutils.scm +++ b/gnu/packages/textutils.scm @@ -11,6 +11,7 @@ ;;; Copyright © 2017 Eric Bavier ;;; Copyright © 2017 Rene Saavedra ;;; Copyright © 2017 Hartmut Goebel +;;; Copyright © 2017 Kei Kebreau ;;; ;;; This file is part of GNU Guix. ;;; @@ -38,6 +39,7 @@ #:use-module (guix build-system trivial) #:use-module (gnu packages) #:use-module (gnu packages autotools) + #:use-module (gnu packages gettext) #:use-module (gnu packages java) #:use-module (gnu packages ncurses) #:use-module (gnu packages perl) @@ -47,6 +49,34 @@ #:use-module (gnu packages slang) #:use-module (gnu packages zip)) +(define-public dos2unix + (package + (name "dos2unix") + (version "7.3.4") + (source + (origin + (method url-fetch) + (uri (string-append "https://waterlan.home.xs4all.nl/" name "/" + name "-" version ".tar.gz")) + (sha256 + (base32 "1i9hbxn0br7xa18z4bjpkdv7mrzmbfxhm44mzpd07yd2qnxsgkcc")))) + (build-system gnu-build-system) + (arguments + '(#:make-flags (list "CC=gcc" + (string-append "prefix=" (assoc-ref %outputs "out"))) + #:phases + (modify-phases %standard-phases + (delete 'configure)))) ; no configure script + (native-inputs + `(("gettext" ,gettext-minimal) + ("perl" ,perl))) + (home-page "https://waterlan.home.xs4all.nl/dos2unix.html") + (synopsis "DOS/Mac to Unix and vice versa text file format converter") + (description + "dos2unix is a tool to convert line breaks in a text file from Unix format +to DOS format and vice versa.") + (license license:bsd-2))) + (define-public recode (package (name "recode") -- 2.13.0