Merge branch 'master' into core-updates
[jackhill/guix/guix.git] / gnu / packages / augeas.scm
CommitLineData
469d6589 1;;; GNU Guix --- Functional package management for GNU
e0355894 2;;; Copyright © 2016, 2017, 2018 Ricardo Wurmus <rekado@elephly.net>
bd2e3210 3;;; Copyright © 2017 Efraim Flashner <efraim@flashner.co.il>
acc2dab7 4;;; Copyright © 2017 Eric Bavier <bavier@member.fsf.org>
469d6589
RW
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
21(define-module (gnu packages augeas)
22 #:use-module ((guix licenses) #:prefix license:)
23 #:use-module (guix packages)
24 #:use-module (guix download)
25 #:use-module (guix utils)
26 #:use-module (guix build-system gnu)
27 #:use-module (gnu packages)
28 #:use-module (gnu packages readline)
29 #:use-module (gnu packages pkg-config)
30 #:use-module (gnu packages xml))
31
32(define-public augeas
33 (package
34 (name "augeas")
e0355894 35 (version "1.10.1")
469d6589
RW
36 (source (origin
37 (method url-fetch)
38 (uri (string-append "http://download.augeas.net/augeas-"
39 version ".tar.gz"))
40 (sha256
41 (base32
e0355894 42 "0k9nssn7lk58cl5zv3c8kv2zx9cm2yks3sj7q4fd6qdjz9m2bnsj"))
acc2dab7
EB
43 (modules '((guix build utils)))
44 (snippet
45 '(begin
46 ;; The gnulib test-lock test is prone to writer starvation
47 ;; with our glibc@2.25, which prefers readers, so disable it.
48 ;; The gnulib commit b20e8afb0b2 should fix this once
49 ;; incorporated here.
50 (substitute* "gnulib/tests/Makefile.in"
51 (("test-lock\\$\\(EXEEXT\\) ") ""))
52 #t))))
469d6589
RW
53 (build-system gnu-build-system)
54 ;; Marked as "required" in augeas.pc
55 (propagated-inputs
56 `(("libxml2" ,libxml2)))
57 (inputs
58 `(("readline" ,readline)))
59 (native-inputs
60 `(("pkg-config" ,pkg-config)))
61 (home-page "http://augeas.net/")
62 (synopsis "Edit configuration files programmatically")
63 (description
64 "Augeas is a library and command line tool for programmatically editing
65configuration files in a controlled manner. Augeas exposes a tree of all
66configuration settings and a simple local API for manipulating the tree.
67Augeas then modifies underlying configuration files according to the changes
68that have been made to the tree; it does as little modeling of configurations
69as possible, and focuses exclusivley on transforming the tree-oriented syntax
70of its public API to the myriad syntaxes of individual configuration files.")
71 (license license:lgpl2.1+)))