public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/selenium-manager/
Date: Sat, 05 Apr 2025 06:37:54 +0000 (UTC)	[thread overview]
Message-ID: <1743835057.a4a0aa0725dec88446f6d67e25dec33adce06453.mgorny@gentoo> (raw)

commit:     a4a0aa0725dec88446f6d67e25dec33adce06453
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Apr  5 05:40:40 2025 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Apr  5 06:37:37 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a4a0aa07

dev-util/selenium-manager: Bump to 4.31.0

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-util/selenium-manager/Manifest                 |   1 +
 .../selenium-manager-4.31.0.ebuild                 | 121 +++++++++++++++++++++
 2 files changed, 122 insertions(+)

diff --git a/dev-util/selenium-manager/Manifest b/dev-util/selenium-manager/Manifest
index 2c589887dbdf..b8bf797b6b3a 100644
--- a/dev-util/selenium-manager/Manifest
+++ b/dev-util/selenium-manager/Manifest
@@ -5,3 +5,4 @@ DIST selenium-selenium-4.26.0.gh.tar.gz 77107740 BLAKE2B d4e466dbdb9a12126ae8ee9
 DIST selenium-selenium-4.28.0.gh.tar.gz 52440665 BLAKE2B c954745ffc62d05c7686dfad8be2963dc520d831849a3ff50e75d6b3bf6f14e985932026b61bd6c4df37a1cd50d877bd6b52d0ee35df3b0763d4f5d2f08b8b6a SHA512 02316b264a25888116070f697be59094139114ce3388013da8e907dc55ac4e0d60b773b35ae5a786fbd94ee59c3afc7ff9344aeec709c160960a343337f42d8c
 DIST selenium-selenium-4.29.0.gh.tar.gz 52589103 BLAKE2B 65b202e599c1a3d31ebd15a3da1246fe7e8ea4a55c24189a1146d07e4a49a5fcdfbdb000b7e8102b09de4f3c60d4ca13c033c2127603f8ed2c6277d254cb3069 SHA512 2a3dde375539592cb65fc2dca27e5a3f92ccdd9111dd0c7a0453a6f447a2f4b738d92120d1ef6872321265f86c87708859e714288b49893f6b8ccb1ad003cbf7
 DIST selenium-selenium-4.30.0.gh.tar.gz 52519870 BLAKE2B 440198b919d2c3400666bc07d246bff04521ec10716fadf660c564bd316e5889c4ecb314a45422661623b2a17e47e93921cad6eb97d3ca1b6f47cbae0ad42ac7 SHA512 561551002d2c37acc9a0b5fc40e3989a47d69dc0692a6fe44c90b0b77bf0056bc390848020fea7f5681ccbb5ec9808912cc5e63c286577ec60d787f3d2991b82
+DIST selenium-selenium-4.31.0.gh.tar.gz 52458288 BLAKE2B 649d585e116ccd82e68f3b74b50cbbda5b9ac02c6ab8e72473b5775265205dc31ec69c846b1b39c91dceb63234bb02bf4833b321d101227f5873db6ad8897038 SHA512 e440e1b8e15b9e1f592b2466738f3982355a0757458bd7c8ef7eba31548df2bd449e54cea273a47f2b6bd0e68a2d75a1af67a791eff0cf3f601e685c4b8b237a

diff --git a/dev-util/selenium-manager/selenium-manager-4.31.0.ebuild b/dev-util/selenium-manager/selenium-manager-4.31.0.ebuild
new file mode 100644
index 000000000000..1de768774733
--- /dev/null
+++ b/dev-util/selenium-manager/selenium-manager-4.31.0.ebuild
@@ -0,0 +1,121 @@
+# Copyright 2024-2025 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=selenium-4.30.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 ISC MIT MPL-2.0 Unicode-3.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
+}


             reply	other threads:[~2025-04-05  6:37 UTC|newest]

Thread overview: 58+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-05  6:37 Michał Górny [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-10-18  6:22 [gentoo-commits] repo/gentoo:master commit in: dev-util/selenium-manager/ Michał Górny
2025-10-03  5:38 Michał Górny
2025-10-03  5:38 Michał Górny
2025-08-13 16:59 Michał Górny
2025-08-13  8:07 Michał Górny
2025-07-20 15:53 Sam James
2025-07-19  9:00 Sam James
2025-06-29 19:34 Michał Górny
2025-06-07 10:43 Michał Górny
2025-06-07  8:52 Arthur Zamarin
2025-06-07  8:44 Michał Górny
2025-05-24  6:11 Michał Górny
2025-05-21 10:56 Arthur Zamarin
2025-05-20  1:52 Michał Górny
2025-05-19 18:08 Michał Górny
2025-05-17 13:23 Sam James
2025-05-03  6:08 Michał Górny
2025-03-22  6:31 Michał Górny
2025-03-09  2:38 Sam James
2025-03-08 16:56 Sam James
2025-03-08  8:58 Michał Górny
2025-02-21  5:20 Michał Górny
2025-02-08 18:04 Sam James
2025-02-08 11:39 Arthur Zamarin
2025-01-21  4:34 Michał Górny
2024-12-15 10:50 Sam James
2024-12-14 12:57 Arthur Zamarin
2024-11-26  7:01 Michał Górny
2024-11-23 17:21 Michał Górny
2024-11-23 16:55 Michał Górny
2024-11-23 14:15 Michał Górny
2024-11-23  8:45 Arthur Zamarin
2024-11-23  8:27 Arthur Zamarin
2024-10-31  5:24 Michał Górny
2024-10-12 15:47 Michał Górny
2024-10-12 14:57 Sam James
2024-10-12  8:13 Michał Górny
2024-09-21  7:41 Michał Górny
2024-09-16 13:09 Joonas Niilola
2024-09-16 13:09 Joonas Niilola
2024-09-01 19:57 Arthur Zamarin
2024-08-29  4:52 Michał Górny
2024-07-24 15:44 Michał Górny
2024-07-24 14:18 Michał Górny
2024-07-24 14:18 Michał Górny
2023-12-02 14:56 Arthur Zamarin
2023-12-02 10:43 Hans de Graaff
2023-11-30 18:33 Jakov Smolić
2023-11-04  7:06 Hans de Graaff
2023-10-21  6:16 Hans de Graaff
2023-10-20  5:35 Hans de Graaff
2023-10-06  6:45 Hans de Graaff
2023-10-06  6:45 Hans de Graaff
2023-09-18 20:04 Arthur Zamarin
2023-09-05 12:06 Hans de Graaff
2023-09-03  6:28 Hans de Graaff
2023-08-25 13:13 Hans de Graaff

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1743835057.a4a0aa0725dec88446f6d67e25dec33adce06453.mgorny@gentoo \
    --to=mgorny@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox