summaryrefslogtreecommitdiff
path: root/dev-util/selenium-manager
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-09-21 12:11:53 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-09-21 12:11:53 +0100
commit1fd1215c62ee14dc2e94fa04d6e3622391c9ab57 (patch)
tree909630a900b1ac6b180d8af2e2345a171417d59f /dev-util/selenium-manager
parentd60aa36cd97fb2193f756b45820d7c073a49229d (diff)
gentoo auto-resync : 21:09:2024 - 12:11:53
Diffstat (limited to 'dev-util/selenium-manager')
-rw-r--r--dev-util/selenium-manager/Manifest2
-rw-r--r--dev-util/selenium-manager/selenium-manager-4.25.0.ebuild121
2 files changed, 123 insertions, 0 deletions
diff --git a/dev-util/selenium-manager/Manifest b/dev-util/selenium-manager/Manifest
index 2659c34384fb..f773d2428bef 100644
--- a/dev-util/selenium-manager/Manifest
+++ b/dev-util/selenium-manager/Manifest
@@ -2,6 +2,8 @@ DIST selenium-manager-4.23.0-crates.tar.xz 26763004 BLAKE2B b7f584637ae436f0c867
DIST selenium-manager-4.24.0-crates.tar.xz 27591764 BLAKE2B 42c120a77df5c48b840200772d3d49aa88c0cbfec67244d13435037631a8f0d67d03249031da44cfc6ecddfb8cd9b90b879df0be896a072141d98f772933aeab SHA512 93943e9cfc54f7e66fc25290c67bb6eee679de5c1a8c1af23c8e79d0ce15aaec4de8a38b8b2346c632ac8e93446cb8c5e37767ba955a3aa5850ad6f4dfdec340
DIST selenium-selenium-4.23.0.gh.tar.gz 77114209 BLAKE2B ce8b2be71c4bcf83eed5e16d4770f8aa9075cd29c69ab5a019c763e65f1417094bb9e97a2d5ce5bbc773029e187ab3dee4e8296bbef1bbec580e2935b1c8f258 SHA512 0ef7bdba5a1d592e6e9adadd6e3cb0da4949822c61b2787f6d3f282f615f1de692ff775b0ea3e3f179736a685a8543bf6e4790c1a03932ccfe5933719a2bb9a3
DIST selenium-selenium-4.24.0.gh.tar.gz 77126013 BLAKE2B a909714b93b0cfc92a9d70d8cf20609eec65ebce3470fe487a23c86ac4f6f3dbf2e2ef88e00883999fe8b5e2842a05039fec94f6617961c436649baa618c59f8 SHA512 bc6f8066efba5a4f5a27abcc37eefa303e9efd89423729fedb4f466d98ed57e68c8593248206e4fc13cebd3446fa25a5a856d5f4c1d05940d73cecc920b4c522
+DIST selenium-selenium-4.25.0.gh.tar.gz 77158053 BLAKE2B 9978239a874d32e23d98ec98eb5292153496c42abcdd0f959875b2b460df5a85c0b532b6843e0d13b931078490958ebdc2944a8c21ce2eae24a0ac6a3c830772 SHA512 6d11d1aa22d27dbc07c3d39f5f852080c5089b12b1da0251e7b09c38ac3b8f56f452a24c64a20685eb0aff238698ab4bd18a8b7089c69f261cfbcdc679ceeac8
EBUILD selenium-manager-4.23.0-r1.ebuild 1942 BLAKE2B e51e170341af9ecf19c865c1d56824009698c454585c39342ba683742a47c84982b829ed56829f077094084c746bf0ca4793f434f20cd54a8703d5ac7c368020 SHA512 51596b7a89c37abb70f3e4842e4d8494383b699709976c45bc5ca009e4ebf7d53541b23115ae9b5147cc8572a381781d395d911ade15e8819b0fff5cf6b59157
EBUILD selenium-manager-4.24.0.ebuild 1947 BLAKE2B 9163d8add670e02b1cddf1ea70a6745c1e6a07e7baec296da621922852966a2ddca5fa7c732c07732e58ccb55a0fc9e0dc6696c7c17806e11d27d28ebbd70716 SHA512 914799119166544e5e9eef3221a7ca2e3611fbd19ee61b6b97569c8c316e0a5faf15b4c1c5c4dad3c03872051817b1ce809119c8c3c809a6f46f0920b242defd
+EBUILD selenium-manager-4.25.0.ebuild 2822 BLAKE2B 83c14dd5605b33738b02b58198e17b77c8772ae0777ef4548b7ad8c7fcee2d31e7171c0577f21fab0a9e73f112697df2cdb930bee1dcbda8f74c3a952d24e5ae SHA512 db0746761846ef962513d7d498ad0cae77d94d02c485e031e2e62f9493a12e29991ee39b1cfd968e507aad48a65c5798363dd73fce4f17cda9457b23d783d9d1
MISC metadata.xml 585 BLAKE2B 9810f0d387f5d0b8c6be3efd0bb41c04ccd0a47911b0d2fdd2722a9e2e00c590c27eb449449df764540c10359b698749c8de7a7e1abca2f8010dbaa649add6ca SHA512 2c1c2153adbf1af5a48bec25fd5879dc4dd4346f5ef5d37f1ed4abb8bbcf841870eed4ecd35ce69c50a861e0f50890fb2ee3da7c4980a29468acc6ecd54ecebd
diff --git a/dev-util/selenium-manager/selenium-manager-4.25.0.ebuild b/dev-util/selenium-manager/selenium-manager-4.25.0.ebuild
new file mode 100644
index 000000000000..8296f02a00a1
--- /dev/null
+++ b/dev-util/selenium-manager/selenium-manager-4.25.0.ebuild
@@ -0,0 +1,121 @@
+# Copyright 2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+CRATES="
+"
+
+inherit cargo
+
+TAG=selenium-${PV}
+MY_P=selenium-${TAG}
+CRATES_P=${PN}-4.24.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://dev.gentoo.org/~mgorny/dist/${CRATES_P}-crates.tar.xz
+ "
+fi
+S="${WORKDIR}/${MY_P}/rust"
+
+LICENSE="Apache-2.0"
+# Dependent crate licenses
+LICENSE+=" Apache-2.0 BSD ISC MIT MPL-2.0 Unicode-DFS-2016"
+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/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
+}