gnu: xorg: Add libdrm.
[jackhill/guix/guix.git] / gnu / packages / xml.scm
CommitLineData
d0414883
LC
1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2013 Ludovic Courtès <ludo@gnu.org>
f0444eaf 3;;; Copyright © 2013 Andreas Enge <andreas@enge.fr>
d0414883
LC
4;;;
5;;; This file is part of GNU Guix.
6;;;
7;;; GNU Guix is free software; you can redistribute it and/or modify it
8;;; under the terms of the GNU General Public License as published by
9;;; the Free Software Foundation; either version 3 of the License, or (at
10;;; your option) any later version.
11;;;
12;;; GNU Guix is distributed in the hope that it will be useful, but
13;;; WITHOUT ANY WARRANTY; without even the implied warranty of
14;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15;;; GNU General Public License for more details.
16;;;
17;;; You should have received a copy of the GNU General Public License
18;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
19
1ffa7090 20(define-module (gnu packages xml)
f0444eaf 21 #:use-module (gnu packages)
58cc3b38 22 #:use-module (gnu packages gnupg)
f0444eaf
AE
23 #:use-module (gnu packages perl)
24 #:use-module (gnu packages python)
d0414883
LC
25 #:use-module ((guix licenses)
26 #:renamer (symbol-prefix-proc 'license:))
27 #:use-module (guix packages)
28 #:use-module (guix download)
2a1e82bb
LC
29 #:use-module (guix build-system gnu)
30 #:use-module (guix build-system perl))
d0414883
LC
31
32(define-public expat
33 (package
34 (name "expat")
35 (version "2.1.0")
36 (source (origin
37 (method url-fetch)
38 (uri (string-append "mirror://sourceforge/expat/expat/"
39 version "/expat-" version ".tar.gz"))
40 (sha256
41 (base32
42 "11pblz61zyxh68s5pdcbhc30ha1b2vfjd83aiwfg4vc15x3hadw2"))))
43 (build-system gnu-build-system)
44 (home-page "http://www.libexpat.org/")
45 (synopsis "A stream-oriented XML parser library written in C")
46 (description
47 "Expat is an XML parser library written in C. It is a
48stream-oriented parser in which an application registers handlers for
49things the parser might find in the XML document (like start tags).")
50 (license license:expat)))
f0444eaf
AE
51
52(define-public libxml2
53 (package
54 (name "libxml2")
55 (version "2.9.0")
56 (source (origin
57 (method url-fetch)
58 (uri (string-append "ftp://xmlsoft.org/libxml2/libxml2-"
59 version ".tar.gz"))
60 (sha256
61 (base32
62 "10ib8bpar2pl68aqksfinvfmqknwnk7i35ibq6yjl8dpb0cxj9dd"))))
63 (build-system gnu-build-system)
64 (home-page "http://www.xmlsoft.org/")
65 (synopsis "libxml2, a C parser for XML")
66 (inputs `(("perl" ,perl)
67 ("python" ,python)))
68 (description
69 "Libxml2 is the XML C parser and toolkit developed for the Gnome project
70(but it is usable outside of the Gnome platform).")
71 (license license:x11)))
58cc3b38
AE
72
73(define-public libxslt
74 (package
75 (name "libxslt")
76 (version "1.1.28")
77 (source (origin
78 (method url-fetch)
79 (uri (string-append "ftp://xmlsoft.org/libxslt/libxslt-"
80 version ".tar.gz"))
81 (sha256
82 (base32
83 "13029baw9kkyjgr7q3jccw2mz38amq7mmpr5p3bh775qawd1bisz"))))
84 (build-system gnu-build-system)
85 (home-page "http://xmlsoft.org/XSLT/index.html")
86 (synopsis "libxslt, a C library for applying XSLT stylesheets to XML documents")
87 (inputs `(("libgcrypt" ,libgcrypt)
88 ("libxml2" ,libxml2)
89 ("python" ,python)))
90 (description
91 "Libxslt is an XSLT C library developed for the GNOME project. It is
92based on libxml for XML parsing, tree manipulation and XPath support.")
93 (license license:x11)))
2a1e82bb
LC
94
95(define-public perl-xml-parser
96 (package
97 (name "perl-xml-parser")
98 (version "2.41")
99 (source (origin
100 (method url-fetch)
101 (uri (string-append
102 "mirror://cpan/authors/id/M/MS/MSERGEANT/XML-Parser-"
103 version ".tar.gz"))
104 (sha256
105 (base32
106 "1sadi505g5qmxr36lgcbrcrqh3a5gcdg32b405gnr8k54b6rg0dl"))))
107 (build-system perl-build-system)
108 (arguments `(#:make-maker-flags
109 (let ((expat (assoc-ref %build-inputs "expat")))
110 (list (string-append "EXPATLIBPATH=" expat "/lib")
111 (string-append "EXPATINCPATH=" expat "/include")))))
112 (inputs `(("expat" ,expat)))
113 (license (package-license perl))
114 (synopsis "Perl bindings to the Expat XML parsing library")
115 (description
116 "This module provides ways to parse XML documents. It is built on top of
117XML::Parser::Expat, which is a lower level interface to James Clark's expat
118library. Each call to one of the parsing methods creates a new instance of
119XML::Parser::Expat which is then used to parse the document. Expat options
120may be provided when the XML::Parser object is created. These options are
121then passed on to the Expat object on each parse call. They can also be given
122as extra arguments to the parse methods, in which case they override options
123given at XML::Parser creation time.")
124 (home-page "http://search.cpan.org/~toddr/XML-Parser-2.41/Parser.pm")))