| 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 | (define-module (gnu packages w3m)
|
| 26 | #:use-module ((guix licenses) #:select (x11-style))
|
| 27 | #:use-module (gnu packages gettext)
|
| 28 | #:use-module (gnu packages bdw-gc)
|
| 29 | #:use-module (gnu packages compression)
|
| 30 | #:use-module (gnu packages gtk)
|
| 31 | #:use-module (gnu packages image)
|
| 32 | #:use-module (gnu packages ncurses)
|
| 33 | #:use-module (gnu packages perl)
|
| 34 | #:use-module (gnu packages pkg-config)
|
| 35 | #:use-module (gnu packages tls)
|
| 36 | #:use-module (gnu packages xorg)
|
| 37 | #:use-module (gnu packages)
|
| 38 | #:use-module (guix packages)
|
| 39 | #:use-module (guix git-download)
|
| 40 | #:use-module (guix build-system gnu)
|
| 41 | #:use-module ((guix search-paths) #:select ($SSL_CERT_DIR $SSL_CERT_FILE)))
|
| 42 |
|
| 43 | (define-public w3m
|
| 44 | (package
|
| 45 | (name "w3m")
|
| 46 | |
| 47 | |
| 48 | |
| 49 | (version "0.5.3+git20230121")
|
| 50 | (source (origin
|
| 51 | (method git-fetch)
|
| 52 | |
| 53 | (uri (git-reference
|
| 54 | (url "https://salsa.debian.org/debian/w3m.git")
|
| 55 | (commit (string-append "v" version))))
|
| 56 | (file-name (git-file-name name version))
|
| 57 | (sha256
|
| 58 | (base32
|
| 59 | "0nvhxsqxgxjrr62mvxzhhfzvbvg56g19vlqcgb8mh2x1daazk5ms"))))
|
| 60 | (build-system gnu-build-system)
|
| 61 | (arguments
|
| 62 | '(#:tests? #f |
| 63 | |
| 64 | #:configure-flags (list "--with-editor="
|
| 65 | "--with-imagelib=imlib2"
|
| 66 | "--enable-image=fb,x11")
|
| 67 | #:phases
|
| 68 | (modify-phases %standard-phases
|
| 69 | (add-before 'configure 'fix-perl
|
| 70 | (lambda _ (substitute* '("scripts/w3mmail.cgi.in"
|
| 71 | "scripts/dirlist.cgi.in")
|
| 72 | (("@PERL@") (which "perl"))))))))
|
| 73 | (inputs
|
| 74 | (list gdk-pixbuf
|
| 75 | imlib2
|
| 76 | libgc
|
| 77 | libx11
|
| 78 | ncurses
|
| 79 | openssl
|
| 80 | zlib))
|
| 81 | (native-inputs
|
| 82 | (list gettext-minimal perl pkg-config))
|
| 83 | (native-search-paths (list $SSL_CERT_DIR $SSL_CERT_FILE))
|
| 84 | (home-page "https://w3m.sourceforge.net/")
|
| 85 | (synopsis "Text-mode web browser")
|
| 86 | (description
|
| 87 | "w3m is a text-based web browser as well as a pager like @code{more} or
|
| 88 | @code{less}. With w3m you can browse web pages through a terminal emulator
|
| 89 | window. Moreover, w3m can be used as a text formatting tool which
|
| 90 | typesets HTML into plain text.")
|
| 91 | (license (x11-style "file://doc/README"
|
| 92 | "See 'doc/README' in the distribution."))))
|
| 93 |
|
| 94 | |
| 95 | (define-public w3m-for-tests
|
| 96 | (hidden-package
|
| 97 | (package
|
| 98 | (inherit w3m)
|
| 99 | (name "w3m")
|
| 100 | (version "0.5.3+git20230121")
|
| 101 | (source (origin
|
| 102 | (method git-fetch)
|
| 103 | |
| 104 | (uri (git-reference
|
| 105 | (url "https://salsa.debian.org/debian/w3m.git")
|
| 106 | (commit (string-append "v" version))))
|
| 107 | (file-name (git-file-name name version))
|
| 108 | (sha256
|
| 109 | (base32
|
| 110 | "0nvhxsqxgxjrr62mvxzhhfzvbvg56g19vlqcgb8mh2x1daazk5ms")))))))
|