summaryrefslogtreecommitdiff
path: root/dev-util/selenium-manager
diff options
context:
space:
mode:
Diffstat (limited to 'dev-util/selenium-manager')
-rw-r--r--dev-util/selenium-manager/Manifest1
-rw-r--r--dev-util/selenium-manager/selenium-manager-4.39.0.ebuild126
2 files changed, 127 insertions, 0 deletions
diff --git a/dev-util/selenium-manager/Manifest b/dev-util/selenium-manager/Manifest
index 576c1854abeb..1821848c8a87 100644
--- a/dev-util/selenium-manager/Manifest
+++ b/dev-util/selenium-manager/Manifest
@@ -9,3 +9,4 @@ DIST selenium-selenium-4.35.0.gh.tar.gz 52550104 BLAKE2B b7ed0fb513cfb2ed24aa839
DIST selenium-selenium-4.36.0.gh.tar.gz 52567842 BLAKE2B e5e715ce0d4e491f2551ea13c2b9cd6c1021fafd6b0bf0dacba9b0aa4e3f479816cb910c66e286e8cb7b737063705caa2c843db3ccb83f964b4bd64ff174d935 SHA512 b95037df807c827c8f110d112ec0d062c7bb3c71b9faf31f5bfae59b5bfd1c2e20b035c3c3ab180b2319f8ba952042fb77966eb44db5b803a545fa18e0285bb5
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
diff --git a/dev-util/selenium-manager/selenium-manager-4.39.0.ebuild b/dev-util/selenium-manager/selenium-manager-4.39.0.ebuild
new file mode 100644
index 000000000000..1416b7076a4f
--- /dev/null
+++ b/dev-util/selenium-manager/selenium-manager-4.39.0.ebuild
@@ -0,0 +1,126 @@
+# Copyright 2024-2025 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
+}