diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-08-07 12:37:21 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-08-07 12:37:21 +0100 |
commit | b8c7370a682e4e29cda623222d17a790c01c3642 (patch) | |
tree | f6caa14689bd00a5760eadaa381ff41e50ef3c1b /dev-util/selenium-manager | |
parent | 8a4997a7e2d1e36c089d4d76935b5a902d98d3d0 (diff) |
gentoo auto-resync : 07:08:2024 - 12:37:20
Diffstat (limited to 'dev-util/selenium-manager')
-rw-r--r-- | dev-util/selenium-manager/Manifest | 5 | ||||
-rw-r--r-- | dev-util/selenium-manager/metadata.xml | 9 | ||||
-rw-r--r-- | dev-util/selenium-manager/selenium-manager-4.23.0-r1.ebuild | 89 |
3 files changed, 102 insertions, 1 deletions
diff --git a/dev-util/selenium-manager/Manifest b/dev-util/selenium-manager/Manifest index a6582c99c2d3..b13c4ecf4efc 100644 --- a/dev-util/selenium-manager/Manifest +++ b/dev-util/selenium-manager/Manifest @@ -182,6 +182,8 @@ DIST sct-0.7.0.crate 27502 BLAKE2B 93912044e47473d72d7415e01cbe2545f84d7d087e7a7 DIST sct-0.7.1.crate 27501 BLAKE2B 12f63e62f49a0ed0c5a62c1c9b42a83c1df43401ed1de85f993167d8fc52733908e58ea1fe76cd7ff6128d4d6046d7c0335434672ed1865c8ddb1b3fbaecb590 SHA512 6030295b3b11411f5a7e518db1066282bf11a279c27414c5e959cd430e9fcbb7358e5d69bcc68c8bf696d4c1d9579ed7218b7f9dfbb61de2271c4c3d3316fb7e DIST selenium-manager-4.14.0.tar.gz 78721372 BLAKE2B f57f5ed30f4439a83308909f5233187f924476de455d9b6504255e56a3217844d206968a96963c0f824c1a7dc5e69a196dde50a0cfb291820e6690be67a87c5e SHA512 b3b3f375ef0589cdc2afb454b50678ebe881d08cea841c697c9a5a4d745fc8ac84f941d2f5bbea9082c6e0c7052b7c5f08207947bb4389b0322c257dc81dcc89 DIST selenium-manager-4.15.0.tar.gz 78935989 BLAKE2B 5ff5f620d206ece245a3166cbc77813ec8b5cc79942ad7e5b04df6ed02a0039b1b7af2af4b312cbcfd0e998aab25f4659e3c6aff52ac6d112c9440d49076fb69 SHA512 584e1637202681c2d60418a8e0bf7f8d28cf0edf901f076647c44996a589844a80db27ba52f1cdd22e5af5cc2ccfc890c0c6690a15d0656a35c8ebb9c20e5ee9 +DIST selenium-manager-4.23.0-crates.tar.xz 26763004 BLAKE2B b7f584637ae436f0c867ecaef2a04ba4a58178bdffce6f15a702bb6d254368303f7b2d9c1b50e950717deffc8ffe3bbbfc92ff14cd8f472f00387e4c114e924d SHA512 1dd54ae66b7ae93cb061c538140c64062b9185d18801fc759c67945792d59f2c3033f7173216d78f0b493db0000b4efd5cdb0e405b6f7aa242f5fa2472f88811 +DIST selenium-selenium-4.23.0.gh.tar.gz 77114209 BLAKE2B ce8b2be71c4bcf83eed5e16d4770f8aa9075cd29c69ab5a019c763e65f1417094bb9e97a2d5ce5bbc773029e187ab3dee4e8296bbef1bbec580e2935b1c8f258 SHA512 0ef7bdba5a1d592e6e9adadd6e3cb0da4949822c61b2787f6d3f282f615f1de692ff775b0ea3e3f179736a685a8543bf6e4790c1a03932ccfe5933719a2bb9a3 DIST semver-1.0.17.crate 29685 BLAKE2B b9beb685eb9f6cffe557d1185997e1a93d0e50ecd8e9719d9855347f12dd430ed1020df81839b7924a984596437ae7fb2951e7ae44c5540692a7f37b591bee2e SHA512 5199923757e675506d68c252182b10f55955e47054880492e5471a0a0f9ad13ef25d552d2ab9bd68fba37121b8026d9989bf15db67e95265b3aa53d06377fda7 DIST serde-1.0.185.crate 77337 BLAKE2B 602d8ce302f73327ce0dcfcdc5377408f4805be8a22ef93496fa31be512985188111c131b6dfaf110069ddbc45a9fdcdb8409d14689422fedcffa652e5a5000f SHA512 0c48d6ac7916104e108025c3ddf88a7e98b98ffaa98fcb7ff9eecbc4d3ed5930efbcb0de9e4072f795a3cbfa12aa5e17ee7eeeed948a7c99453c9a9d0c9985c3 DIST serde-1.0.189.crate 76276 BLAKE2B e4cf8d9608f341007f9a92af434395659511238040ddd2cec137539a51c05b949f79c4965ad9ec25f67a72fe8341573f2d1075766f7ab5842a107b12e0468a3a SHA512 3fb1732f6866db8412cbc4ceb57bc8f90cbee005e2687a388b052e5b94dd464aebff57a91cc8ce5da62508bfbd6cc4e14a524090a5fa60724cc9bd1bb5ea1035 @@ -288,4 +290,5 @@ DIST zstd-safe-5.0.2+zstd.1.5.2.crate 17273 BLAKE2B 74dc561046f9bc595c58b62bc6ff DIST zstd-sys-2.0.7+zstd.1.5.4.crate 732100 BLAKE2B 1859d1feb7c31d53df56b198b88a391bf09e221d09d449878043dc780ae6e3b3a0ad05fe3fb4980e849ab914f68d281d41f51f7bbceec6e1403d9b4e25572b4c SHA512 dcddc4f0d7486ee144df4e2173536dc02c9714b6f702edb9a9e04b4c02f4d347b5a70fbc020c1d08c079d38a423c4dc8b6b86e7e43ec3ccfcc8e3ff9861be11b EBUILD selenium-manager-4.14.0.ebuild 6475 BLAKE2B cd9d6452b09ca6ea22bc8643881e5543478bde4b1315a934214768baef71df47b0df6b77012cba8829aaed9cfb0b75601a0e71de1907a20e7c60b79dde686c07 SHA512 ebe7971cfe43cbdbeada3d34bcd3a70c35eb12a4d46360f05210d29c4ac1c629fa03c8193f7c31ae4570197bf888fbe45a6d661afd88f72872c85fb7c1a0bc1e EBUILD selenium-manager-4.15.0.ebuild 6660 BLAKE2B 472d51687b6e8ac85ae01386c4c093a14a0073a025d9e59f132ced2406ccf404ae131bc2e40d25aaa7dc4f6f2314b3f015774ce15766ff7b4969d688134e13ec SHA512 228d28e31f342b19141a145cf053174f64ea6fec8318a69ef65f7e77fe3549c35e8de750522c90516aba98c548b0a347fafdf25201426b46ec27db8301b3d662 -MISC metadata.xml 342 BLAKE2B c293221b7d3260a1cca03f556d8d7879bfb8b0ae4b0075c02c3f77b73a92a4bdade63684364f2d2b7da64bbd66d95911ed48da0df3535a83a29325e207f69933 SHA512 c4196570c7af8bb2d3ddcb8486ac44c36e39a82c20fd0f657c154d6b23bef9f24d2581253c76e37a8a2d0ad1cfdd78722ff61f244d30aac8f20b4518e85659ae +EBUILD selenium-manager-4.23.0-r1.ebuild 1942 BLAKE2B e51e170341af9ecf19c865c1d56824009698c454585c39342ba683742a47c84982b829ed56829f077094084c746bf0ca4793f434f20cd54a8703d5ac7c368020 SHA512 51596b7a89c37abb70f3e4842e4d8494383b699709976c45bc5ca009e4ebf7d53541b23115ae9b5147cc8572a381781d395d911ade15e8819b0fff5cf6b59157 +MISC metadata.xml 585 BLAKE2B 9810f0d387f5d0b8c6be3efd0bb41c04ccd0a47911b0d2fdd2722a9e2e00c590c27eb449449df764540c10359b698749c8de7a7e1abca2f8010dbaa649add6ca SHA512 2c1c2153adbf1af5a48bec25fd5879dc4dd4346f5ef5d37f1ed4abb8bbcf841870eed4ecd35ce69c50a861e0f50890fb2ee3da7c4980a29468acc6ecd54ecebd diff --git a/dev-util/selenium-manager/metadata.xml b/dev-util/selenium-manager/metadata.xml index 6c0a26cb93f5..3f8eb3fb2167 100644 --- a/dev-util/selenium-manager/metadata.xml +++ b/dev-util/selenium-manager/metadata.xml @@ -5,7 +5,16 @@ <email>graaff@gentoo.org</email> <name>Hans de Graaff</name> </maintainer> + <maintainer type="person"> + <email>mgorny@gentoo.org</email> + <name>Michał Górny</name> + </maintainer> <upstream> <remote-id type="github">SeleniumHQ/selenium</remote-id> </upstream> + <use> + <flag name="telemetry"> + Disable sending telemetry by default (avoid-stats config option). + </flag> + </use> </pkgmetadata> diff --git a/dev-util/selenium-manager/selenium-manager-4.23.0-r1.ebuild b/dev-util/selenium-manager/selenium-manager-4.23.0-r1.ebuild new file mode 100644 index 000000000000..02782b497544 --- /dev/null +++ b/dev-util/selenium-manager/selenium-manager-4.23.0-r1.ebuild @@ -0,0 +1,89 @@ +# 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} +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/${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 ~ppc64 ~riscv ~x86" +IUSE="telemetry test" +RESTRICT="!test? ( test )" + +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/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/stable_browser_tests.rs || die + rm tests/webview_tests.rs || die +} + +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 +} |