commit: 3c4529ac40529e663690bc7a4903828556ca07de
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Jan 19 04:58:27 2026 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Jan 19 05:38:14 2026 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3c4529ac
dev-util/selenium-manager: Bump to 4.40.0
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-util/selenium-manager/Manifest | 1 +
.../selenium-manager-4.40.0.ebuild | 126 +++++++++++++++++++++
2 files changed, 127 insertions(+)
diff --git a/dev-util/selenium-manager/Manifest
b/dev-util/selenium-manager/Manifest
index 1821848c8a87..48c54ffc27ed 100644
--- a/dev-util/selenium-manager/Manifest
+++ b/dev-util/selenium-manager/Manifest
@@ -10,3 +10,4 @@ DIST selenium-selenium-4.36.0.gh.tar.gz 52567842 BLAKE2B
e5e715ce0d4e491f2551ea1
DIST selenium-selenium-4.37.0.gh.tar.gz 52580241 BLAKE2B
360f0c435cd79c37d65e03a6e049ab75cde20683599965a4ffbd155dd31ca7c8e0c5bbca83f3688d29a2404a51b6c6633581e369bcfb95b7b13b8508b0b65787
SHA512
0389e5dad02719da66689a9509ca95ae009120218f47ffedc1db2bb4063e95d842b527be23828a988c66c8b2ab7452817571aeda14b4f3254c5536d2d4b0f535
DIST selenium-selenium-4.38.0.gh.tar.gz 52583428 BLAKE2B
539234726775fd23357bf18881242b8b9c27ca62a9a3dd27d5625ba571d9e83df5639fedcd062474358ab821c6c7609668481db1a5311a2388d52e922c4e9f5a
SHA512
68b6e819ecfd9bdd02701ebe96e9d28aa98893a738c5684162e6bfd263652f13d49567b4e2365286fcd08501b00024646e65e7e6b54ee713af42ed0ae99a4985
DIST selenium-selenium-4.39.0.gh.tar.gz 52628198 BLAKE2B
91745d908c8ce1c2a898daacf7e5b3c1d309e3f63e450f4d5e7d343ecf67a587b57b5c573630adcf736b4bcf28abd9b2cda101a632f48bec8eddd6fc7a67e510
SHA512
e780848fce92ce99977a7c24983e075bc7338450196e8511a11bdace9c7d6e7de0b64e471a02d7403c10031100dfff674b302f24133e49d11ed5af4ca1cc20ce
+DIST selenium-selenium-4.40.0.gh.tar.gz 43521447 BLAKE2B
42a71e2b00f96621f453e7c72c8c13f9876a82edb66a1c0d85ef5dda58c5831023b8924ab77e38a46d6810d617ee8760a409b7112ae92b1daa9d840956ca5c6e
SHA512
0e2360f80463142dde933b8c92c4800f9b5a4e89b5301068a5d3a568e393730c84534fc6379a041f7c39ad5e8f45729e5a140f72e3eeddeb1293ebe2fc9db7fa
diff --git a/dev-util/selenium-manager/selenium-manager-4.40.0.ebuild
b/dev-util/selenium-manager/selenium-manager-4.40.0.ebuild
new file mode 100644
index 000000000000..54026489b10a
--- /dev/null
+++ b/dev-util/selenium-manager/selenium-manager-4.40.0.ebuild
@@ -0,0 +1,126 @@
+# Copyright 2024-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+CRATES="
+"
+RUST_MIN_VER="1.85.0"
+
+inherit cargo
+
+TAG=selenium-${PV}
+MY_P=selenium-${TAG}
+CRATES_P=selenium-4.37.0
+DESCRIPTION="CLI tool that manages the browser/driver infrastructure required
by Selenium"
+HOMEPAGE="
+ https://www.selenium.dev/
+ https://github.com/SeleniumHQ/selenium/
+"
+SRC_URI="
+ https://github.com/SeleniumHQ/selenium/archive/selenium-${PV}.tar.gz
+ -> ${MY_P}.gh.tar.gz
+"
+if [[ ${PKGBUMPING} != ${PVR} ]]; then
+ SRC_URI+="
+
https://github.com/gentoo-crate-dist/selenium/releases/download/${CRATES_P}/${CRATES_P}-crates.tar.xz
+ "
+fi
+S="${WORKDIR}/${MY_P}/rust"
+
+LICENSE="Apache-2.0"
+# Dependent crate licenses
+LICENSE+="
+ Apache-2.0 BSD CDLA-Permissive-2.0 ISC MIT MPL-2.0 Unicode-3.0 ZLIB
+ BZIP2
+"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv ~x86"
+IUSE="telemetry test"
+RESTRICT="!test? ( test )"
+
+DEPEND="
+ app-arch/bzip2:=
+ app-arch/xz-utils:=
+ app-arch/zstd:=
+ virtual/zlib:=
+"
+RDEPEND="
+ ${DEPEND}
+"
+BDEPEND="
+ test? (
+ || (
+ www-client/firefox
+ www-client/firefox-bin
+ )
+ )
+"
+
+QA_FLAGS_IGNORED="usr/bin/${PN}"
+
+src_prepare() {
+ default
+
+ sed -i -e '/strip/d' Cargo.toml || die
+ if ! use telemetry; then
+ sed -i -e '/avoid-stats/s:false:true:' src/config.rs || die
+ fi
+
+ # Avoid tests requiring Internet or specific browsers (or trying
+ # to fetch them, whatever).
+ rm tests/browser_download_tests.rs || die
+ rm tests/cache_tests.rs || die
+ rm tests/electron_tests.rs || die
+ rm tests/exec_driver_tests.rs || die
+ rm tests/grid_tests.rs || die
+ rm tests/browser_tests.rs || die
+ rm tests/config_tests.rs || die
+ rm tests/iexplorer_tests.rs || die
+ rm tests/mirror_tests.rs || die
+ rm tests/output_tests.rs || die
+ rm tests/stable_browser_tests.rs || die
+ rm tests/webview_tests.rs || die
+
+ # enable system libraries where supported
+ export ZSTD_SYS_USE_PKG_CONFIG=1
+ sed -i -e '/features.*static/d'
"${ECARGO_VENDOR}"/apple-xar-*/Cargo.toml || die
+
+ # remove unbundled sources, just in case
+ # (smoke.c is actually used to test system -lz, sigh)
+ find "${ECARGO_VENDOR}"/*-sys-*/ \
+ \( -name '*.c' -a -not -name 'smoke.c' \) -delete || die
+
+ # bzip2-sys requires a pkg-config file
+ # https://github.com/alexcrichton/bzip2-rs/issues/104
+ mkdir "${T}/pkg-config" || die
+ export
PKG_CONFIG_PATH=${T}/pkg-config${PKG_CONFIG_PATH+:${PKG_CONFIG_PATH}}
+ cat >> "${T}/pkg-config/bzip2.pc" <<-EOF || die
+ Name: bzip2
+ Version: 9999
+ Description:
+ Libs: -lbz2
+ EOF
+}
+
+src_test() {
+ local -x PATH=${T}/bin:${PATH}
+
+ mkdir "${T}/bin" || die
+ if ! has_version "www-client/firefox"; then
+ # upstream expects "firefox" rather than "firefox-bin"
+ ln -s "$(type -P firefox-bin)" "${T}/bin/firefox" || die
+ fi
+
+ cargo_src_test --no-fail-fast
+}
+
+src_install() {
+ cargo_src_install
+ einstalldocs
+ dodoc README.md
+
+ newenvd - 70selenium-manager <<-EOF || die
+ SE_MANAGER_PATH="${EPREFIX}/usr/bin/selenium-manager"
+ EOF
+}