aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/w3m.scm
blob: 5239cd43a04d5b4ccb70b43a84f12cb55293ccc0 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2013 Nikita Karetnikov <nikita@karetnikov.org>
;;; Copyright © 2016, 2017, 2018 Leo Famulari <leo@famulari.name>
;;; Copyright © 2016 Kei Kebreau <kkebreau@posteo.net>
;;; Copyright © 2016, 2019 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2018 Rutger Helling <rhelling@mykolab.com>
;;; Copyright © 2020 Tobias Geerinckx-Rice <me@tobias.gr>
;;; Copyright © 2021 Maxim Cournoyer <maxim.cournoyer@gmail.com>>
;;;
;;; This file is part of GNU Guix.
;;;
;;; GNU Guix is free software; you can redistribute it and/or modify it
;;; under the terms of the GNU General Public License as published by
;;; the Free Software Foundation; either version 3 of the License, or (at
;;; your option) any later version.
;;;
;;; GNU Guix is distributed in the hope that it will be useful, but
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;;; GNU General Public License for more details.
;;;
;;; You should have received a copy of the GNU General Public License
;;; along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.

(define-module (gnu packages w3m)
  #:use-module ((guix licenses) #:select (x11-style))
  #:use-module (gnu packages gettext)
  #:use-module (gnu packages bdw-gc)
  #:use-module (gnu packages compression)
  #:use-module (gnu packages gtk)
  #:use-module (gnu packages image)
  #:use-module (gnu packages ncurses)
  #:use-module (gnu packages perl)
  #:use-module (gnu packages pkg-config)
  #:use-module (gnu packages tls)
  #:use-module (gnu packages xorg)
  #:use-module (gnu packages)
  #:use-module (guix packages)
  #:use-module (guix git-download)
  #:use-module (guix build-system gnu))

(define-public w3m
  (package
    (name "w3m")
    (version "0.5.3+git20210102")
    (source (origin
              (method git-fetch)
              ;; Debian's fork of w3m is the only one that is still maintained.
              (uri (git-reference
                    (url "https://salsa.debian.org/debian/w3m.git")
                    (commit (string-append "v" version))))
              (file-name (git-file-name name version))
              (sha256
               (base32
                "0amq1wfjp5mhqjmvrc0yhxjlx1335p78d7ap8iykfjn5h8yhmrg5"))))
    (build-system gnu-build-system)
    (arguments
     '(#:tests? #f  ; no check target
       ;; Use $EDITOR instead of a hard-coded value.
       #:configure-flags (list "--with-editor="
                               "--with-imagelib=imlib2")
       #:phases
       (modify-phases %standard-phases
         (add-before 'configure 'fix-perl
           (lambda _ (substitute* '("scripts/w3mmail.cgi.in"
                                    "scripts/dirlist.cgi.in")
                       (("@PERL@") (which "perl"))))))))
    (inputs
     (list gdk-pixbuf
           imlib2
           libgc
           libx11
           ncurses
           openssl
           zlib))
    (native-inputs
     `(("gettext" ,gettext-minimal)
       ("perl" ,perl)
       ("pkg-config" ,pkg-config)))
    (home-page "http://w3m.sourceforge.net/")
    (synopsis "Text-mode web browser")
    (description
     "w3m is a text-based web browser as well as a pager like @code{more} or
@code{less}.  With w3m you can browse web pages through a terminal emulator
window.  Moreover, w3m can be used as a text formatting tool which
typesets HTML into plain text.")
    (license (x11-style "file://doc/README"
                        "See 'doc/README' in the distribution."))))
n>Ricardo Wurmus 2016-02-27gnu: Fix misplaced commas (unquote)....Fix many occurrences of comma (unquote) being placed immediately after the previous list item, e.g. ("ncurses", ncurses) in the inputs. * gnu/packages/base.scm (patch, gnu-make), gnu/packages/bioinformatics.scm (hmmer), gnu/packages/bittorrent.scm (aria2), gnu/packages/compression.scm (pbzip2), gnu/packages/databases.scm (recutils), gnu/packages/fonts.scm (font-terminus), gnu/packages/freedesktop.scm (xdg-utils, elogind), gnu/packages/games.scm (gnujump), gnu/packages/gnome.scm (libidl, gnumeric, eog, gedit), gnu/packages/gnunet.scm (gnunet), gnu/packages/gnuzilla.scm (mozjs, nspr), gnu/packages/gtk.scm (gtksourceview, gdk-pixbuf), gnu/packages/lua.scm (lua), gnu/packages/openstack.scm (python-swiftclient), gnu/packages/perl.scm (perl-json-any), gnu/packages/polkit.scm (polkit-qt), gnu/packages/python.scm (wrap-python3, python-oauthlib) (python-mccabe-0.2.1, python-contextlib2, python2-rauth), gnu/packages/qt.scm (qtkeychain), gnu/packages/ruby.scm (ruby-nokogiri), gnu/packages/screen.scm (screen), gnu/packages/ssh.scm (libssh), gnu/packages/video.scm (ffmpeg, mplayer), gnu/packages/vim.scm (vim), gnu/packages/xdisorg.scm (redshift), gnu/packages/xfce.scm (xfce4-panel, xfce4-settings), gnu/packages/xnee.scm (xnee), gnu/packages/xorg.scm (font-adobe100dpi, font-adobe75dpi), gnu/packages/zsh.scm (zsh): Fix misplaced commas (unquote). Mark H Weaver 2016-02-24gnu: libwacom: Propagate glib input....* gnu/packages/xdisorg.scm (libwacom): Propagate glib input. Andy Wingo 2016-02-21Update all sources from freedesktop.org to use https...* gnu/packages/xorg.scm: * gnu/packages/xdisorg.scm: * gnu/packages/video.scm: * gnu/packages/tls.scm: * gnu/packages/python.scm: * gnu/packages/pulseaudio.scm: * gnu/packages/polkit.scm: * gnu/packages/pdf.scm: * gnu/packages/libcanberra.scm: * gnu/packages/gtk.scm: * gnu/packages/gstreamer.scm: * gnu/packages/gnome.scm: * gnu/packages/glib.scm: * gnu/packages/ghostscript.scm: * gnu/packages/freedesktop.scm: * gnu/packages/fontutils.scm: Update all sources hosted on freedesktop to fetch tarballs via https. freedesktop.org appears to have updated recently to redirect all http to https. As an exception, we leave pkg-config like it is, because pkg-config is needed to build gnutls, and without gnutls we can't download https URLs. Andy Wingo 2016-02-19gnu: rxvt-unicode: Update source URL....* gnu/packages/xdisorg.scm (rxvt-unicode)[source]: Update URL. Leo Famulari 2016-02-15gnu: redshift: Update to 1.11....* gnu/packages/xdisorg.scm (redshift): Update to 1.11. Tobias Geerinckx-Rice 2016-02-06gnu: xdotools: Update to 3.20150503.1...* gnu/packages/xdisorg.scm (xdotools): Upgrade to 3.20150503.1. * gnu/packages/patches/xdotool-fix-makefile.patch: New file. * gnu-system.am (dist_patch_DATA): Add it. Christopher Allan Webber 2015-12-26gnu: xlockmore: Update to 5.46....* gnu/packages/xdisorg.scm (xlockmore): Update to 5.46. Leo Famulari 2015-12-26gnu: xlockmore: Add alternate URL....* gnu/packages/xdisorg.scm (xlockmore)[source]: Add alternate URL. Leo Famulari 2015-12-26gnu: wmctrl: Update source URL....* gnu/packages/xdisorg.scm (wmctrl)[source]: Update URL. Leo Famulari 2015-12-21gnu: rxvt-unicode: Install the terminal capability data....This provides the necessary terminal capability data, which are required by ncurses-based applications. * gnu/packages/xdisorg.scm (rxvt-unicode)[native-inputs]: Add ncurses. [arguments]: Set the destination of the terminfo files. [native-search-path]: New field. Make them automatically available to the user. Mathieu Lirzin 2015-12-14gnu: Add redshift....* gnu/packages/xdisorg.scm (redshift): New variable. Co-authored-by: Ludovic Courtès <ludo@gnu.org> Florian Paul Schmidt 2015-10-27gnu: libwacom: Add dependency on libgudev....* gnu/packages/xdisorg.scm (libwacom)[inputs]: Add LIBGUDEV. Ludovic Courtès 2015-10-19gnu: libdrm: Fix symbol check tests on mips64el and armhf....* gnu/packages/patches/libdrm-symbol-check.patch: New file. * gnu-system.am (dist_patch_DATA): Add it. * gnu/packages/xdisorg.scm (libdrm)[source]: Add patch. Mark H Weaver 2015-10-17Merge branch 'master' into dbus-updateMark H Weaver 2015-10-17gnu: libdrm: Update to 2.4.65....* gnu/packages/xdisorg.scm (libdrm): Update to 2.4.65. 宋文武 2015-10-16gnu: Add sxhkd....* gnu/packages/xdisorg.scm (sxhkd): New variable. Signed-off-by: Alex Kost <alezost@gmail.com> xd1le 2015-09-30gnu: pixman: Update to 0.32.8....* gnu/packages/xdisorg.scm (pixman): Update to 0.32.8. * gnu/packages/patches/pixman-pointer-arithmetic.patch: Remove. * gnu-system.am (dist_patch_DATA): Adjust accordingly. Ludovic Courtès 2015-09-28gnu: Add arandr....* gnu/packages/xdisorg.scm (arandr): New variable. Mathieu Lirzin 2015-09-21gnu: pixman: Work around pointer arithmetic bug....* gnu/packages/patches/pixman-pointer-arithmetic.patch: New file. * gnu-system.am (dist_patch_DATA): Add it. * gnu/packages/xdisorg.scm (pixman)[source]: Use it. Ludovic Courtès 2015-07-19Merge branch 'master' into core-updatesMark H Weaver 2015-07-18gnu packages: Clean up synopses and descriptions....* gnu/packages/admin.scm, gnu/packages/algebra.scm, gnu/packages/audio.scm, gnu/packages/backup.scm, gnu/packages/base.scm, gnu/packages/bittorrent.scm, gnu/packages/code.scm, gnu/packages/compression.scm, gnu/packages/databases.scm, gnu/packages/enchant.scm, gnu/packages/firmware.scm, gnu/packages/fonts.scm, gnu/packages/freedesktop.scm, gnu/packages/games.scm, gnu/packages/gd.scm, gnu/packages/gl.scm, gnu/packages/gnome.scm, gnu/packages/gsasl.scm, gnu/packages/gstreamer.scm, gnu/packages/gtk.scm, gnu/packages/guile.scm, gnu/packages/haskell.scm, gnu/packages/language.scm, gnu/packages/lesstif.scm, gnu/packages/libreoffice.scm, gnu/packages/linux.scm, gnu/packages/llvm.scm, gnu/packages/maths.scm, gnu/packages/mcrypt.scm, gnu/packages/mit-krb5.scm, gnu/packages/mp3.scm, gnu/packages/ncdu.scm, gnu/packages/networking.scm, gnu/packages/ntp.scm, gnu/packages/ocaml.scm, gnu/packages/openbox.scm, gnu/packages/pdf.scm, gnu/packages/perl.scm, gnu/packages/pretty-print.scm, gnu/packages/pulseaudio.scm, gnu/packages/python.scm, gnu/packages/rdesktop.scm, gnu/packages/rdf.scm, gnu/packages/ruby.scm, gnu/packages/slang.scm, gnu/packages/slim.scm, gnu/packages/telephony.scm, gnu/packages/tls.scm, gnu/packages/tmux.scm, gnu/packages/tre.scm, gnu/packages/unrtf.scm, gnu/packages/version-control.scm, gnu/packages/vpn.scm, gnu/packages/web.scm, gnu/packages/wget.scm, gnu/packages/xdisorg.scm, gnu/packages/xfce.scm, gnu/packages/xiph.scm: Fix typos. Trim long lines. Add missing periods in the end of sentences. Use double spaces between sentences. Remove trailing whitespaces. Alex Kost 2015-07-13gnu: xbindkeys: Remove --build from configure flags....This is a followup to commit 3c7d023d6458669c6bfa23bc85e098c91f699892, "build-system/gnu: Pass --build=<triplet> to configure by default" * gnu/packages/xdisorg.scm (xbindkeys)[arguments]: Remove field. Mark H Weaver 2015-04-18gnu: Add xf86-input-wacom....* gnu/packages/xdisorg.scm (xf86-input-wacom): New variable. Andy Wingo 2015-04-18gnu: Add libwacom....* gnu/packages/xdisorg.scm (libwacom): New variable. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Andy Wingo 2015-03-29gnu: xbindkeys: Pass --build to configure....* gnu/packages/xdisorg.scm (xbindkeys)[arguments]: Pass --build to configure. Mark H Weaver 2015-03-17gnu: Add xcape....* gnu/packages/xdisorg.scm (xcape): New variable. Alexander I.Grafov (Axel) 2015-03-14gnu: Update packages to use 'non-copyleft' instead of 'bsd-style'....* gnu/packages/avr.scm, gnu/packages/compression.scm, gnu/packages/curl.scm, gnu/packages/cyrus-sasl.scm, gnu/packages/databases.scm, gnu/packages/firmware.scm, gnu/packages/flex.scm, gnu/packages/fontutils.scm, gnu/packages/gd.scm, gnu/packages/ghostscript.scm, gnu/packages/gnunet.scm, gnu/packages/graphics.scm, gnu/packages/hugs.scm, gnu/packages/image.scm, gnu/packages/linux.scm, gnu/packages/mail.scm, gnu/packages/maths.scm, gnu/packages/mit-krb5.scm, gnu/packages/python.scm, gnu/packages/rdf.scm, gnu/packages/ssh.scm, gnu/packages/tcl.scm, gnu/packages/xdisorg.scm, gnu/packages/xiph.scm, gnu/packages/yasm.scm, gnu/packages/zip.scm: Use 'non-copyleft' instead of 'bsd-style'. Ludovic Courtès 2015-03-09gnu: Add rxvt-unicode....* gnu/packages/xdisorg.scm (rxvt-unicode): New variable. Co-authored-by: Ludovic Courtès <ludo@gnu.org> Alexander I.Grafov (Axel) 2015-03-01gnu: Add xbindkeys....* gnu/packages/xdisorg.scm (xbindkeys): New variable. Mathieu Lirzin 2015-02-13gnu: Add xosd....* gnu/packages/xdisorg.scm (xosd): New variable. Alex Kost 2015-01-12gnu: Move xlockmore to (gnu packages xdisorg)....* gnu/packages/xlockmore.scm: Remove. * gnu/packages/xdisorg.scm (xlockmore): New variable, from xlockmore.scm. * gnu-system.am (GNU_SYSTEM_MODULES): Remove xlockmore.scm. Ludovic Courtès 2014-12-31gnu: libdrm: Remove old version 2.4.33....* gnu/packages/xdisorg.scm (libdrm-2.4.33): Remove, as it is no longer needed. Mark H Weaver 2014-12-19gnu: pixman: Update to 0.32.6....* gnu/packages/xdisorg.scm (pixman): Update to 0.32.6. Mark H Weaver 2014-12-19gnu: libdrm: Update to 2.4.58....* gnu/packages/xdisorg.scm (libdrm): Update to 2.4.58. Mark H Weaver 2014-12-14gnu: Add xdotool....* gnu/packages/xdisorg.scm (xdotool): New variable. John Darrington 2014-12-10gnu: Move unclutter to (gnu packages xdisorg)....* gnu/packages/unclutter.scm: Remove. (unclutter) Move to... * gnu/packages/xdisorg.scm (unclutter): ... here. New variable. * gnu-system.am (GNU_SYSTEM_MODULES): Remove unclutter file name. Alex Kost 2014-12-10gnu: Move scrot to (gnu packages xdisorg)....* gnu/packages/scrot.scm: Remove. (scrot) Move to... * gnu/packages/xdisorg.scm (scrot): ... here. New variable. * gnu-system.am (GNU_SYSTEM_MODULES): Remove scrot file name. Alex Kost 2014-12-10gnu: Add wmctrl....* gnu/packages/xdisorg.scm (wmctrl): New variable. * gnu/packages/patches/wmctrl-64-fix.patch: New file. * gnu-system.am (dist_patch_DATA): Add it. Alex Kost 2014-12-09gnu: Add startup-notification....* gnu/packages/xdisorg.scm (startup-notification): New variable. 宋文武 2014-12-02gnu: Add xclip....* gnu/packages/xdisorg.scm (xclip): New variable. John Darrington 2014-12-02gnu: move xorg to xdisorg...* gnu/packages/xorg.scm (xeyes, pixman, libdrm, libdrm-2.4.33, mtdev): Move to ... * gnu/packages/xdisorg.scm: New file. * gnu-system.am (GNU_SYSTEM_MODULES): Add it. John Darrington