[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
205/217: gnu: icecat: Enable geckodriver.
From: |
guix-commits |
Subject: |
205/217: gnu: icecat: Enable geckodriver. |
Date: |
Sun, 14 Nov 2021 19:21:28 -0500 (EST) |
vagrantc pushed a commit to branch core-updates-frozen-batched-changes
in repository guix.
commit 69cefa07df6cef492ec550291f76a89bdff3aa74
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Thu Nov 4 13:45:36 2021 -0400
gnu: icecat: Enable geckodriver.
* gnu/packages/gnuzilla.scm (icecat)[configure-flags]: Add the
--enable-geckodriver flag.
[phases]{install}: Also install the 'geckodriver' command.
[description]: Mention the existence of 'geckodriver'.
---
gnu/packages/gnuzilla.scm | 42 +++++++++++++++++++++---------------------
1 file changed, 21 insertions(+), 21 deletions(-)
diff --git a/gnu/packages/gnuzilla.scm b/gnu/packages/gnuzilla.scm
index eb3d73b..41beaf4 100644
--- a/gnu/packages/gnuzilla.scm
+++ b/gnu/packages/gnuzilla.scm
@@ -17,6 +17,7 @@
;;; Copyright © 2020 Marius Bakke <marius@gnu.org>
;;; Copyright © 2021 Brice Waegeneire <brice@waegenei.re>
;;; Copyright © 2021 Maxime Devos <maximedevos@telenet.be>
+;;; Copyright © 2021 Maxim Cournoyer <maxim.cournoyer@gmail.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -985,7 +986,7 @@ in C/C++.")
#:configure-flags `("--enable-application=browser"
"--with-distribution-id=org.gnu"
-
+ "--enable-geckodriver"
;; Do not require addons in the global app or
;; system directories to be signed by Mozilla.
"--with-unsigned-addon-scopes=app,system"
@@ -1077,8 +1078,7 @@ in C/C++.")
(format #t "applying '~a'...~%" file)
(invoke patch "--force" "--no-backup-if-mismatch"
"-p1" "--input" file))))
- (or native-inputs inputs)))
- #t))
+ (or native-inputs inputs)))))
(add-after 'apply-guix-specific-patches 'remove-bundled-libraries
(lambda _
;; Remove bundled libraries that we don't use, since they may
@@ -1127,8 +1127,7 @@ in C/C++.")
;; UNBUNDLE-ME! "gfx/graphite2"
"js/src/ctypes/libffi"
;; UNBUNDLE-ME! "db/sqlite3"
- ))
- #t))
+ ))))
(add-after 'remove-bundled-libraries 'fix-ffmpeg-runtime-linker
(lambda* (#:key inputs #:allow-other-keys)
(let* ((ffmpeg (assoc-ref inputs "ffmpeg"))
@@ -1136,8 +1135,7 @@ in C/C++.")
;; Arrange to load libavcodec.so by its absolute file name.
(substitute*
"dom/media/platforms/ffmpeg/FFmpegRuntimeLinker.cpp"
(("libavcodec\\.so")
- libavcodec))
- #t)))
+ libavcodec)))))
(add-after 'fix-ffmpeg-runtime-linker 'build-sandbox-whitelist
(lambda* (#:key inputs #:allow-other-keys)
(define (runpath-of lib)
@@ -1167,8 +1165,7 @@ in C/C++.")
whitelist-string)
(format port
"~%pref(\"security.sandbox.content.read_path_whitelist\", ~S);~%"
whitelist-string)
- (close-output-port port))
- #t))
+ (close-output-port port))))
(add-after 'patch-source-shebangs 'patch-cargo-checksums
(lambda _
(use-modules (guix build cargo-utils))
@@ -1197,8 +1194,7 @@ in C/C++.")
"intl"
"servo"
"security/manager/ssl"
- "build")))
- #t))
+ "build")))))
(delete 'bootstrap)
(replace 'configure
;; configure does not work followed by both "SHELL=..." and
@@ -1258,10 +1254,15 @@ in C/C++.")
(("[0-9a-df-np-sv-z]{32}" hash)
(string-append (string-take hash 8)
"<!-- Guix: not a runtime dependency -->"
- (string-drop hash 8)))))
- #t))
+ (string-drop hash 8)))))))
(replace 'install
- (lambda _ (invoke "./mach" "install")))
+ (lambda* (#:key outputs #:allow-other-keys)
+ (invoke "./mach" "install")
+ ;; The geckodriver binary is not installed by the above, for some
+ ;; reason. Use 'find-files' to avoid having to deal with the
+ ;; system/architecture-specific file name.
+ (install-file (first (find-files "." "geckodriver"))
+ (string-append (assoc-ref outputs "out") "/bin"))))
(add-after 'install 'wrap-program
(lambda* (#:key inputs outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))
@@ -1286,8 +1287,7 @@ in C/C++.")
;; package on guix has been observed to be unstable when
;; using wayland, and the bundled extensions stop working.
;; `("MOZ_ENABLE_WAYLAND" = ("1"))
- `("LD_LIBRARY_PATH" prefix ,ld-libs))
- #t)))
+ `("LD_LIBRARY_PATH" prefix ,ld-libs)))))
(add-after 'wrap-program 'install-desktop-entry
(lambda* (#:key outputs #:allow-other-keys)
;; Install the '.desktop' file.
@@ -1300,8 +1300,7 @@ in C/C++.")
(("Icon=.*") "Icon=icecat\n")
(("NewWindow") "new-window")
(("NewPrivateWindow") "new-private-window"))
- (install-file desktop-file applications)
- #t)))
+ (install-file desktop-file applications))))
(add-after 'install-desktop-entry 'install-icons
(lambda* (#:key outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out")))
@@ -1315,14 +1314,15 @@ in C/C++.")
(copy-file file (string-append icons "/icecat.png"))))
'("default16.png" "default22.png" "default24.png"
"default32.png" "default48.png" "content/icon64.png"
- "mozicon128.png" "default256.png"))
- #t)))))))
+ "mozicon128.png" "default256.png")))))))))
(home-page "https://www.gnu.org/software/gnuzilla/")
(synopsis "Entirely free browser derived from Mozilla Firefox")
(description
"IceCat is the GNU version of the Firefox browser. It is entirely free
software, which does not recommend non-free plugins and addons. It also
-features built-in privacy-protecting features.
+features built-in privacy-protecting features. This package also includes the
+@command{geckodriver} command, which can be useful for automated web
+testing.
WARNING: IceCat 91 has not yet been released by the upstream IceCat project.
This is a preview release, and does not currently meet the privacy-respecting
- 193/217: gnu: python-distro: Update to 1.6.0., (continued)
- 193/217: gnu: python-distro: Update to 1.6.0., guix-commits, 2021/11/14
- 199/217: gnu: libgdata: Use libsoup 2 to fix build., guix-commits, 2021/11/14
- 200/217: gnu: gvfs: Use meson-0.59 to workaround faulty meson., guix-commits, 2021/11/14
- 217/217: gnu: gd: Fix long patch filename., guix-commits, 2021/11/14
- 216/217: gnu: conan: Update to 1.42.0., guix-commits, 2021/11/14
- 140/217: gnu: gtk: Replace gdk-pixbuf+svg by librsvg., guix-commits, 2021/11/14
- 155/217: gnu: python-pytest: Update to 6.2.5., guix-commits, 2021/11/14
- 177/217: gnu: xorg-server, xorg-server-for-tests: Update to 21.1.0., guix-commits, 2021/11/14
- 175/217: gnu: xorgproto: Update to 2021.5., guix-commits, 2021/11/14
- 184/217: gnu: emacs-elpy: Update to 1.35.0-0.8d0de31., guix-commits, 2021/11/14
- 205/217: gnu: icecat: Enable geckodriver.,
guix-commits <=
- 206/217: gnu: Add python-pypika-tortoise., guix-commits, 2021/11/14
- 204/217: gnu: osinfo-db-tools: Update to 1.9.0., guix-commits, 2021/11/14
- 209/217: gnu: Add python-asyncmy., guix-commits, 2021/11/14
- 212/217: gnu: python-pymodbus: Update to 2.5.3., guix-commits, 2021/11/14
- 105/217: gnu: at-spi2-core: Reverse inheritance relationship with minimal variant., guix-commits, 2021/11/14
- 114/217: gnu: rest: Use libsoup-minimal., guix-commits, 2021/11/14
- 115/217: gnu: inkscape: Remove the legacy 0.92 version., guix-commits, 2021/11/14
- 119/217: gnu: openssl: Absorb 1.1.1l graft., guix-commits, 2021/11/14
- 122/217: gnu: heimdal: Fix build., guix-commits, 2021/11/14
- 123/217: gnu: pango: Update to 1.48.10., guix-commits, 2021/11/14