mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-util/selenium-manager: Bump to 4.38.0
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -8,3 +8,4 @@ DIST selenium-selenium-4.34.0.gh.tar.gz 52524095 BLAKE2B 1fe7e662697039708ce84ef
|
||||
DIST selenium-selenium-4.35.0.gh.tar.gz 52550104 BLAKE2B b7ed0fb513cfb2ed24aa8393497b349f930739c3d24a330e5942fbaa5505f31d7086396a430776a3a28a5f65927b92bf27c0a32e8c36d893b5d62ef73151d5ef SHA512 dc73829e3b0fcb7fb7ee1cc04574b95b63d23f67974575dbd66338e14a5cb2b06f983145ce874be0d7124e8828b0a41b99c75d3befb19e04cbf8d027d0bb983a
|
||||
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
|
||||
|
||||
126
dev-util/selenium-manager/selenium-manager-4.38.0.ebuild
Normal file
126
dev-util/selenium-manager/selenium-manager-4.38.0.ebuild
Normal file
@@ -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:=
|
||||
sys-libs/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
|
||||
}
|
||||
Reference in New Issue
Block a user