From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Enge Subject: [PATCH 1/2] distro: Add Indent. Date: Thu, 17 Jan 2013 21:23:23 +0100 Message-ID: <201301172123.23319.andreas@enge.fr> Mime-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_72F+QSREgZk1AsA" Return-path: Received: from eggs.gnu.org ([208.118.235.92]:60602) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tvvzq-0004oP-7L for bug-guix@gnu.org; Thu, 17 Jan 2013 15:23:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tvvzl-0006G6-Gg for bug-guix@gnu.org; Thu, 17 Jan 2013 15:23:34 -0500 Received: from moutng.kundenserver.de ([212.227.126.187]:50524) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tvvzl-0006Fe-7K for bug-guix@gnu.org; Thu, 17 Jan 2013 15:23:29 -0500 List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: bug-guix@gnu.org --Boundary-00=_72F+QSREgZk1AsA Content-Type: multipart/alternative; boundary="Boundary-01=_72F+QKlFSAIIz4E" Content-Transfer-Encoding: 7bit --Boundary-01=_72F+QKlFSAIIz4E Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Two patches, one adding Indent to the distribution, one adding it as an input to flex. Andreas --Boundary-01=_72F+QKlFSAIIz4E Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: 7bit

Two patches, one adding Indent to the distribution, one adding it as an input to flex.

 

Andreas

 

--Boundary-01=_72F+QKlFSAIIz4E-- --Boundary-00=_72F+QSREgZk1AsA Content-Type: text/x-patch; charset="UTF-8"; name="0001-distro-Add-Indent.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="0001-distro-Add-Indent.patch" =46rom 007af4bba02cb2f294e4b1c13c45534fea1f68fa Mon Sep 17 00:00:00 2001 =46rom: Andreas Enge Date: Thu, 17 Jan 2013 21:15:09 +0100 Subject: [PATCH 1/2] distro: Add Indent. * distro/packages/indent.scm: New file. * Makefile.am (MODULES): Add it. =2D-- Makefile.am | 1 + distro/packages/indent.scm | 44 ++++++++++++++++++++++++++++++++++++++++= ++++ 2 files changed, 45 insertions(+) create mode 100644 distro/packages/indent.scm diff --git a/Makefile.am b/Makefile.am index beba7df..745d847 100644 =2D-- a/Makefile.am +++ b/Makefile.am @@ -77,6 +77,7 @@ MODULES =3D \ distro/packages/help2man.scm \ distro/packages/icu4c.scm \ distro/packages/idutils.scm \ + distro/packages/indent.scm \ distro/packages/ld-wrapper.scm \ distro/packages/less.scm \ distro/packages/libffi.scm \ diff --git a/distro/packages/indent.scm b/distro/packages/indent.scm new file mode 100644 index 0000000..d69a42f =2D-- /dev/null +++ b/distro/packages/indent.scm @@ -0,0 +1,44 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright =C2=A9 2013 Andreas Enge +;;; +;;; This file is part of GNU Guix. +;;; +;;; GNU Guix is free software; you can redistribute it and/or modify it +;;; under the terms of the GNU General Public License as published by +;;; the Free Software Foundation; either version 3 of the License, or (at +;;; your option) any later version. +;;; +;;; GNU Guix is distributed in the hope that it will be useful, but +;;; WITHOUT ANY WARRANTY; without even the implied warranty of +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;;; GNU General Public License for more details. +;;; +;;; You should have received a copy of the GNU General Public License +;;; along with GNU Guix. If not, see . + +(define-module (distro packages indent) + #:use-module (distro) + #:use-module (guix licenses) + #:use-module (guix packages) + #:use-module (guix download) + #:use-module (guix build-system gnu)) + +(define-public indent + (package + (name "indent") + (version "2.2.10") + (source (origin + (method url-fetch) + (uri (string-append "mirror://gnu/indent/indent-" version + ".tar.gz")) + (sha256 (base32 + "0f9655vqdvfwbxvs1gpa7py8k1z71aqh8hp73f65vazwbfz436wa= ")))) + (build-system gnu-build-system) + (synopsis "GNU Indent, a program for code indentation and formatting") + (description + "GNU Indent can be used to make code easier to read. It can also conve= rt +from one style of writing C to another. Indent understands a substantial +amount about the syntax of C, but it also attempts to cope with incomplete +and misformed syntax. The GNU style of indenting is the default.") + (license gpl3+) + (home-page "http://www.gnu.org/software/indent/"))) =2D-=20 1.7.10.4 --Boundary-00=_72F+QSREgZk1AsA Content-Type: text/x-patch; charset="UTF-8"; name="0002-distro-flex-Add-dependency-on-Indent.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="0002-distro-flex-Add-dependency-on-Indent.patch" =46rom b7c7f1cfdfff2e1612861883ee7d3bcf8c831ac6 Mon Sep 17 00:00:00 2001 =46rom: Andreas Enge Date: Thu, 17 Jan 2013 21:20:59 +0100 Subject: [PATCH 2/2] distro: flex: Add dependency on Indent. * distro/packages/flex.scm (flex): Add Indent as input. =2D-- distro/packages/flex.scm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/distro/packages/flex.scm b/distro/packages/flex.scm index bbfb7f0..2cfdbfe 100644 =2D-- a/distro/packages/flex.scm +++ b/distro/packages/flex.scm @@ -23,7 +23,8 @@ #:use-module (guix build-system gnu) #:use-module (distro) #:use-module (distro packages m4) =2D #:use-module (distro packages bison)) + #:use-module (distro packages bison) + #:use-module (distro packages indent)) =20 (define-public flex (package @@ -40,7 +41,8 @@ (arguments '(#:patches (list (assoc-ref %build-inputs "patch/bison-tests")))) (inputs `(("patch/bison-tests" ,(search-patch "flex-bison-tests.patch"= )) =2D ("bison" ,bison))) + ("bison" ,bison) + ("indent" ,indent))) (propagated-inputs `(("m4" ,m4))) (home-page "http://flex.sourceforge.net/") (synopsis "A fast lexical analyser generator") =2D-=20 1.7.10.4 --Boundary-00=_72F+QSREgZk1AsA--