mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-31 14:56:54 +01:00
gnu: qutebrowser: Update to 1.9.0.
* gnu/packages/web-browsers.scm (qutebrowser): Update to 1.9.0. qutebrowser no longer uses qtwebkit by default. It now defaults to qtwebengine.
This commit is contained in:
parent
eb5af18e7e
commit
44ce3ebb46
1 changed files with 27 additions and 12 deletions
|
@ -276,7 +276,7 @@ (define-public lynx
|
||||||
(define-public qutebrowser
|
(define-public qutebrowser
|
||||||
(package
|
(package
|
||||||
(name "qutebrowser")
|
(name "qutebrowser")
|
||||||
(version "1.8.3")
|
(version "1.9.0")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
|
@ -285,11 +285,10 @@ (define-public qutebrowser
|
||||||
"qutebrowser-" version ".tar.gz"))
|
"qutebrowser-" version ".tar.gz"))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"055zmzk3q0m3hx1742nfy2mdawfllrkvijnbzp1hiv01dj1bxaf8"))))
|
"1y0yq1qfr6g1s7kf3w2crd0b025dv2dfknhlz3v0001ns3rgwj17"))))
|
||||||
(build-system python-build-system)
|
(build-system python-build-system)
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("asciidoc" ,asciidoc)
|
`(("python-attrs" ,python-attrs))) ; for tests
|
||||||
("python-attrs" ,python-attrs))) ; for tests
|
|
||||||
(inputs
|
(inputs
|
||||||
`(("python-colorama" ,python-colorama)
|
`(("python-colorama" ,python-colorama)
|
||||||
("python-cssutils" ,python-cssutils)
|
("python-cssutils" ,python-cssutils)
|
||||||
|
@ -298,23 +297,29 @@ (define-public qutebrowser
|
||||||
("python-pygments" ,python-pygments)
|
("python-pygments" ,python-pygments)
|
||||||
("python-pypeg2" ,python-pypeg2)
|
("python-pypeg2" ,python-pypeg2)
|
||||||
("python-pyyaml" ,python-pyyaml)
|
("python-pyyaml" ,python-pyyaml)
|
||||||
|
;; FIXME: python-pyqtwebengine needs to come before python-pyqt so
|
||||||
|
;; that it's __init__.py is used first.
|
||||||
|
("python-pyqtwebengine" ,python-pyqtwebengine)
|
||||||
("python-pyqt" ,python-pyqt)
|
("python-pyqt" ,python-pyqt)
|
||||||
("qtwebkit" ,qtwebkit)))
|
;; While qtwebengine is provided by python-pyqtwebengine, it's
|
||||||
|
;; included here so we can wrap QTWEBENGINEPROCESS_PATH.
|
||||||
|
("qtwebengine" ,qtwebengine)))
|
||||||
(arguments
|
(arguments
|
||||||
`(;; FIXME: Tests have been added to Qutebrowser. But they currently fail on
|
`(;; FIXME: With the existance of qtwebengine, tests can now run. But
|
||||||
;; trying to locate QtWebEngine, and run it on a specific display.
|
;; they are still disabled because test phase hangs. It's not readily
|
||||||
;; There does not seem to be a trivial way to suppress this test.
|
;; apparent as to why.
|
||||||
;; Either fix this, or wait for a liberated QtWebEngine to make into GNU Guix.
|
|
||||||
;; Change this according to <https://bugs.gnu.org/35866>.
|
|
||||||
#:tests? #f
|
#:tests? #f
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
|
(add-before 'check 'set-env-offscreen
|
||||||
|
(lambda _
|
||||||
|
(setenv "QT_QPA_PLATFORM" "offscreen")
|
||||||
|
#t))
|
||||||
(add-after 'install 'install-more
|
(add-after 'install 'install-more
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
(let* ((out (assoc-ref outputs "out"))
|
(let* ((out (assoc-ref outputs "out"))
|
||||||
(app (string-append out "/share/applications"))
|
(app (string-append out "/share/applications"))
|
||||||
(hicolor (string-append out "/share/icons/hicolor")))
|
(hicolor (string-append out "/share/icons/hicolor")))
|
||||||
(invoke "a2x" "-f" "manpage" "doc/qutebrowser.1.asciidoc")
|
|
||||||
(install-file "doc/qutebrowser.1"
|
(install-file "doc/qutebrowser.1"
|
||||||
(string-append out "/share/man/man1"))
|
(string-append out "/share/man/man1"))
|
||||||
(for-each
|
(for-each
|
||||||
|
@ -331,11 +336,21 @@ (define-public qutebrowser
|
||||||
(("Exec=qutebrowser")
|
(("Exec=qutebrowser")
|
||||||
(string-append "Exec=" out "/bin/qutebrowser")))
|
(string-append "Exec=" out "/bin/qutebrowser")))
|
||||||
(install-file "misc/org.qutebrowser.qutebrowser.desktop" app)
|
(install-file "misc/org.qutebrowser.qutebrowser.desktop" app)
|
||||||
|
#t)))
|
||||||
|
(add-after 'wrap 'wrap-qt-process-path
|
||||||
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||||
|
(let* ((out (assoc-ref outputs "out"))
|
||||||
|
(bin (string-append out "/bin/qutebrowser"))
|
||||||
|
(qt-process-path (string-append
|
||||||
|
(assoc-ref inputs "qtwebengine")
|
||||||
|
"/lib/qt5/libexec/QtWebEngineProcess")))
|
||||||
|
(wrap-program bin
|
||||||
|
`("QTWEBENGINEPROCESS_PATH" ":" prefix (,qt-process-path)))
|
||||||
#t))))))
|
#t))))))
|
||||||
(home-page "https://qutebrowser.org/")
|
(home-page "https://qutebrowser.org/")
|
||||||
(synopsis "Minimal, keyboard-focused, vim-like web browser")
|
(synopsis "Minimal, keyboard-focused, vim-like web browser")
|
||||||
(description "qutebrowser is a keyboard-focused browser with a minimal
|
(description "qutebrowser is a keyboard-focused browser with a minimal
|
||||||
GUI. It is based on PyQt5 and QtWebKit.")
|
GUI. It is based on PyQt5 and QtWebEngine.")
|
||||||
(license license:gpl3+)))
|
(license license:gpl3+)))
|
||||||
|
|
||||||
(define-public vimb
|
(define-public vimb
|
||||||
|
|
Loading…
Reference in a new issue