licenses: Rename 'bsd-style' to 'non-copyleft'.
[jackhill/guix/guix.git] / gnu / packages / curl.scm
CommitLineData
6b9105e5 1;;; GNU Guix --- Functional package management for GNU
87806dde 2;;; Copyright © 2013, 2014 Andreas Enge <andreas@enge.fr>
74d72608 3;;; Copyright © 2015 Mark H Weaver <mhw@netris.org>
6b9105e5
AE
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
20(define-module (gnu packages curl)
b5b73a82 21 #:use-module ((guix licenses) #:prefix license:)
6b9105e5
AE
22 #:use-module (guix packages)
23 #:use-module (guix download)
24 #:use-module (guix build-system gnu)
b6b29c77 25 #:use-module (gnu packages)
6b9105e5
AE
26 #:use-module (gnu packages compression)
27 #:use-module (gnu packages gnutls)
28 #:use-module (gnu packages groff)
29 #:use-module (gnu packages gsasl)
30 #:use-module (gnu packages libidn)
31 #:use-module (gnu packages openldap)
32 #:use-module (gnu packages perl)
33 #:use-module (gnu packages pkg-config)
c0e57fb8 34 #:use-module (gnu packages python)
6b9105e5
AE
35 #:use-module (gnu packages ssh))
36
37(define-public curl
38 (package
39 (name "curl")
74d72608 40 (version "7.40.0")
6b9105e5
AE
41 (source (origin
42 (method url-fetch)
43 (uri (string-append "http://curl.haxx.se/download/curl-"
44 version ".tar.lzma"))
45 (sha256
46 (base32
74d72608
MW
47 "1a15fdc26b3vwwmchzzpd3l1hfyhx06dn7b6lkikqd7kgwvg5ps7"))
48 (patches (list (search-patch "curl-gss-api-fix.patch")))))
6b9105e5
AE
49 (build-system gnu-build-system)
50 (inputs `(("gnutls" ,gnutls)
6b9105e5
AE
51 ("gss" ,gss)
52 ("libidn" ,libidn)
53 ("libssh2" ,libssh2)
54 ("openldap" ,openldap)
6b9105e5 55 ("zlib" ,zlib)))
c4c4cc05
JD
56 (native-inputs
57 `(("perl" ,perl)
58 ;; to enable the --manual option and make test 1026 pass
59 ("groff" ,groff)
c0e57fb8
SHT
60 ("pkg-config" ,pkg-config)
61 ("python" ,python-2)))
6b9105e5 62 (arguments
c0e57fb8
SHT
63 `(#:configure-flags '("--with-gnutls" "--with-gssapi")
64 ;; Add a phase to patch '/bin/sh' occurances in tests/runtests.pl
65 #:phases
186de634
LC
66 (alist-replace
67 'check
c0e57fb8 68 (lambda _
186de634
LC
69 (substitute* "tests/runtests.pl"
70 (("/bin/sh") (which "sh")))
71
72 ;; The top-level "make check" does "make -C tests quiet-test", which
73 ;; is too quiet. Use the "test" target instead, which is more
74 ;; verbose.
75 (zero? (system* "make" "-C" "tests" "test")))
c0e57fb8 76 %standard-phases)))
35b9e423 77 (synopsis "Command line tool for transferring data with URL syntax")
6b9105e5
AE
78 (description
79 "curl is a command line tool for transferring data with URL syntax,
80supporting DICT, FILE, FTP, FTPS, Gopher, HTTP, HTTPS, IMAP, IMAPS, LDAP,
81LDAPS, POP3, POP3S, RTMP, RTSP, SCP, SFTP, SMTP, SMTPS, Telnet and TFTP.
82curl supports SSL certificates, HTTP POST, HTTP PUT, FTP uploading,
83HTTP form based upload, proxies, cookies, user+password authentication
84(Basic, Digest, NTLM, Negotiate, kerberos...), file transfer resume,
85proxy tunneling, and so on")
86 (license (license:bsd-style "file://COPYING"
87 "See COPYING in the distribution."))
88 (home-page "http://curl.haxx.se/")))