gnu: indent: Update phase style.

* gnu/packages/indent.scm (indent)[arguments]: Use MODIFY-PHASES syntax
and end phase with #t.
master
Tobias Geerinckx-Rice 2018-02-20 04:49:55 +01:00
parent e0f71c802c
commit fc783fb264
No known key found for this signature in database
GPG Key ID: 0DB0FF884F556D79
1 changed files with 11 additions and 9 deletions

View File

@ -1,6 +1,7 @@
;;; GNU Guix --- Functional package management for GNU ;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2013 Andreas Enge <andreas@enge.fr> ;;; Copyright © 2013 Andreas Enge <andreas@enge.fr>
;;; Copyright © 2014 Mark H Weaver <mhw@netris.org> ;;; Copyright © 2014 Mark H Weaver <mhw@netris.org>
;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr>
;;; ;;;
;;; This file is part of GNU Guix. ;;; This file is part of GNU Guix.
;;; ;;;
@ -36,15 +37,16 @@
"0f9655vqdvfwbxvs1gpa7py8k1z71aqh8hp73f65vazwbfz436wa")))) "0f9655vqdvfwbxvs1gpa7py8k1z71aqh8hp73f65vazwbfz436wa"))))
(build-system gnu-build-system) (build-system gnu-build-system)
(arguments (arguments
`(#:phases (alist-cons-after `(#:phases
'unpack 'fix-docdir (modify-phases %standard-phases
(lambda _ (add-after 'unpack 'fix-docdir
;; Although indent uses a modern autoconf in which docdir (lambda _
;; defaults to PREFIX/share/doc, the doc/Makefile.am ;; Although indent uses a modern autoconf in which docdir
;; overrides this to be in PREFIX/doc. Fix this. ;; defaults to PREFIX/share/doc, the doc/Makefile.am
(substitute* "doc/Makefile.in" ;; overrides this to be in PREFIX/doc. Fix this.
(("^docdir = .*$") "docdir = @docdir@\n"))) (substitute* "doc/Makefile.in"
%standard-phases))) (("^docdir = .*$") "docdir = @docdir@\n"))
#t)))))
(synopsis "Code reformatter") (synopsis "Code reformatter")
(description (description
"Indent is a program that makes source code easier to read by "Indent is a program that makes source code easier to read by