Commit | Line | Data |
---|---|---|
bd5ecea6 NK |
1 | ;;; GNU Guix --- Functional package management for GNU |
2 | ;;; Copyright © 2013 Nikita Karetnikov <nikita@karetnikov.org> | |
2ab57529 | 3 | ;;; Copyright © 2016, 2017, 2018 Leo Famulari <leo@famulari.name> |
3c8ba11a | 4 | ;;; Copyright © 2016 Kei Kebreau <kkebreau@posteo.net> |
36a4366d | 5 | ;;; Copyright © 2016, 2019 Efraim Flashner <efraim@flashner.co.il> |
4edc431b | 6 | ;;; Copyright © 2018 Rutger Helling <rhelling@mykolab.com> |
bd5ecea6 NK |
7 | ;;; |
8 | ;;; This file is part of GNU Guix. | |
9 | ;;; | |
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. | |
14 | ;;; | |
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. | |
19 | ;;; | |
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/>. | |
22 | ||
23 | (define-module (gnu packages w3m) | |
24 | #:use-module ((guix licenses) #:select (x11-style)) | |
1dba6407 | 25 | #:use-module (gnu packages gettext) |
bd5ecea6 NK |
26 | #:use-module (gnu packages bdw-gc) |
27 | #:use-module (gnu packages compression) | |
4edc431b | 28 | #:use-module (gnu packages gtk) |
bd5ecea6 | 29 | #:use-module (gnu packages ncurses) |
bd5ecea6 NK |
30 | #:use-module (gnu packages perl) |
31 | #:use-module (gnu packages pkg-config) | |
cc2b77df | 32 | #:use-module (gnu packages tls) |
4edc431b | 33 | #:use-module (gnu packages xorg) |
bd5ecea6 NK |
34 | #:use-module (gnu packages) |
35 | #:use-module (guix packages) | |
674a0f95 | 36 | #:use-module (guix git-download) |
bd5ecea6 NK |
37 | #:use-module (guix build-system gnu)) |
38 | ||
39 | (define-public w3m | |
40 | (package | |
41 | (name "w3m") | |
8a55c389 | 42 | (version "0.5.3+git20190105") |
01eafd38 | 43 | (source (origin |
674a0f95 | 44 | (method git-fetch) |
bfc810ca | 45 | ;; Debian's fork of w3m is the only one that is still maintained. |
674a0f95 | 46 | (uri (git-reference |
bfc810ca | 47 | (url "https://salsa.debian.org/debian/w3m.git") |
2c62b316 | 48 | (commit (string-append "v" version)))) |
b7ca42aa | 49 | (file-name (git-file-name name version)) |
674a0f95 KK |
50 | (sha256 |
51 | (base32 | |
8a55c389 | 52 | "1fbg2p8qh2gvi3g4iz4q6vc0k70pf248r4yndi5lcn2m3mzvjx0i")))) |
bd5ecea6 | 53 | (build-system gnu-build-system) |
83a3e805 EF |
54 | (arguments |
55 | '(#:tests? #f ; no check target | |
b7ca42aa LF |
56 | ;; Use $EDITOR instead of a hard-coded value. |
57 | #:configure-flags '("--with-editor=") | |
83a3e805 EF |
58 | #:phases |
59 | (modify-phases %standard-phases | |
60 | (add-before 'configure 'fix-perl | |
61 | (lambda _ (substitute* '("scripts/w3mmail.cgi.in" | |
62 | "scripts/dirlist.cgi.in") | |
63 | (("@PERL@") (which "perl"))) | |
64 | #t))))) | |
bd5ecea6 | 65 | (inputs |
4edc431b RH |
66 | `(("gdk-pixbuf" ,gdk-pixbuf) |
67 | ("libgc" ,libgc) | |
68 | ("libx11" ,libx11) | |
bd5ecea6 NK |
69 | ("ncurses" ,ncurses) |
70 | ("openssl" ,openssl) | |
01eafd38 | 71 | ("zlib" ,zlib))) |
c4c4cc05 | 72 | (native-inputs |
b94a6ca0 | 73 | `(("gettext" ,gettext-minimal) |
c4c4cc05 JD |
74 | ("perl" ,perl) |
75 | ("pkg-config" ,pkg-config))) | |
bd5ecea6 | 76 | (home-page "http://w3m.sourceforge.net/") |
35b9e423 | 77 | (synopsis "Text-mode web browser") |
bd5ecea6 | 78 | (description |
36a4366d EF |
79 | "w3m is a text-based web browser as well as a pager like @code{more} or |
80 | @code{less}. With w3m you can browse web pages through a terminal emulator | |
bd5ecea6 NK |
81 | window. Moreover, w3m can be used as a text formatting tool which |
82 | typesets HTML into plain text.") | |
83 | (license (x11-style "file://doc/README" | |
84 | "See 'doc/README' in the distribution.")))) |