gnu: libuv: Update to 1.11.0.
[jackhill/guix/guix.git] / gnu / packages / lynx.scm
CommitLineData
ece26246
MW
1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2014 Mark H Weaver <mhw@netris.org>
fedcb99d 3;;; Copyright © 2016 Kei Kebreau <kei@openmailbox.org>
ece26246
MW
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 lynx)
21 #:use-module ((guix licenses) #:select (gpl2))
22 #:use-module (guix packages)
23 #:use-module (guix download)
24 #:use-module (guix build-system gnu)
25 #:use-module (gnu packages pkg-config)
26 #:use-module (gnu packages perl)
27 #:use-module (gnu packages ncurses)
28 #:use-module (gnu packages libidn)
ece26246 29 #:use-module (gnu packages gnupg)
a7fd7b68 30 #:use-module (gnu packages tls)
ece26246
MW
31 #:use-module (gnu packages zip)
32 #:use-module (gnu packages compression))
33
34(define-public lynx
35 (package
36 (name "lynx")
47932c0d 37 (version "2.8.9dev.11")
ece26246
MW
38 (source (origin
39 (method url-fetch)
5f32ba88 40 (uri (string-append
d4ec4339 41 "http://invisible-mirror.net/archives/lynx/tarballs"
5f32ba88 42 "/lynx" version ".tar.bz2"))
ece26246 43 (sha256
fedcb99d 44 (base32
47932c0d 45 "1cqm1i7d209brkrpzaqqf2x951ra3l67dw8x9yg10vz7rpr9441a"))))
ece26246
MW
46 (build-system gnu-build-system)
47 (native-inputs `(("pkg-config" ,pkg-config)
48 ("perl" ,perl)))
49 (inputs `(("ncurses" ,ncurses)
50 ("libidn" ,libidn)
51 ("gnutls" ,gnutls)
52 ("libgcrypt" ,libgcrypt)
53 ("unzip" ,unzip)
54 ("zlib" ,zlib)
55 ("gzip" ,gzip)
56 ("bzip2" ,bzip2)))
57 (arguments
fedcb99d
KK
58 `(#:configure-flags
59 (let ((gnutls (assoc-ref %build-inputs "gnutls")))
60 `("--with-pkg-config"
61 "--with-screen=ncurses"
62 "--with-zlib"
63 "--with-bzlib"
64 ,(string-append "--with-gnutls=" gnutls)
65 ;; "--with-socks5" ; XXX TODO
66 "--enable-widec"
67 "--enable-ascii-ctypes"
68 "--enable-local-docs"
69 "--enable-htmlized-cfg"
70 "--enable-gzip-help"
71 "--enable-nls"
72 "--enable-ipv6"))
ece26246
MW
73 #:tests? #f ; no check target
74 #:phases (alist-replace
75 'install
76 (lambda* (#:key (make-flags '()) #:allow-other-keys)
77 (zero? (apply system* "make" "install-full" make-flags)))
78 %standard-phases)))
79 (synopsis "Text Web Browser")
80 (description
81 "Lynx is a fully-featured World Wide Web (WWW) client for users running
82cursor-addressable, character-cell display devices. It will display Hypertext
83Markup Language (HTML) documents containing links to files on the local
84system, as well as files on remote systems running http, gopher, ftp, wais,
85nntp, finger, or cso/ph/qi servers. Lynx can be used to access information on
86the WWW, or to build information systems intended primarily for local
87access.")
88 (home-page "http://lynx.isc.org/")
89 (license gpl2)))
90
91;;; lynx.scm ends here