mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-24 23:47:14 -08:00
dev-util/selenium-manager: Bump to 4.50.0
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -2,7 +2,9 @@ DIST selenium-4.37.0-crates.tar.xz 23351684 BLAKE2B cf345adec9156c1da3ee1a77fb72
|
||||
DIST selenium-4.47.0-crates.tar.xz 22371324 BLAKE2B 6049f52422a1902b110b02b7b011931a24ed751ee43dbdad6d5bd4d218efd27870502276cb2cfa846a88981bc52dd3d9b954ffeeec351316d4d672f10467f243 SHA512 4ba4d5b067e55720978b2b491f0aa135d7a27e2848b998bcee667e251815e64263e6973dbff647b4ba601d0e30195f8b182c39ce4b0cccf9a7c0b856ee6c8eef
|
||||
DIST selenium-4.48.0-crates.tar.xz 22620588 BLAKE2B ada0e8013ce1787e4d6a1a756215d5c5e5f633c10fb5138416477a03259aaf85e5a68bb23c02a6f467c14c4ac97e235b6e8ca54a510512914a40d077d3d273bc SHA512 6bbb519c4263fdd15e30049f4d399e1fc73978763887a4c16b3383fedc806928fcfb1d84d67921e627094daa8562092c21d17ffa73becb76b75748790e86aecb
|
||||
DIST selenium-4.49.0-crates.tar.xz 22666520 BLAKE2B c9a3415cb59637d03c5c407e6251a4914ff514dc34eac6462f8dae3d72b3bf8c57a078b8b7dcf3c957a5a1db4dfede337e8203ba973015e715f78cf02f464ba9 SHA512 b75f180b8407bd6091c0f5c1c3c53f5e186498af4af18a0d12df6d2a0ec64dd0fde311ba50f756ee369886f2908543eb45fe4d1923de4b5ce6d55364b69d33ff
|
||||
DIST selenium-4.50.0-crates.tar.xz 22725972 BLAKE2B 88dbe5713d371996fd8262411dad635d7a68548099f32a070d905be3af199451434662b2f507ae19fc6ea8ec2535b52a008f68f062675036b315707fbec234ec SHA512 2c1321d3665e544ffdae8bc326f036e25de18e656b68e41e31ab0771031283c94d8323b295df3954b542ff154db6a714784ce8da9404569f8996a33f8cfd12fe
|
||||
DIST selenium-selenium-4.43.0.gh.tar.gz 43705758 BLAKE2B d10a4167481924becfdc115175b7681ecda287e009288acda448cb81f081d7dc6b1789ae7cca3a8ef93dbcfb15f27bbc3f201b1b10fb9339dc2f5595221221aa SHA512 596c9a7631a25166391d92af931a660fd2bfe0994c720357e47552ca7101f6af2b578f05f160c24765ec81471b6a02af91ee7baf758c9b853d68ca7fbfa0820a
|
||||
DIST selenium-selenium-4.47.0.gh.tar.gz 44062095 BLAKE2B d6ce15ce857d3dd0e796935981e419be5357d49921ff76d5bcdf508408022234a2f96859e961b29e62666d3f28875910384900701629a4646b809f1b9c0e8617 SHA512 bb8dc827715fcb276211dd9800e8a375fa2b59b4e42a2952091946c7df2dabe226517633191da3b134d7fdd1554b0643added277be577fe4985dc54d141fad5d
|
||||
DIST selenium-selenium-4.48.0.gh.tar.gz 44169864 BLAKE2B 6c3073b38b660f73fbfd1b683403d851c62ef1fd13a8d6f4e2df60e562e895ea323cdd999686e70d22b3a40e2cd0194b27cd88a4b4bbbe2dd4795ece30496659 SHA512 f1e5a02d9b2946586263b50be33aea75c3cc98013bafcbe52f8c787f497011528c25d392c0af3af0b3a0023ddfe1a87ab10eb3e813eef6feff3bd9bbe285cd77
|
||||
DIST selenium-selenium-4.49.0.gh.tar.gz 44228222 BLAKE2B 3efebe68d3b3b70e5089225d86b693357154d8c66d0ec6545d77012edc54edcc1ecde69b92f4e7bb110ce734c49a1766cb8d8fcb13814bac9d0b7dbd49a41567 SHA512 f5aba633816adf0d57814ce62832d3d0ec70ad75c466af4696c47b904f69411afc7a23464544d699b6b1f7d5b927c18e817c45e993c57c98b9f37299949bf625
|
||||
DIST selenium-selenium-4.50.0.gh.tar.gz 44272291 BLAKE2B 01dbb95665649c693909f8ebeec0de60f7b219eedbfa320e509689e1bf03d6468a07811e4d68b083af12b79e74f2d60a47e018337952ffead96005c632e09c22 SHA512 34a17233ad4e8caf156993efb9d3860468ed96b71c319735019cfec3461938b035555136a7ed6ae3c529260e59b08c00d5522991391da2fd474bc33413814cea
|
||||
|
||||
@@ -0,0 +1,131 @@
|
||||
# Copyright 2024-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
CRATES="
|
||||
"
|
||||
RUST_MIN_VER="1.88.0"
|
||||
|
||||
inherit cargo
|
||||
|
||||
TAG=selenium-${PV}
|
||||
MY_P=selenium-${TAG}
|
||||
CRATES_P=selenium-${PV}
|
||||
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 ~arm ~arm64 ~ppc ~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
|
||||
|
||||
# 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_configure() {
|
||||
local myfeatures=(
|
||||
$(usev !telemetry avoid_stats)
|
||||
)
|
||||
|
||||
cargo_src_configure
|
||||
}
|
||||
|
||||
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() {
|
||||
dobin "$(cargo_target_dir)"/selenium-manager
|
||||
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