gnu: w3m: Update to 0.5.3+git20210102.

* gnu/packages/w3m.scm (w3m): Update to 0.5.3+git20210102.
[configure-flags]: Add the "--with-imagelib=imlib2" option.
[inputs]: Add imlib2.
This commit is contained in:
Maxim Cournoyer 2021-02-07 00:02:40 -05:00
parent 28fab29668
commit fc17dd9eba
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -5,6 +5,7 @@
;;; Copyright © 2016, 2019 Efraim Flashner <efraim@flashner.co.il> ;;; Copyright © 2016, 2019 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2018 Rutger Helling <rhelling@mykolab.com> ;;; Copyright © 2018 Rutger Helling <rhelling@mykolab.com>
;;; Copyright © 2020 Tobias Geerinckx-Rice <me@tobias.gr> ;;; Copyright © 2020 Tobias Geerinckx-Rice <me@tobias.gr>
;;; Copyright © 2021 Maxim Cournoyer <maxim.cournoyer@gmail.com>>
;;; ;;;
;;; This file is part of GNU Guix. ;;; This file is part of GNU Guix.
;;; ;;;
@ -27,6 +28,7 @@ (define-module (gnu packages w3m)
#:use-module (gnu packages bdw-gc) #:use-module (gnu packages bdw-gc)
#:use-module (gnu packages compression) #:use-module (gnu packages compression)
#:use-module (gnu packages gtk) #:use-module (gnu packages gtk)
#:use-module (gnu packages image)
#:use-module (gnu packages ncurses) #:use-module (gnu packages ncurses)
#:use-module (gnu packages perl) #:use-module (gnu packages perl)
#:use-module (gnu packages pkg-config) #:use-module (gnu packages pkg-config)
@ -40,7 +42,7 @@ (define-module (gnu packages w3m)
(define-public w3m (define-public w3m
(package (package
(name "w3m") (name "w3m")
(version "0.5.3+git20200502") (version "0.5.3+git20210102")
(source (origin (source (origin
(method git-fetch) (method git-fetch)
;; Debian's fork of w3m is the only one that is still maintained. ;; Debian's fork of w3m is the only one that is still maintained.
@ -50,21 +52,22 @@ (define-public w3m
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 (base32
"0yyfhwcwy1dvdbirj6zqwk4gl8z9npfavs0k7ipcg5fd16vnx7mi")))) "0amq1wfjp5mhqjmvrc0yhxjlx1335p78d7ap8iykfjn5h8yhmrg5"))))
(build-system gnu-build-system) (build-system gnu-build-system)
(arguments (arguments
'(#:tests? #f ; no check target '(#:tests? #f ; no check target
;; Use $EDITOR instead of a hard-coded value. ;; Use $EDITOR instead of a hard-coded value.
#:configure-flags '("--with-editor=") #:configure-flags (list "--with-editor="
"--with-imagelib=imlib2")
#:phases #:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(add-before 'configure 'fix-perl (add-before 'configure 'fix-perl
(lambda _ (substitute* '("scripts/w3mmail.cgi.in" (lambda _ (substitute* '("scripts/w3mmail.cgi.in"
"scripts/dirlist.cgi.in") "scripts/dirlist.cgi.in")
(("@PERL@") (which "perl"))) (("@PERL@") (which "perl"))))))))
#t)))))
(inputs (inputs
`(("gdk-pixbuf" ,gdk-pixbuf) `(("gdk-pixbuf" ,gdk-pixbuf)
("imlib2" ,imlib2)
("libgc" ,libgc) ("libgc" ,libgc)
("libx11" ,libx11) ("libx11" ,libx11)
("ncurses" ,ncurses) ("ncurses" ,ncurses)