gnu: perl-http-message: Update to 6.15.
[jackhill/guix/guix.git] / gnu / packages / indent.scm
CommitLineData
c1e628f6
AE
1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2013 Andreas Enge <andreas@enge.fr>
0ad2f2e6 3;;; Copyright © 2014 Mark H Weaver <mhw@netris.org>
fc783fb2 4;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr>
c1e628f6
AE
5;;;
6;;; This file is part of GNU Guix.
7;;;
8;;; GNU Guix is free software; you can redistribute it and/or modify it
9;;; under the terms of the GNU General Public License as published by
10;;; the Free Software Foundation; either version 3 of the License, or (at
11;;; your option) any later version.
12;;;
13;;; GNU Guix is distributed in the hope that it will be useful, but
14;;; WITHOUT ANY WARRANTY; without even the implied warranty of
15;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16;;; GNU General Public License for more details.
17;;;
18;;; You should have received a copy of the GNU General Public License
19;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
20
1ffa7090 21(define-module (gnu packages indent)
59a43334 22 #:use-module (gnu packages)
b5b73a82 23 #:use-module ((guix licenses) #:prefix license:)
c1e628f6
AE
24 #:use-module (guix packages)
25 #:use-module (guix download)
26 #:use-module (guix build-system gnu))
27
28(define-public indent
29 (package
30 (name "indent")
31 (version "2.2.10")
32 (source (origin
33 (method url-fetch)
34 (uri (string-append "mirror://gnu/indent/indent-" version
35 ".tar.gz"))
36 (sha256 (base32
37 "0f9655vqdvfwbxvs1gpa7py8k1z71aqh8hp73f65vazwbfz436wa"))))
38 (build-system gnu-build-system)
0ad2f2e6 39 (arguments
fc783fb2
TGR
40 `(#:phases
41 (modify-phases %standard-phases
42 (add-after 'unpack 'fix-docdir
43 (lambda _
44 ;; Although indent uses a modern autoconf in which docdir
45 ;; defaults to PREFIX/share/doc, the doc/Makefile.am
46 ;; overrides this to be in PREFIX/doc. Fix this.
47 (substitute* "doc/Makefile.in"
48 (("^docdir = .*$") "docdir = @docdir@\n"))
49 #t)))))
f50d2669 50 (synopsis "Code reformatter")
c1e628f6 51 (description
a22dc0c4 52 "Indent is a program that makes source code easier to read by
79c311b8 53reformatting it in a consistent style. It can change the style to one of
a22dc0c4 54several different styles such as GNU, BSD or K&R. It has some flexibility to
79c311b8
LC
55deal with incomplete or malformed syntax. GNU indent offers several
56extensions over the standard utility.")
911b1b9c 57 (license license:gpl3+)
6fd52309 58 (home-page "https://www.gnu.org/software/indent/")))