Update `HACKING'.
[jackhill/guix/guix.git] / distro / packages / wget.scm
1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2012 Nikita Karetnikov <nikita@karetnikov.org>
3 ;;;
4 ;;; This file is part of GNU Guix.
5 ;;;
6 ;;; GNU Guix is free software; you can redistribute it and/or modify it
7 ;;; under the terms of the GNU General Public License as published by
8 ;;; the Free Software Foundation; either version 3 of the License, or (at
9 ;;; your option) any later version.
10 ;;;
11 ;;; GNU Guix is distributed in the hope that it will be useful, but
12 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
13 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 ;;; GNU General Public License for more details.
15 ;;;
16 ;;; You should have received a copy of the GNU General Public License
17 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
18
19 (define-module (distro packages wget)
20 #:use-module (guix licenses)
21 #:use-module ((distro packages gettext)
22 #:renamer (symbol-prefix-proc 'guix:))
23 #:use-module (distro packages gnutls)
24 #:use-module (distro packages perl)
25 #:use-module (guix packages)
26 #:use-module (guix download)
27 #:use-module (guix build-system gnu))
28
29 (define-public wget
30 (package
31 (name "wget")
32 (version "1.14")
33 (source
34 (origin
35 (method url-fetch)
36 (uri (string-append "mirror://gnu/wget/wget-"
37 version ".tar.xz"))
38 (sha256
39 (base32
40 "0yqllj3nv9p3vqbdm6j4nvpjcwf1y19rq8sd966nrbd2qvvxfq8p"))))
41 (build-system gnu-build-system)
42 (inputs
43 `(("gnutls" ,gnutls)
44 ("perl" ,perl)
45 ("gettext" ,guix:gettext)))
46 (arguments
47 '(#:phases
48 (alist-cons-before 'build 'patch-/usr/bin/env
49 (lambda _
50 (for-each patch-shebang
51 '("doc/texi2pod.pl" "tests/run-px")))
52 %standard-phases)))
53 (home-page "http://www.gnu.org/software/wget/")
54 (synopsis
55 "GNU Wget, a tool for retrieving files using HTTP, HTTPS, and FTP")
56 (description
57 "GNU Wget is a free software package for retrieving files using HTTP,
58 HTTPS and FTP, the most widely-used Internet protocols. It is a
59 non-interactive commandline tool, so it may easily be called from
60 scripts, cron jobs, terminals without X-Windows support, etc.")
61 (license gpl3+))) ; some files are under GPLv2+