1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2012 Nikita Karetnikov <nikita@karetnikov.org>
3 ;;; Copyright © 2014, 2015, 2017, 2018 Ludovic Courtès <ludo@gnu.org>
4 ;;; Copyright © 2016, 2017, 2019 Efraim Flashner <efraim@flashner.co.il>
5 ;;; Copyright © 2017 Rutger Helling <rhelling@mykolab.com>
6 ;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr>
8 ;;; This file is part of GNU Guix.
10 ;;; GNU Guix is free software; you can redistribute it and/or modify it
11 ;;; under the terms of the GNU General Public License as published by
12 ;;; the Free Software Foundation; either version 3 of the License, or (at
13 ;;; your option) any later version.
15 ;;; GNU Guix is distributed in the hope that it will be useful, but
16 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
17 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 ;;; GNU General Public License for more details.
20 ;;; You should have received a copy of the GNU General Public License
21 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
23 (define-module (gnu packages wget)
24 #:use-module (guix licenses)
25 #:use-module (gnu packages)
26 #:use-module (gnu packages autotools)
27 #:use-module (gnu packages base)
28 #:use-module (gnu packages compression)
29 #:use-module (gnu packages documentation)
30 #:use-module (gnu packages flex)
31 #:use-module (gnu packages gettext)
32 #:use-module (gnu packages gnunet)
33 #:use-module (gnu packages libidn)
34 #:use-module (gnu packages python)
35 #:use-module (gnu packages perl)
36 #:use-module (gnu packages web)
37 #:use-module (gnu packages pcre)
38 #:use-module (gnu packages pkg-config)
39 #:use-module (gnu packages tls)
40 #:use-module (guix packages)
41 #:use-module (guix download)
42 #:use-module (guix git-download)
43 #:use-module (guix build-system gnu))
52 (uri (string-append "mirror://gnu/wget/wget-"
56 "0a29qsqxkk8145vkyy35q5a1wc7qzwx3qj3gmfrkmi9xs96yhqqg"))))
57 (build-system gnu-build-system)
64 `(("pkg-config" ,pkg-config)
66 ("python" ,python) ;for testenv suite
67 ("perl-http-daemon" ,perl-http-daemon)
68 ("perl-io-socket-ssl" ,perl-io-socket-ssl)))
69 (home-page "https://www.gnu.org/software/wget/")
70 (synopsis "Non-interactive command-line utility for downloading files")
72 "GNU Wget is a non-interactive tool for fetching files using the HTTP,
73 HTTPS and FTP protocols. It can resume interrupted downloads, use file name
74 wild cards, supports proxies and cookies, and it can convert absolute links
75 in downloaded documents to relative links.")
76 (license gpl3+))) ; some files are under GPLv2+
78 (define-public wgetpaste
85 (uri (string-append "http://wgetpaste.zlin.dk/wgetpaste-"
89 "1hh9svyypqcvdg5mjxyyfzpdzhylhf7s7xq5dzglnm4injx3i3ak"))))
90 (build-system gnu-build-system)
93 (modify-phases %standard-phases
97 (lambda* (#:key outputs #:allow-other-keys)
98 (let* ((out (assoc-ref outputs "out"))
99 (bin (string-append out "/bin"))
100 (zsh (string-append out "/share/zsh/site-functions")))
101 (install-file "wgetpaste" bin)
102 (install-file "_wgetpaste" zsh)))))
103 #:tests? #f)) ; no test target
104 (home-page "http://wgetpaste.zlin.dk/")
105 (synopsis "Script that automates pasting to a number of pastebin services")
107 "@code{wgetpaste} is an extremely simple command-line interface to various
108 online pastebin services.")
109 (license public-domain)))
119 (url "https://gitlab.com/gnuwget/wget2.git")
120 (commit (string-append name "-" version))
121 (recursive? #t))) ;; Needed for 'gnulib' git submodule.
122 (file-name (string-append name "-" version "-checkout"))
125 "15wxsnjhc6bzk7f60i1djmsarh1w31gwi5h2gh9k19ncwypfj5dm"))))
126 (build-system gnu-build-system)
129 (modify-phases %standard-phases
130 (add-after 'unpack 'skip-network-test
132 (substitute* "tests/Makefile.am"
133 (("test-auth-digest\\$\\(EXEEXT)") ""))
137 ;; Make sure all the files are writable so that ./bootstrap
139 (for-each (lambda (file)
142 (patch-shebang "./gnulib/gnulib-tool.py")
143 ;; Remove unnecessary inputs from bootstrap.conf
144 (substitute* "bootstrap.conf"
149 (invoke "sh" "./bootstrap"
150 "--gnulib-srcdir=gnulib"
153 `(("gnutls" ,gnutls/dane)
154 ("libiconv" ,libiconv)
156 ("libmicrohttpd" ,libmicrohttpd)
159 ;; TODO: Add libbrotlidec, libnghttp2.
161 `(("autoconf" ,autoconf)
162 ("automake" ,automake)
164 ("gettext" ,gettext-minimal)
166 ("pkg-config" ,pkg-config)
167 ("python" ,python-2)))
168 (home-page "https://gitlab.com/gnuwget/wget2")
169 (synopsis "Successor of GNU Wget")
170 (description "GNU Wget2 is the successor of GNU Wget, a file and recursive
171 website downloader. Designed and written from scratch it wraps around libwget,
172 that provides the basic functions needed by a web client.")
173 (license (list gpl3+ lgpl3+))))