From 188908b39de5f44e43e2399b67eba93e59cba9ff Mon Sep 17 00:00:00 2001 From: Patrick McLean Date: Thu, 6 Aug 2026 07:46:06 -0700 Subject: [PATCH 1/4] dev-util/ruff: drop versions Signed-off-by: Patrick McLean --- dev-util/ruff/Manifest | 14 ---- dev-util/ruff/ruff-0.14.14.ebuild | 119 ------------------------------ dev-util/ruff/ruff-0.15.15.ebuild | 115 ----------------------------- dev-util/ruff/ruff-0.15.16.ebuild | 115 ----------------------------- dev-util/ruff/ruff-0.15.17.ebuild | 111 ---------------------------- dev-util/ruff/ruff-0.15.21.ebuild | 111 ---------------------------- dev-util/ruff/ruff-0.16.0.ebuild | 111 ---------------------------- 7 files changed, 696 deletions(-) delete mode 100644 dev-util/ruff/ruff-0.14.14.ebuild delete mode 100644 dev-util/ruff/ruff-0.15.15.ebuild delete mode 100644 dev-util/ruff/ruff-0.15.16.ebuild delete mode 100644 dev-util/ruff/ruff-0.15.17.ebuild delete mode 100644 dev-util/ruff/ruff-0.15.21.ebuild delete mode 100644 dev-util/ruff/ruff-0.16.0.ebuild diff --git a/dev-util/ruff/Manifest b/dev-util/ruff/Manifest index 0e12511ec6f4a..6aeda6a62a2a9 100644 --- a/dev-util/ruff/Manifest +++ b/dev-util/ruff/Manifest @@ -1,22 +1,8 @@ DIST lsp-types-3512a9f33eadc5402cfab1b8f7340824c8ca1439.gh.tar.gz 71124 BLAKE2B b2ea1c8fdd96dcc78ea48be71d1a4870fe1ff7f6a03dfe96479e0cba5f6b13ea68381d0a85fcb79a1ec2345eab7032c76cf567a813885128f94ac0c47c3de7bf SHA512 3362f9db4e78261825ae17b3429f9c54dc1b32a8b6a275ecff7bbe457c610d27ac37e68be3e9e27378f5f54c786dee787fd87b33c102f2507a46cf7290390ab5 -DIST lsp-types-e15db0593f0ecbbd80599c3f5880e4bf5da1ca0c.gh.tar.gz 71166 BLAKE2B 5f451f169b56e49b372c5d2e152ea522fa494e6a7d410d4c7418cf3d8cd15cfd6e3d576a41c5e90568b26f990f1ffaf5ff40844d62e47fe9b9df98184d499932 SHA512 097e4371ebde03c5f80e4f2c0eaf8354ce53c0472170536df5a155b33d19a4c20a498aa67684c7a764af31115cae02ec42c463044972d4dece7449ea241d6970 -DIST ruff-0.14.14-crates.tar.xz 27166656 BLAKE2B 2195359d2c7e2d81d2b529c9758b2648e801471f44b4817905dee9863eb71a546c54bf6b48f438f73dc7de17c71d388dd96b07f30e1c3162000226c9e81a05a5 SHA512 1257b788e753c52600f2de8c96d609175ccc6bb6b86f280592af53037f33f10669dd0d264dfeb813ce6f694cbf3dd5c9c3ca7cc7782a6eac730d5769413397d4 -DIST ruff-0.14.14.gh.tar.gz 10790863 BLAKE2B a2c528031f7a4d7722d2b3ed2e21e8866f847538275357c66667f98e963e3c37002cd44ef8d57d48a5c68ec9c69c538cc29fa62e65f0cbf7ceb210341488d135 SHA512 f0e0350034c745dd8dfad81b7a61ba3895674bbc3aa0ec3c552470fe24363e729c959cd8916cb216ea90cf3c6682bed1bad22e740eff8525b9b27c7bac1da10b DIST ruff-0.14.9-crates.tar.xz 23756736 BLAKE2B 096331190e95db7701bd80ef61d38dbc2f40dd551ed47381376ec7b7ab6cca2660d0bf3991e436643bab8e8c76b21d0b250b3229f6718a5b9ae8cf062167fb88 SHA512 69a2784950322b8d99abcfc7a08b6205e26ba58c7c91a7978069fec734e8668c32e59d1142c0921eec0e65b7fd6b7eb25ad5c9f623e547f4ee41045bcad92447 DIST ruff-0.14.9.gh.tar.gz 10435624 BLAKE2B 8a11be76ac46750c97efd6f8bfdafd1d2bdeac81302b85f2d04feba59165fe9ed1b24c465a9df0d8d415325af6e9c6e020d21f295ef94c52f24681359c00bb3a SHA512 67c58eff480232871041156ddd8448a856b0e3c9bb68ca82577d34f353a711b85e3b1e032f98ed0abe5d0fff2855a109380e59e8909dd2742c3bb6b96dc972d4 -DIST ruff-0.15.15-crates.tar.xz 27632776 BLAKE2B b1d21ce60615b87dcf23ca66cc5f52d6e4ebc45ef2f3830fa3e8e5dadbce9b053278a089e8ca9b57910c512f3b8482163712ceba087e914bdc120d63099bedcd SHA512 a2c0b64bdf5e6d4edfb0506b5c1d8d16896f9ce1857ebea9af0ec54a7efecced0152d1eb885eb735e4bab1707dbb9d071623cf3028d8ffb81e0c4d238ad77bde -DIST ruff-0.15.15.gh.tar.gz 11717015 BLAKE2B fcdd94703b4483bd8229be1e2f0cfd82ee93804b3b1ca84b4f91f89b209dd6d5468c015bb3a776bd723dd9b756bb4ea2140550359c0eaca2fe833881e34e27e9 SHA512 adc83f37314eda63925b69740e7c66a8b9a7a107343a278104db009db12006bb9523319c38f23cdc64ce94ed643e7a1630c18f04b7d327ef947a67c912204c29 -DIST ruff-0.15.16-crates.tar.xz 27649780 BLAKE2B c541897d480d4499f36394ea2de756ec52abfcd96d10f45a5217f35bd75e2518ac5bcb71d971ef8cccb405dbba420da675e969ac04ad076bdfabaafd2949dd65 SHA512 b6402e5e06dc0bdddf05f528acd6560a18c7926aaee321dbbfb557523e031b91e2ca01cdeae2cf1a3d7dfef4892bda23e95c4096ebb2d569fbc1c2a4142a2c17 -DIST ruff-0.15.16.gh.tar.gz 11805173 BLAKE2B 8292843d34214a4e1c392bcd9c9ffcbd9218988a336294885d938a89e2a1717079def90fc4b73fced36c04e713a10e8b9312653d1863e64d96432646b6aa8974 SHA512 148685d402f7a8b901f03ef12805e83bc7f6a99180587f092bddc9142b15c07092870ab97420d29d9a6cd1bef2be4f0d6c3caf4e147783742c1ffbf82349de26 -DIST ruff-0.15.17-crates.tar.xz 27989496 BLAKE2B ec87fc0a269e6ef19203535ce5322efaed18b4e63ecdeb86c77c4cce5fd1f79217b764742bacbde0492811dbfe09e9524d909f311d8d851dcad848c1ab474f86 SHA512 96620bd08c17cdb30630c144bf7d5592a94a3ae677564ebd860a46d0be4c86f0fbc91d9a1eadaefb8f53a09f067fc833d85cde6481ddff529be67fd2c91c08f6 -DIST ruff-0.15.17.gh.tar.gz 11901022 BLAKE2B 527079a4ebbb62b347198fbea8ed4a9f274bb7d9bbe4e2fbe7d6eaf2a2d15304d5789ff998dff4fd93f6bbd71988a828f5babb1c87629d238fa3fc8b7da5b58f SHA512 98cb72f936e708f10d4af6f986e2c64acee403784a931d8a6c15db8f51f63c8f0684159af674a895c6f74ad265b46775b3dc8e6dd2e7f9db18640142ebd96fd1 -DIST ruff-0.15.21-crates.tar.xz 28543608 BLAKE2B 58898d9efba16e63208b92e9157ea4f456d6b8771313128f77da7e2d1c8d4a9d5bb5a697c189cd1211049cbb931d343d8b3229ca66834b5cece27b3f1187aa37 SHA512 bfe509932b5df3f6843cdbe7e04c37e892c8a6419fb3ce2fb5b4445b37ba1568695e1b797e8a8284160ff6ee16622e66292e9e2ebd6774e4971c8f6249e7108e -DIST ruff-0.15.21.gh.tar.gz 12333547 BLAKE2B 50ad982a55c400ed51e5e39640d3ab77d9381fd82c9f8d6d3c118456b90389aaa820519737d02e739e82593daebcfb40ec71bcf136beedc798a9cd574e6eead1 SHA512 12ab5c9ed56bb43c255b731db7c2a37cb7b16eddf2c2d0c96c6b41a48180c5ec3f4573359964f17733a94c1fe704f84ad457116252c15511489adf5608944b1e DIST ruff-0.15.22-crates.tar.xz 28557892 BLAKE2B fdad14454e619d877ae3bc928f3fdeff5fa28d4d50b6a70973bf1e90a45b40222ce1920ecd31f64f2548f4b3547acd5316deea3ce10505635ed9cd2c3d826ff1 SHA512 77f1b26723caedd7424d723f1df57cac92093c73c4b13b0cc05abd8b6e1d309d535489f5844b559dfb6a5332482a9099ee5238839a89fed4d20c855d45e6659c DIST ruff-0.15.22.gh.tar.gz 12456801 BLAKE2B 2dcadb76ef927f596d66b5805029368612ca7ec5b6ade5ecc11a59630a02943178c2f28bbbddecc04ef85a4850a58eb2e19e1d33363aef5198c052ec0f360a29 SHA512 eb76b898d49e8299e67df695d5329e39352fd7c90aeebdb6ff6b5867d5ef675448296a0207376adb53f9d51de22316c3b96d58e990be72c30a10047b7db0ea7d -DIST ruff-0.16.0-crates.tar.xz 28626012 BLAKE2B 7a1a982c57f9aebcedf8c9a4b4f4dba188a6d4b850252788db54ee1332886b3aafb4374db87474b2ea695933c9c92da5b0eeb7c2ea7ca4c9c53a213b030769f5 SHA512 d53c6f31b468bcb0333bb1905a53beb80b511cc014a3b676a94f64aee87958cc93d074914b98ab9a6e759a930464a0cc89fe338131a2a78032dd7fd415a85e15 -DIST ruff-0.16.0.gh.tar.gz 12533164 BLAKE2B bdcaf82830abeb4b8af9d470df9b37a48df3095eab274ee4b767dbdd20503f47da0fe0c6aac492d10d56b894fa1a0521f1055239a9bbed6aeed3bf92ed513ff4 SHA512 55b2140104ff48c9c45bc8dd8e71c5e975a2099e00dc41d69cd1ef7887672c6704c3a239c727b1d0c84b425b1e0e0b394def2e0638000a43f558b7a0e8bf6f85 DIST ruff-0.16.1-crates.tar.xz 28659240 BLAKE2B 119a6395d66c4bac93761180cc729e4aad3bb87f6f8dc8ebe049743c2c8ed91bf47441dbe7426ba717dc83bf5d19711efafa27a0187033cf766d7d966d367816 SHA512 d9781f1c024f7021bc0f09b51cadfda45eee29e82f39164e57bd48bc19b64d9611296ee9c30ac6af49741816fb2a9365b85fd6461e01acfca6e8de20be132e5c DIST ruff-0.16.1.gh.tar.gz 12733382 BLAKE2B 3296aef4902f375250fd19cfef80101bafd6acb5c9771ac3138d9c8560137d93d3cb1d434e74ec3a00387d22c3308942fd799e550d6d2b618bfb711319abcb7b SHA512 ed7d691fd755264202cb80276f12b0eef78682c6a0e1badfb2735d2451a10f707e0188a06bbe6494594f10f45c6d5ccaf6eda891754e0d79cc2367b75ba629cc DIST salsa-55e5e7d32fa3fc189276f35bb04c9438f9aedbd1.gh.tar.gz 731425 BLAKE2B ce720abaa295b46c7e1fa06a73e2ad9a48a6b9da7f2b4a91edba38a28bb9a63a1661886fc7c5d6dbc915f589f2e055731a544cdf18afb4dd7b3f6815c59e543b SHA512 91942cfc6bbfb7f07366cdd3d42e5296bff877ee723b24868ff3c278defd0ef247f03e957332bc0696553f0f1977a41c18d08efe7887f5bda3a1cb98543bddbd -DIST salsa-9860ff6ca0f1f8f3a8d6b832020002790b501254.gh.tar.gz 738416 BLAKE2B a80aea2f5e89bbadd5aecd7bf728355f2ffd84793b2e3581e94ba10e32c68fa7b9eb2663b17e47089ba60f5b6019776f794f91771435a9e8d10876f4e38b4d97 SHA512 ed1080daa458a77dc1634381863c671f3facd34e048c952358253be950bc87eb4d11079566be8caa90eb1f704e1dbc3591418a03ed10f1b7147222afcf44fe63 diff --git a/dev-util/ruff/ruff-0.14.14.ebuild b/dev-util/ruff/ruff-0.14.14.ebuild deleted file mode 100644 index a3b8d42f137b3..0000000000000 --- a/dev-util/ruff/ruff-0.14.14.ebuild +++ /dev/null @@ -1,119 +0,0 @@ -# Copyright 2024-2026 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -# Autogenerated by pycargoebuild 0.15.1 - -EAPI=8 - -CRATES=" -" - -declare -A GIT_CRATES=( - [lsp-types]='https://github.com/astral-sh/lsp-types;3512a9f33eadc5402cfab1b8f7340824c8ca1439;lsp-types-%commit%' - [salsa-macro-rules]='https://github.com/salsa-rs/salsa;9860ff6ca0f1f8f3a8d6b832020002790b501254;salsa-%commit%/components/salsa-macro-rules' - [salsa-macros]='https://github.com/salsa-rs/salsa;9860ff6ca0f1f8f3a8d6b832020002790b501254;salsa-%commit%/components/salsa-macros' - [salsa]='https://github.com/salsa-rs/salsa;9860ff6ca0f1f8f3a8d6b832020002790b501254;salsa-%commit%' -) - -RUST_MIN_VER="1.90.0" - -inherit shell-completion cargo - -DESCRIPTION="An extremely fast Python linter, written in Rust" -HOMEPAGE=" - https://docs.astral.sh/ruff/ - https://github.com/astral-sh/ruff -" -SRC_URI=" - ${CARGO_CRATE_URIS} - https://github.com/astral-sh/ruff/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz - https://github.com/gentoo-crate-dist/${PN}/releases/download/${PV}/${P}-crates.tar.xz -" - -LICENSE="MIT" -# Dependent crate licenses -LICENSE+=" - Apache-2.0 BSD CC0-1.0 ISC MIT MPL-2.0 PSF-2 Unicode-3.0 - Unicode-DFS-2016 WTFPL-2 ZLIB -" -SLOT="0" -KEYWORDS="~amd64 ~arm64 ~loong ~riscv" - -RDEPEND=" - !elibc_musl? ( !elibc_Darwin? ( !elibc_bionic? ( dev-libs/jemalloc:= ) ) ) - app-arch/zstd -" -DEPEND=" - ${RDEPEND} -" - -QA_FLAGS_IGNORED="usr/bin/.*" - -DOCS=( - BREAKING_CHANGES.md - CODE_OF_CONDUCT.md - CONTRIBUTING.md - README.md - assets - docs -) - -src_prepare() { - default - - # Experimental cruft cleaner. These crates are not used by the ruff binary, - # and when they are removed in the git repo, the lockfile is regenerated - # and gets quite a bit smaller. Hence pycargoebuild also produces much - # smaller CRATES= variables. Less for the user to download, fewer distfiles - # to mirror. - pushd crates >/dev/null || die - rm -r ruff_{benchmark,dev} ty{,_{server,completion_eval}} *_wasm || die - popd > /dev/null || die - - # tests that hang in the ebuild environment - rm crates/ruff_annotate_snippets/tests/examples.rs || die -} - -src_configure() { - export RUSTFLAGS="${RUSTFLAGS}" - cargo_src_configure -} - -src_compile() { - local -x ZSTD_SYS_USE_PKG_CONFIG=1 - # Gentoo bug #927338 - if use !elibc_musl && use !elibc_Darwin && use !elibc_bionic; then - local -x CARGO_FEATURE_UNPREFIXED_MALLOC_ON_SUPPORTED_PLATFORMS=1 - local -x JEMALLOC_OVERRIDE="${ESYSROOT}/usr/$(get_libdir)"/libjemalloc.so - fi - cargo_src_compile --bin ruff - - local releasedir - releasedir=$(cargo_target_dir) - - ${releasedir}/ruff generate-shell-completion bash > ruff-completion.bash || die - ${releasedir}/ruff generate-shell-completion fish > ruff-completion.fish || die - ${releasedir}/ruff generate-shell-completion zsh > ruff-completion.zsh || die -} - -src_test() { - local -x ZSTD_SYS_USE_PKG_CONFIG=1 - # Gentoo bug #927338 - if use !elibc_musl && use !elibc_Darwin && use !elibc_bionic; then - local -x CARGO_FEATURE_UNPREFIXED_MALLOC_ON_SUPPORTED_PLATFORMS=1 - local -x JEMALLOC_OVERRIDE="${ESYSROOT}/usr/$(get_libdir)"/libjemalloc.so - fi - cargo_src_test --target-dir "${PWD}"/tested-target/ -} - -src_install() { - local releasedir=$(cargo_target_dir) - - dobin ${releasedir}/ruff - - newbashcomp ruff-completion.bash ruff - newfishcomp ruff-completion.fish ruff.fish - newzshcomp ruff-completion.zsh _ruff - - dodoc -r "${DOCS[@]}" -} diff --git a/dev-util/ruff/ruff-0.15.15.ebuild b/dev-util/ruff/ruff-0.15.15.ebuild deleted file mode 100644 index b280bd446398d..0000000000000 --- a/dev-util/ruff/ruff-0.15.15.ebuild +++ /dev/null @@ -1,115 +0,0 @@ -# Copyright 2024-2026 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -# Autogenerated by pycargoebuild 0.15.1 - -EAPI=8 - -CRATES=" -" - -declare -A GIT_CRATES=( - [lsp-types]='https://github.com/astral-sh/lsp-types;e15db0593f0ecbbd80599c3f5880e4bf5da1ca0c;lsp-types-%commit%' -) - -RUST_MIN_VER="1.93" - -inherit shell-completion cargo - -DESCRIPTION="An extremely fast Python linter, written in Rust" -HOMEPAGE=" - https://docs.astral.sh/ruff/ - https://github.com/astral-sh/ruff -" -SRC_URI=" - ${CARGO_CRATE_URIS} - https://github.com/astral-sh/ruff/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz - https://github.com/gentoo-crate-dist/${PN}/releases/download/${PV}/${P}-crates.tar.xz -" - -LICENSE="MIT" -# Dependent crate licenses -LICENSE+=" - Apache-2.0 BSD CC0-1.0 ISC MIT MPL-2.0 PSF-2 Unicode-3.0 - Unicode-DFS-2016 WTFPL-2 ZLIB -" -SLOT="0" -KEYWORDS="~amd64 ~arm64 ~loong ~riscv" - -RDEPEND=" - !elibc_musl? ( !elibc_Darwin? ( !elibc_bionic? ( dev-libs/jemalloc:= ) ) ) - app-arch/zstd -" -DEPEND=" - ${RDEPEND} -" - -QA_FLAGS_IGNORED="usr/bin/.*" - -DOCS=( - BREAKING_CHANGES.md - CONTRIBUTING.md - README.md - assets - docs -) - -src_prepare() { - default - - # Experimental cruft cleaner. These crates are not used by the ruff binary, - # and when they are removed in the git repo, the lockfile is regenerated - # and gets quite a bit smaller. Hence pycargoebuild also produces much - # smaller CRATES= variables. Less for the user to download, fewer distfiles - # to mirror. - pushd crates >/dev/null || die - rm -r ruff_{benchmark,dev} ty{,_{server,completion_eval}} *_wasm || die - popd > /dev/null || die - - # tests that hang in the ebuild environment - rm crates/ruff_annotate_snippets/tests/examples.rs || die -} - -src_configure() { - export RUSTFLAGS="${RUSTFLAGS}" - cargo_src_configure -} - -src_compile() { - local -x ZSTD_SYS_USE_PKG_CONFIG=1 - # Gentoo bug #927338 - if use !elibc_musl && use !elibc_Darwin && use !elibc_bionic; then - local -x CARGO_FEATURE_UNPREFIXED_MALLOC_ON_SUPPORTED_PLATFORMS=1 - local -x JEMALLOC_OVERRIDE="${ESYSROOT}/usr/$(get_libdir)"/libjemalloc.so - fi - cargo_src_compile --bin ruff - - local releasedir - releasedir=$(cargo_target_dir) - - ${releasedir}/ruff generate-shell-completion bash > ruff-completion.bash || die - ${releasedir}/ruff generate-shell-completion fish > ruff-completion.fish || die - ${releasedir}/ruff generate-shell-completion zsh > ruff-completion.zsh || die -} - -src_test() { - local -x ZSTD_SYS_USE_PKG_CONFIG=1 - # Gentoo bug #927338 - if use !elibc_musl && use !elibc_Darwin && use !elibc_bionic; then - local -x CARGO_FEATURE_UNPREFIXED_MALLOC_ON_SUPPORTED_PLATFORMS=1 - local -x JEMALLOC_OVERRIDE="${ESYSROOT}/usr/$(get_libdir)"/libjemalloc.so - fi - cargo_src_test --target-dir "${PWD}"/tested-target/ -} - -src_install() { - local releasedir=$(cargo_target_dir) - - dobin ${releasedir}/ruff - - newbashcomp ruff-completion.bash ruff - newfishcomp ruff-completion.fish ruff.fish - newzshcomp ruff-completion.zsh _ruff - - dodoc -r "${DOCS[@]}" -} diff --git a/dev-util/ruff/ruff-0.15.16.ebuild b/dev-util/ruff/ruff-0.15.16.ebuild deleted file mode 100644 index 069a51fcc4bc1..0000000000000 --- a/dev-util/ruff/ruff-0.15.16.ebuild +++ /dev/null @@ -1,115 +0,0 @@ -# Copyright 2024-2026 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -# Autogenerated by pycargoebuild 0.15.1 - -EAPI=8 - -CRATES=" -" - -declare -A GIT_CRATES=( - [lsp-types]='https://github.com/astral-sh/lsp-types;e15db0593f0ecbbd80599c3f5880e4bf5da1ca0c;lsp-types-%commit%' -) - -RUST_MIN_VER="1.94" - -inherit shell-completion cargo - -DESCRIPTION="An extremely fast Python linter, written in Rust" -HOMEPAGE=" - https://docs.astral.sh/ruff/ - https://github.com/astral-sh/ruff -" -SRC_URI=" - ${CARGO_CRATE_URIS} - https://github.com/astral-sh/ruff/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz - https://github.com/gentoo-crate-dist/${PN}/releases/download/${PV}/${P}-crates.tar.xz -" - -LICENSE="MIT" -# Dependent crate licenses -LICENSE+=" - Apache-2.0 BSD CC0-1.0 ISC MIT MPL-2.0 PSF-2 Unicode-3.0 - Unicode-DFS-2016 WTFPL-2 ZLIB -" -SLOT="0" -KEYWORDS="~amd64 ~arm64 ~loong ~riscv" - -RDEPEND=" - !elibc_musl? ( !elibc_Darwin? ( !elibc_bionic? ( dev-libs/jemalloc:= ) ) ) - app-arch/zstd -" -DEPEND=" - ${RDEPEND} -" - -QA_FLAGS_IGNORED="usr/bin/.*" - -DOCS=( - BREAKING_CHANGES.md - CONTRIBUTING.md - README.md - assets - docs -) - -src_prepare() { - default - - # Experimental cruft cleaner. These crates are not used by the ruff binary, - # and when they are removed in the git repo, the lockfile is regenerated - # and gets quite a bit smaller. Hence pycargoebuild also produces much - # smaller CRATES= variables. Less for the user to download, fewer distfiles - # to mirror. - pushd crates >/dev/null || die - rm -r ruff_{benchmark,dev} ty{,_{server,completion_eval}} *_wasm || die - popd > /dev/null || die - - # tests that hang in the ebuild environment - rm crates/ruff_annotate_snippets/tests/examples.rs || die -} - -src_configure() { - export RUSTFLAGS="${RUSTFLAGS}" - cargo_src_configure -} - -src_compile() { - local -x ZSTD_SYS_USE_PKG_CONFIG=1 - # Gentoo bug #927338 - if use !elibc_musl && use !elibc_Darwin && use !elibc_bionic; then - local -x CARGO_FEATURE_UNPREFIXED_MALLOC_ON_SUPPORTED_PLATFORMS=1 - local -x JEMALLOC_OVERRIDE="${ESYSROOT}/usr/$(get_libdir)"/libjemalloc.so - fi - cargo_src_compile --bin ruff - - local releasedir - releasedir=$(cargo_target_dir) - - ${releasedir}/ruff generate-shell-completion bash > ruff-completion.bash || die - ${releasedir}/ruff generate-shell-completion fish > ruff-completion.fish || die - ${releasedir}/ruff generate-shell-completion zsh > ruff-completion.zsh || die -} - -src_test() { - local -x ZSTD_SYS_USE_PKG_CONFIG=1 - # Gentoo bug #927338 - if use !elibc_musl && use !elibc_Darwin && use !elibc_bionic; then - local -x CARGO_FEATURE_UNPREFIXED_MALLOC_ON_SUPPORTED_PLATFORMS=1 - local -x JEMALLOC_OVERRIDE="${ESYSROOT}/usr/$(get_libdir)"/libjemalloc.so - fi - cargo_src_test --target-dir "${PWD}"/tested-target/ -} - -src_install() { - local releasedir=$(cargo_target_dir) - - dobin ${releasedir}/ruff - - newbashcomp ruff-completion.bash ruff - newfishcomp ruff-completion.fish ruff.fish - newzshcomp ruff-completion.zsh _ruff - - dodoc -r "${DOCS[@]}" -} diff --git a/dev-util/ruff/ruff-0.15.17.ebuild b/dev-util/ruff/ruff-0.15.17.ebuild deleted file mode 100644 index a6af11c03e5f3..0000000000000 --- a/dev-util/ruff/ruff-0.15.17.ebuild +++ /dev/null @@ -1,111 +0,0 @@ -# Copyright 2024-2026 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -# Autogenerated by pycargoebuild 0.15.1 - -EAPI=8 - -CRATES=" -" - -RUST_MIN_VER="1.94" - -inherit shell-completion cargo - -DESCRIPTION="An extremely fast Python linter, written in Rust" -HOMEPAGE=" - https://docs.astral.sh/ruff/ - https://github.com/astral-sh/ruff -" -SRC_URI=" - ${CARGO_CRATE_URIS} - https://github.com/astral-sh/ruff/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz - https://github.com/gentoo-crate-dist/${PN}/releases/download/${PV}/${P}-crates.tar.xz -" - -LICENSE="MIT" -# Dependent crate licenses -LICENSE+=" - Apache-2.0 BSD CC0-1.0 ISC MIT MPL-2.0 PSF-2 Unicode-3.0 - Unicode-DFS-2016 WTFPL-2 ZLIB -" -SLOT="0" -KEYWORDS="~amd64 ~arm64 ~loong ~riscv" - -RDEPEND=" - !elibc_musl? ( !elibc_Darwin? ( !elibc_bionic? ( dev-libs/jemalloc:= ) ) ) - app-arch/zstd -" -DEPEND=" - ${RDEPEND} -" - -QA_FLAGS_IGNORED="usr/bin/.*" - -DOCS=( - BREAKING_CHANGES.md - CONTRIBUTING.md - README.md - assets - docs -) - -src_prepare() { - default - - # Experimental cruft cleaner. These crates are not used by the ruff binary, - # and when they are removed in the git repo, the lockfile is regenerated - # and gets quite a bit smaller. Hence pycargoebuild also produces much - # smaller CRATES= variables. Less for the user to download, fewer distfiles - # to mirror. - pushd crates >/dev/null || die - rm -r ruff_{benchmark,dev} ty{,_{server,completion_eval}} *_wasm || die - popd > /dev/null || die - - # tests that hang in the ebuild environment - rm crates/ruff_annotate_snippets/tests/examples.rs || die -} - -src_configure() { - export RUSTFLAGS="${RUSTFLAGS}" - cargo_src_configure -} - -src_compile() { - local -x ZSTD_SYS_USE_PKG_CONFIG=1 - # Gentoo bug #927338 - if use !elibc_musl && use !elibc_Darwin && use !elibc_bionic; then - local -x CARGO_FEATURE_UNPREFIXED_MALLOC_ON_SUPPORTED_PLATFORMS=1 - local -x JEMALLOC_OVERRIDE="${ESYSROOT}/usr/$(get_libdir)"/libjemalloc.so - fi - cargo_src_compile --bin ruff - - local releasedir - releasedir=$(cargo_target_dir) - - ${releasedir}/ruff generate-shell-completion bash > ruff-completion.bash || die - ${releasedir}/ruff generate-shell-completion fish > ruff-completion.fish || die - ${releasedir}/ruff generate-shell-completion zsh > ruff-completion.zsh || die -} - -src_test() { - local -x ZSTD_SYS_USE_PKG_CONFIG=1 - # Gentoo bug #927338 - if use !elibc_musl && use !elibc_Darwin && use !elibc_bionic; then - local -x CARGO_FEATURE_UNPREFIXED_MALLOC_ON_SUPPORTED_PLATFORMS=1 - local -x JEMALLOC_OVERRIDE="${ESYSROOT}/usr/$(get_libdir)"/libjemalloc.so - fi - cargo_src_test --target-dir "${PWD}"/tested-target/ -} - -src_install() { - local releasedir=$(cargo_target_dir) - - dobin ${releasedir}/ruff - - newbashcomp ruff-completion.bash ruff - newfishcomp ruff-completion.fish ruff.fish - newzshcomp ruff-completion.zsh _ruff - - dodoc -r "${DOCS[@]}" -} diff --git a/dev-util/ruff/ruff-0.15.21.ebuild b/dev-util/ruff/ruff-0.15.21.ebuild deleted file mode 100644 index a6af11c03e5f3..0000000000000 --- a/dev-util/ruff/ruff-0.15.21.ebuild +++ /dev/null @@ -1,111 +0,0 @@ -# Copyright 2024-2026 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -# Autogenerated by pycargoebuild 0.15.1 - -EAPI=8 - -CRATES=" -" - -RUST_MIN_VER="1.94" - -inherit shell-completion cargo - -DESCRIPTION="An extremely fast Python linter, written in Rust" -HOMEPAGE=" - https://docs.astral.sh/ruff/ - https://github.com/astral-sh/ruff -" -SRC_URI=" - ${CARGO_CRATE_URIS} - https://github.com/astral-sh/ruff/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz - https://github.com/gentoo-crate-dist/${PN}/releases/download/${PV}/${P}-crates.tar.xz -" - -LICENSE="MIT" -# Dependent crate licenses -LICENSE+=" - Apache-2.0 BSD CC0-1.0 ISC MIT MPL-2.0 PSF-2 Unicode-3.0 - Unicode-DFS-2016 WTFPL-2 ZLIB -" -SLOT="0" -KEYWORDS="~amd64 ~arm64 ~loong ~riscv" - -RDEPEND=" - !elibc_musl? ( !elibc_Darwin? ( !elibc_bionic? ( dev-libs/jemalloc:= ) ) ) - app-arch/zstd -" -DEPEND=" - ${RDEPEND} -" - -QA_FLAGS_IGNORED="usr/bin/.*" - -DOCS=( - BREAKING_CHANGES.md - CONTRIBUTING.md - README.md - assets - docs -) - -src_prepare() { - default - - # Experimental cruft cleaner. These crates are not used by the ruff binary, - # and when they are removed in the git repo, the lockfile is regenerated - # and gets quite a bit smaller. Hence pycargoebuild also produces much - # smaller CRATES= variables. Less for the user to download, fewer distfiles - # to mirror. - pushd crates >/dev/null || die - rm -r ruff_{benchmark,dev} ty{,_{server,completion_eval}} *_wasm || die - popd > /dev/null || die - - # tests that hang in the ebuild environment - rm crates/ruff_annotate_snippets/tests/examples.rs || die -} - -src_configure() { - export RUSTFLAGS="${RUSTFLAGS}" - cargo_src_configure -} - -src_compile() { - local -x ZSTD_SYS_USE_PKG_CONFIG=1 - # Gentoo bug #927338 - if use !elibc_musl && use !elibc_Darwin && use !elibc_bionic; then - local -x CARGO_FEATURE_UNPREFIXED_MALLOC_ON_SUPPORTED_PLATFORMS=1 - local -x JEMALLOC_OVERRIDE="${ESYSROOT}/usr/$(get_libdir)"/libjemalloc.so - fi - cargo_src_compile --bin ruff - - local releasedir - releasedir=$(cargo_target_dir) - - ${releasedir}/ruff generate-shell-completion bash > ruff-completion.bash || die - ${releasedir}/ruff generate-shell-completion fish > ruff-completion.fish || die - ${releasedir}/ruff generate-shell-completion zsh > ruff-completion.zsh || die -} - -src_test() { - local -x ZSTD_SYS_USE_PKG_CONFIG=1 - # Gentoo bug #927338 - if use !elibc_musl && use !elibc_Darwin && use !elibc_bionic; then - local -x CARGO_FEATURE_UNPREFIXED_MALLOC_ON_SUPPORTED_PLATFORMS=1 - local -x JEMALLOC_OVERRIDE="${ESYSROOT}/usr/$(get_libdir)"/libjemalloc.so - fi - cargo_src_test --target-dir "${PWD}"/tested-target/ -} - -src_install() { - local releasedir=$(cargo_target_dir) - - dobin ${releasedir}/ruff - - newbashcomp ruff-completion.bash ruff - newfishcomp ruff-completion.fish ruff.fish - newzshcomp ruff-completion.zsh _ruff - - dodoc -r "${DOCS[@]}" -} diff --git a/dev-util/ruff/ruff-0.16.0.ebuild b/dev-util/ruff/ruff-0.16.0.ebuild deleted file mode 100644 index fe46867af3c02..0000000000000 --- a/dev-util/ruff/ruff-0.16.0.ebuild +++ /dev/null @@ -1,111 +0,0 @@ -# Copyright 2024-2026 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -# Autogenerated by pycargoebuild 0.15.1 - -EAPI=8 - -CRATES=" -" - -RUST_MIN_VER="1.95" - -inherit shell-completion cargo - -DESCRIPTION="An extremely fast Python linter, written in Rust" -HOMEPAGE=" - https://docs.astral.sh/ruff/ - https://github.com/astral-sh/ruff -" -SRC_URI=" - ${CARGO_CRATE_URIS} - https://github.com/astral-sh/ruff/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz - https://github.com/gentoo-crate-dist/${PN}/releases/download/${PV}/${P}-crates.tar.xz -" - -LICENSE="MIT" -# Dependent crate licenses -LICENSE+=" - Apache-2.0 BSD CC0-1.0 ISC MIT MPL-2.0 PSF-2 Unicode-3.0 - Unicode-DFS-2016 WTFPL-2 ZLIB -" -SLOT="0" -KEYWORDS="~amd64 ~arm64 ~loong ~riscv" - -RDEPEND=" - !elibc_musl? ( !elibc_Darwin? ( !elibc_bionic? ( dev-libs/jemalloc:= ) ) ) - app-arch/zstd -" -DEPEND=" - ${RDEPEND} -" - -QA_FLAGS_IGNORED="usr/bin/.*" - -DOCS=( - BREAKING_CHANGES.md - CONTRIBUTING.md - README.md - assets - docs -) - -src_prepare() { - default - - # Experimental cruft cleaner. These crates are not used by the ruff binary, - # and when they are removed in the git repo, the lockfile is regenerated - # and gets quite a bit smaller. Hence pycargoebuild also produces much - # smaller CRATES= variables. Less for the user to download, fewer distfiles - # to mirror. - pushd crates >/dev/null || die - rm -r ruff_{benchmark,dev} ty{,_{server,completion_eval}} *_wasm || die - popd > /dev/null || die - - # tests that hang in the ebuild environment - rm crates/ruff_annotate_snippets/tests/examples.rs || die -} - -src_configure() { - export RUSTFLAGS="${RUSTFLAGS}" - cargo_src_configure -} - -src_compile() { - local -x ZSTD_SYS_USE_PKG_CONFIG=1 - # Gentoo bug #927338 - if use !elibc_musl && use !elibc_Darwin && use !elibc_bionic; then - local -x CARGO_FEATURE_UNPREFIXED_MALLOC_ON_SUPPORTED_PLATFORMS=1 - local -x JEMALLOC_OVERRIDE="${ESYSROOT}/usr/$(get_libdir)"/libjemalloc.so - fi - cargo_src_compile --bin ruff - - local releasedir - releasedir=$(cargo_target_dir) - - ${releasedir}/ruff generate-shell-completion bash > ruff-completion.bash || die - ${releasedir}/ruff generate-shell-completion fish > ruff-completion.fish || die - ${releasedir}/ruff generate-shell-completion zsh > ruff-completion.zsh || die -} - -src_test() { - local -x ZSTD_SYS_USE_PKG_CONFIG=1 - # Gentoo bug #927338 - if use !elibc_musl && use !elibc_Darwin && use !elibc_bionic; then - local -x CARGO_FEATURE_UNPREFIXED_MALLOC_ON_SUPPORTED_PLATFORMS=1 - local -x JEMALLOC_OVERRIDE="${ESYSROOT}/usr/$(get_libdir)"/libjemalloc.so - fi - cargo_src_test --target-dir "${PWD}"/tested-target/ -} - -src_install() { - local releasedir=$(cargo_target_dir) - - dobin ${releasedir}/ruff - - newbashcomp ruff-completion.bash ruff - newfishcomp ruff-completion.fish ruff.fish - newzshcomp ruff-completion.zsh _ruff - - dodoc -r "${DOCS[@]}" -} From ff505812f0f4390c6f05253884185d7459872e11 Mon Sep 17 00:00:00 2001 From: Mike Pagano Date: Thu, 6 Aug 2026 10:42:18 -0400 Subject: [PATCH 2/4] net-libs/nodejs: add 22.23.2 Signed-off-by: Mike Pagano --- net-libs/nodejs/Manifest | 1 + net-libs/nodejs/nodejs-22.23.2.ebuild | 296 ++++++++++++++++++++++++++ 2 files changed, 297 insertions(+) create mode 100644 net-libs/nodejs/nodejs-22.23.2.ebuild diff --git a/net-libs/nodejs/Manifest b/net-libs/nodejs/Manifest index 30631fc3a577f..ecaddf93dd8d3 100644 --- a/net-libs/nodejs/Manifest +++ b/net-libs/nodejs/Manifest @@ -3,6 +3,7 @@ DIST node-v20.19.6.tar.xz 42530628 BLAKE2B 7a0e5d469cc58cf744f2edc1421828dbcbe01 DIST node-v20.20.2.tar.xz 42662736 BLAKE2B 3f7c6d7c0acf40f8df9c3326a54d76e70aa253159f187dff966bf3fa73341915bebbe4f78a387786489e1e8b016dd0644f8831247a681df93cb11f31fdfc8a0f SHA512 5f6977a8e678c334362535f6f6f87d397b4dcae4c3e215b77652094259bb2d83fb2c24fdc968693c89679039217b166090e560473b58321ef3325083bfb3a0ad DIST node-v22.13.1.tar.xz 48041964 BLAKE2B 9695cc6a9b9606a615cdcff42e9b8d5f15c2d12fd0f6c894596a7c6526b3267ab9ea4f7362f8c03039c728cb5f7a3a334cce7fda9293cba06922000542a2800c SHA512 711fbeacceec16b8808e5a41ead496347fee2304fc6ce095ad26c4413f52253c9f3a6cd78080e808c03c3dbe958d64359d2d6bb97a51e1b41e1cff903ce2aeb5 DIST node-v22.21.1.tar.xz 50151568 BLAKE2B 5a7ab1b746c7c25887ed7e9a5728b8c01287c5ed8ecf4587ad9f115e1849039133b4af803b93414934c5baafed18434ebd2d8fda1b520ef5bdf3ed3f72e27439 SHA512 6d3b7b25fb2d8f155ae887367f3ac2467d368049f1fe07767d29e69c95cdb25f0ec0b5825179db691942a877f04fbbaf22a86990354795d89194dd2854b84397 +DIST node-v22.23.2.tar.xz 51362684 BLAKE2B ddf19407ada0f94f4cc08814f633099f38044eb9709143d06509eff76b481736a26712c55fe3abc67e2ee18cfd524841b976ba40074699fe13c05d55a265d771 SHA512 92b959098fb7fcfe80776a983d2ae52479692a63c49087c97a0ee2423147a5222b1e1994e98ff650483322cf3a1f1cca8a51f3389993c0ff5fc13b6d1f4ef4ef DIST node-v24.14.0.tar.xz 53987528 BLAKE2B 3d181bdb01c82ea10add1251b97614ea8bb2cc1de52044a639a1955339c4861e84600bd89c0e951f20f4dc61352838142a4d87bd07380936661d89a7f68bc0e5 SHA512 44f8a4758f34373f44daf1498ecb83261788251a43c9063bc3572ebf9bd647adafbc44474127771f5f9e36aa01feee1ad991e01ab3ec5a892607194441f76aaa DIST node-v24.19.0.tar.xz 55505276 BLAKE2B 7a7caa4fc46e598010c8a27e1463018b2cb65d430888aa7181c5e8db5e213379723b2d29f2f446d542900c0850b0dc3f4dfe98d942d2caae244f6a2a93b58c47 SHA512 82057740cace16e02fa973d5fef5fc265150e3c278cc232d32ad7d5a9163b8cbfdf437de8675b8a174c9883a94a680de2ac1c2184957767efd5add3fa8380751 DIST node-v26.3.0.tar.xz 59811728 BLAKE2B a69f067e63883239a38397484b3f92ff4ca8a1ae651cb4f3328e6f994f16260751f3f64ff6c914aeef837d1f6deade8649979f091a044c86c8467058bb0065d2 SHA512 464a24d2536f3ead35325cfb268355fcc66a95260519174cba847efa4037ae2529c24781595b11aae45810570f41c0d2f2d7db2ed365baccda1017a7131a7efe diff --git a/net-libs/nodejs/nodejs-22.23.2.ebuild b/net-libs/nodejs/nodejs-22.23.2.ebuild new file mode 100644 index 0000000000000..9c01ce57e9614 --- /dev/null +++ b/net-libs/nodejs/nodejs-22.23.2.ebuild @@ -0,0 +1,296 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +CONFIG_CHECK="~ADVISE_SYSCALLS" +PYTHON_COMPAT=( python3_{11..14} ) +PYTHON_REQ_USE="threads(+)" + +inherit check-reqs flag-o-matic linux-info ninja-utils pax-utils +inherit python-any-r1 shell-completion toolchain-funcs xdg-utils + +DESCRIPTION="A JavaScript runtime built on Chrome's V8 JavaScript engine" +HOMEPAGE="https://nodejs.org/" +LICENSE="Apache-1.1 Apache-2.0 BSD BSD-2 MIT npm? ( Artistic-2 )" + +if [[ ${PV} == *9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/nodejs/node" + SLOT="0" +else + SRC_URI="https://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz" + SLOT="0/$(ver_cut 1)" + KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~x86 ~x64-macos" + S="${WORKDIR}/node-v${PV}" +fi + +IUSE="corepack cpu_flags_x86_sse2 debug doc +icu +inspector lto +npm pax-kernel +snapshot +ssl +system-icu +system-ssl test" +REQUIRED_USE="inspector? ( icu ssl ) + npm? ( ssl ) + system-icu? ( icu ) + system-ssl? ( ssl ) + x86? ( cpu_flags_x86_sse2 )" + +RESTRICT="!test? ( test )" + +COMMON_DEPEND=">=app-arch/brotli-1.1.0:= + dev-db/sqlite:3 + >=dev-libs/libuv-1.51.0:= + >=dev-libs/simdjson-3.13.0:= + >=net-dns/c-ares-1.34.4:= + >=net-libs/nghttp2-1.64.0:= + >=net-libs/nghttp3-1.7.0:= + virtual/zlib:= + corepack? ( !sys-apps/yarn ) + system-icu? ( >=dev-libs/icu-73:= ) + system-ssl? ( + >=net-libs/ngtcp2-1.9.1:= + >=dev-libs/openssl-3.5.4:0= + ) + !system-ssl? ( >=net-libs/ngtcp2-1.9.1:=[-gnutls] ) + || ( + sys-devel/gcc:* + llvm-runtimes/libatomic-stub + )" +BDEPEND="${PYTHON_DEPS} + app-alternatives/ninja + sys-apps/coreutils + virtual/pkgconfig + test? ( net-misc/curl ) + pax-kernel? ( sys-apps/elfix )" +DEPEND="${COMMON_DEPEND}" +RDEPEND="${COMMON_DEPEND}" + +# These are measured on a loong machine with -ggdb on, and only checked +# if debugging flags are present in CFLAGS. +# +# The final link consumed a little more than 7GiB alone, so 8GiB is the lower +# limit for memory usage. Disk usage was 19.1GiB for the build directory and +# 1.2GiB for the installed image, so we leave some room for architectures with +# fatter binaries and set the disk requirement to 22GiB. +CHECKREQS_MEMORY="8G" +CHECKREQS_DISK_BUILD="22G" + +pkg_pretend() { + if [[ ${MERGE_TYPE} != "binary" ]]; then + if is-flagq "-g*" && ! is-flagq "-g*0" ; then + einfo "Checking for sufficient disk space and memory to build ${PN} with debugging CFLAGS" + check-reqs_pkg_pretend + fi + fi +} + +pkg_setup() { + python-any-r1_pkg_setup + linux-info_pkg_setup +} + +src_prepare() { + tc-export AR CC CXX PKG_CONFIG + export V=1 + export BUILDTYPE=Release + + # fix compilation on Darwin + # https://code.google.com/p/gyp/issues/detail?id=260 + sed -i -e "/append('-arch/d" tools/gyp/pylib/gyp/xcode_emulation.py || die + + # proper libdir, hat tip @ryanpcmcquen https://github.com/iojs/io.js/issues/504 + local LIBDIR=$(get_libdir) + sed -i -e "s|lib/|${LIBDIR}/|g" tools/install.py || die + sed -i -e "s/'lib'/'${LIBDIR}'/" deps/npm/lib/npm.js || die + + # Avoid writing a depfile, not useful + sed -i -e "/DEPFLAGS =/d" tools/gyp/pylib/gyp/generator/make.py || die + + sed -i -e "/'-O3'/d" common.gypi node.gypi || die + + # debug builds. change install path, remove optimisations and override buildtype + if use debug; then + sed -i -e "s|out/Release/|out/Debug/|g" tools/install.py || die + BUILDTYPE=Debug + fi + + # We need to disable mprotect on two files when it builds Bug 694100. + use pax-kernel && PATCHES+=( "${FILESDIR}"/${PN}-22.12.0-paxmarking.patch ) + + # bug 931256 + use riscv && PATCHES+=( "${FILESDIR}"/${PN}-22.2.0-riscv.patch ) + + default +} + +src_configure() { + xdg_environment_reset + + # LTO compiler flags are handled by configure.py itself + filter-lto + # The warnings are *so* noisy and make build.logs massive + append-cxxflags $(test-flags-CXX -Wno-template-id-cdtor) + # https://bugs.gentoo.org/931514 + use arm64 && append-flags $(test-flags-CXX -mbranch-protection=none) + + local myconf=( + --ninja + # ada is not packaged yet + # https://github.com/ada-url/ada + # --shared-ada + --shared-brotli + --shared-cares + --shared-libuv + --shared-nghttp2 + --shared-nghttp3 + --shared-ngtcp2 + --shared-simdjson + # sindutf is not packaged yet + # https://github.com/simdutf/simdutf + # --shared-simdutf + --shared-sqlite + --shared-zlib + ) + use debug && myconf+=( --debug ) + use lto && myconf+=( --enable-lto ) + if use system-icu; then + myconf+=( --with-intl=system-icu ) + elif use icu; then + myconf+=( --with-intl=full-icu ) + else + myconf+=( --with-intl=none ) + fi + use corepack || myconf+=( --without-corepack ) + use inspector || myconf+=( --without-inspector ) + use npm || myconf+=( --without-npm ) + use snapshot || myconf+=( --without-node-snapshot ) + if use ssl; then + use system-ssl && myconf+=( --shared-openssl --openssl-use-def-ca-store ) + else + myconf+=( --without-ssl ) + fi + + local myarch="" + case "${ARCH}:${ABI}" in + *:amd64) myarch="x64";; + *:arm) myarch="arm";; + *:arm64) myarch="arm64";; + loong:lp64*) myarch="loong64";; + riscv:lp64*) myarch="riscv64";; + *:ppc64) myarch="ppc64";; + *:x32) myarch="x32";; + *:x86) myarch="ia32";; + *) myarch="${ABI}";; + esac + + GYP_DEFINES="linux_use_gold_flags=0 + linux_use_bundled_binutils=0 + linux_use_bundled_gold=0" \ + "${EPYTHON}" configure.py \ + --prefix="${EPREFIX}"/usr \ + --dest-cpu=${myarch} \ + "${myconf[@]}" || die +} + +src_compile() { + eninja -C out/Release +} + +src_install() { + local LIBDIR="${ED}/usr/$(get_libdir)" + default + + pax-mark -m "${ED}"/usr/bin/node + + # set up a symlink structure that node-gyp expects.. + dodir /usr/include/node/deps/{v8,uv} + dosym . /usr/include/node/src + for var in deps/{uv,v8}/include; do + dosym ../.. /usr/include/node/${var} + done + + if use doc; then + docinto html + dodoc -r "${S}"/doc/* + fi + + if use npm; then + keepdir /etc/npm + echo "NPM_CONFIG_GLOBALCONFIG=${EPREFIX}/etc/npm/npmrc" > "${T}"/50npm + doenvd "${T}"/50npm + + # Install bash completion for `npm` + local tmp_npm_completion_file="$(TMPDIR="${T}" mktemp -t npm.XXXXXXXXXX)" + "${ED}/usr/bin/npm" completion > "${tmp_npm_completion_file}" + newbashcomp "${tmp_npm_completion_file}" npm + + # Move man pages + doman "${LIBDIR}"/node_modules/npm/man/man{1,5,7}/* + + # Clean up + rm -f "${LIBDIR}"/node_modules/npm/{.mailmap,.npmignore,Makefile} + + local find_exp="-or -name" + local find_name=() + for match in "AUTHORS*" "CHANGELOG*" "CONTRIBUT*" "README*" \ + ".travis.yml" ".eslint*" ".wercker.yml" ".npmignore" \ + "*.bat" "*.cmd"; do + find_name+=( ${find_exp} "${match}" ) + done + + # Remove various development and/or inappropriate files and + # useless docs of dependend packages. + find "${LIBDIR}"/node_modules \ + \( -type d -name examples \) -or \( -type f \( \ + -iname "LICEN?E*" \ + "${find_name[@]}" \ + \) \) -exec rm -rf "{}" \; + fi + + use corepack && + "${D}"/usr/bin/corepack enable --install-directory "${D}"/usr/bin + + mv "${ED}"/usr/share/doc/node "${ED}"/usr/share/doc/${PF} || die +} + +src_test() { + local drop_tests=( + test/parallel/test-dns.js + test/parallel/test-dns-resolveany-bad-ancount.js + test/parallel/test-dns-setserver-when-querying.js + test/parallel/test-dotenv.js + test/parallel/test-fs-mkdir.js + test/parallel/test-fs-read-stream.js + test/parallel/test-fs-utimes-y2K38.js + test/parallel/test-fs-watch-recursive-add-file.js + test/parallel/test-http2-client-set-priority.js + test/parallel/test-http2-priority-event.js + test/parallel/test-process-euid-egid.js + test/parallel/test-process-get-builtin.mjs + test/parallel/test-process-initgroups.js + test/parallel/test-process-setgroups.js + test/parallel/test-process-uid-gid.js + test/parallel/test-release-npm.js + test/parallel/test-socket-write-after-fin-error.js + test/parallel/test-strace-openat-openssl.js + test/sequential/test-tls-session-timeout.js + test/sequential/test-util-debug.js + ) + use inspector || + drop_tests+=( + test/parallel/test-inspector-emit-protocol-event.js + test/parallel/test-inspector-network-arbitrary-data.js + test/parallel/test-inspector-network-domain.js + test/parallel/test-inspector-network-fetch.js + test/parallel/test-inspector-network-http.js + test/sequential/test-watch-mode.mjs + ) + rm -f "${drop_tests[@]}" || die "disabling tests failed" + + out/${BUILDTYPE}/cctest || die + "${EPYTHON}" tools/test.py --mode=${BUILDTYPE,,} --flaky-tests=dontcare -J message parallel sequential || die +} + +pkg_postinst() { + if use npm; then + ewarn "remember to run: source /etc/profile if you plan to use nodejs" + ewarn " in your current shell" + fi +} From 96e3ef824ad1852a53309d70b2c7d204247426de Mon Sep 17 00:00:00 2001 From: Pacho Ramos Date: Thu, 6 Aug 2026 16:29:54 +0200 Subject: [PATCH 3/4] games-arcade/methane: add 3.0.1 Signed-off-by: Pacho Ramos --- games-arcade/methane/Manifest | 1 + games-arcade/methane/methane-3.0.1.ebuild | 36 +++++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 games-arcade/methane/methane-3.0.1.ebuild diff --git a/games-arcade/methane/Manifest b/games-arcade/methane/Manifest index fce51af9bddb1..8a9c542264dd9 100644 --- a/games-arcade/methane/Manifest +++ b/games-arcade/methane/Manifest @@ -1,3 +1,4 @@ DIST methane-2.0.1.tar.gz 1058487 BLAKE2B 2fc450c03dbbd57439b22e8e6ac8eebd2db18f97a3338180decdc0a437207b581a00e664e6353595c9eb50c16f7d9fead96bddf6ca50b67326ecea6dd4bb935a SHA512 96b005eb5964185adea89aa43afda375c474db8088a132b2d46a843a1eca6ba91f83bf41277a3f3cfa24c4f9b9dae7098527414284fd0521e92a34c225e06bd9 DIST methane-2.1.0.tar.gz 1059462 BLAKE2B 9a280875e5e7d44d4be88006fe97d3bbdb277f50609ad46fcdb33fcaaf10a22d8a7d4dc541637dd3f8a6e96b391b56533861d10abee38ddcb643f143c5ba632e SHA512 0854792d52a9f66d4fd43a6428fd27e92f1a8e324b085d0ab7612a7dac59e8e51d23acd10f4ac27975485049ea99e3ebb1ebae18f479a0c4286b7709438b06bf +DIST methane-3.0.1.tar.gz 20610399 BLAKE2B 354da0b48e21a8100f3ad581d3919c7abbba5f0e2e0b3056cd026b78ecdcb1867e56caf25878ed17b09b48ce9b37699f46b1fa84bbb50590224147067d0d1271 SHA512 162c226e00d9a57623986cceabc099018ed595de108ec566f94fed4a17c5b2844bcb50e6ac2e72f62b7ef0d0fdcb3081f05ee6fa982e4ed47d993a29ee746e81 DIST methane.png 4034 BLAKE2B b10ebd8ca4bf2f6330aa89e3adb77a14bb183bf3d0dd40e305c87d58e0a6a4249662cdee8a457fc3df93a9c0b0daecf0dd8cb307c33a6b5f6e48543062b1b18f SHA512 a56e453c9971b8819904f19af4ed3e417ef0538f87bfa121918c8fa4f93c14ba922b7d29584f0c69497a7b56585a92a7df902997cf18f6f2672c31c960ea7772 diff --git a/games-arcade/methane/methane-3.0.1.ebuild b/games-arcade/methane/methane-3.0.1.ebuild new file mode 100644 index 0000000000000..b77e425ba9b21 --- /dev/null +++ b/games-arcade/methane/methane-3.0.1.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake desktop + +DESCRIPTION="Port from an old Amiga game" +HOMEPAGE="https://methane.sourceforge.net/ https://github.com/rombust/Methane" +SRC_URI="https://github.com/rombust/Methane/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz + https://src.fedoraproject.org/rpms/methane/raw/f41/f/methane.png +" +S="${WORKDIR}/Methane-${PV}" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + dev-util/vulkan-headers + media-libs/alsa-lib + x11-libs/libXinerama + x11-libs/libXrender +" +DEPEND="${RDEPEND}" +BDEPEND="virtual/pkgconfig" + +src_install() { + dobin "${S}_build"/methane + insinto /usr/share/${PN} + doins resources/* + + doicon "${DISTDIR}/${PN}.png" + make_desktop_entry ${PN} "Super Methane Brothers" + HTML_DOCS="docs/*" dodoc authors.txt history.txt README.md +} From 99d91503b7a4a80a12acc75af8e565b7ffb5b517 Mon Sep 17 00:00:00 2001 From: Pacho Ramos Date: Thu, 6 Aug 2026 16:53:49 +0200 Subject: [PATCH 4/4] games-arcade/methane: drop 2.0.1 Signed-off-by: Pacho Ramos --- games-arcade/methane/Manifest | 1 - .../files/methane-2.0.1-makefile.patch | 41 ----------------- games-arcade/methane/methane-2.0.1.ebuild | 45 ------------------- 3 files changed, 87 deletions(-) delete mode 100644 games-arcade/methane/files/methane-2.0.1-makefile.patch delete mode 100644 games-arcade/methane/methane-2.0.1.ebuild diff --git a/games-arcade/methane/Manifest b/games-arcade/methane/Manifest index 8a9c542264dd9..97f898601ef72 100644 --- a/games-arcade/methane/Manifest +++ b/games-arcade/methane/Manifest @@ -1,4 +1,3 @@ -DIST methane-2.0.1.tar.gz 1058487 BLAKE2B 2fc450c03dbbd57439b22e8e6ac8eebd2db18f97a3338180decdc0a437207b581a00e664e6353595c9eb50c16f7d9fead96bddf6ca50b67326ecea6dd4bb935a SHA512 96b005eb5964185adea89aa43afda375c474db8088a132b2d46a843a1eca6ba91f83bf41277a3f3cfa24c4f9b9dae7098527414284fd0521e92a34c225e06bd9 DIST methane-2.1.0.tar.gz 1059462 BLAKE2B 9a280875e5e7d44d4be88006fe97d3bbdb277f50609ad46fcdb33fcaaf10a22d8a7d4dc541637dd3f8a6e96b391b56533861d10abee38ddcb643f143c5ba632e SHA512 0854792d52a9f66d4fd43a6428fd27e92f1a8e324b085d0ab7612a7dac59e8e51d23acd10f4ac27975485049ea99e3ebb1ebae18f479a0c4286b7709438b06bf DIST methane-3.0.1.tar.gz 20610399 BLAKE2B 354da0b48e21a8100f3ad581d3919c7abbba5f0e2e0b3056cd026b78ecdcb1867e56caf25878ed17b09b48ce9b37699f46b1fa84bbb50590224147067d0d1271 SHA512 162c226e00d9a57623986cceabc099018ed595de108ec566f94fed4a17c5b2844bcb50e6ac2e72f62b7ef0d0fdcb3081f05ee6fa982e4ed47d993a29ee746e81 DIST methane.png 4034 BLAKE2B b10ebd8ca4bf2f6330aa89e3adb77a14bb183bf3d0dd40e305c87d58e0a6a4249662cdee8a457fc3df93a9c0b0daecf0dd8cb307c33a6b5f6e48543062b1b18f SHA512 a56e453c9971b8819904f19af4ed3e417ef0538f87bfa121918c8fa4f93c14ba922b7d29584f0c69497a7b56585a92a7df902997cf18f6f2672c31c960ea7772 diff --git a/games-arcade/methane/files/methane-2.0.1-makefile.patch b/games-arcade/methane/files/methane-2.0.1-makefile.patch deleted file mode 100644 index 0cf205041ed7d..0000000000000 --- a/games-arcade/methane/files/methane-2.0.1-makefile.patch +++ /dev/null @@ -1,41 +0,0 @@ -From 7fa0b482546993d5279911a43ad6cb75c96ec1f0 Mon Sep 17 00:00:00 2001 -From: "Azamat H. Hackimov" -Date: Wed, 14 Dec 2022 00:28:51 +0300 -Subject: [PATCH] Use portable variables in Makefile - ---- - Makefile | 9 +++++---- - 1 file changed, 5 insertions(+), 4 deletions(-) - -diff --git a/Makefile b/Makefile -index 35c3eb1..f827efc 100644 ---- a/Makefile -+++ b/Makefile -@@ -1,5 +1,6 @@ --METHANE_FLAGS = `pkg-config --cflags clanCore-4.1 clanDisplay-4.1 clanApp-4.1 clanGL-4.1 clanSound-4.1 libmikmod` -Isources --METHANE_LIBS = `pkg-config --libs clanCore-4.1 clanDisplay-4.1 clanApp-4.1 clanGL-4.1 clanSound-4.1 libmikmod` -+PKG_CONFIG ?= pkg-config -+METHANE_FLAGS := $(shell ${PKG_CONFIG} --cflags clanCore-4.1 clanDisplay-4.1 clanApp-4.1 clanGL-4.1 clanSound-4.1 libmikmod) -Isources -+METHANE_LIBS := $(shell ${PKG_CONFIG} --libs clanCore-4.1 clanDisplay-4.1 clanApp-4.1 clanGL-4.1 clanSound-4.1 libmikmod) - - OBJF = sources/precomp.o \ - sources/player.o \ -@@ -37,7 +38,7 @@ message: - @echo "=================================" - - methane: ${OBJF} -- g++ ${CXXFLAGS} ${OBJF} -o methane ${METHANE_LIBS} -+ $(CXX) ${CXXFLAGS} ${LDFLAGS} ${OBJF} -o methane ${METHANE_LIBS} - - clean: - @rm -f sources/*.o -@@ -49,5 +50,5 @@ distclean: clean - # The main source code - %.o:%.cpp - @echo " Compiling $<..." -- gcc ${CXXFLAGS} ${METHANE_FLAGS} -c $< -o $@ -+ $(CXX) ${CXXFLAGS} ${METHANE_FLAGS} -c $< -o $@ - --- -2.37.4 - diff --git a/games-arcade/methane/methane-2.0.1.ebuild b/games-arcade/methane/methane-2.0.1.ebuild deleted file mode 100644 index 33e4e2941888a..0000000000000 --- a/games-arcade/methane/methane-2.0.1.ebuild +++ /dev/null @@ -1,45 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit desktop toolchain-funcs - -DESCRIPTION="Port from an old Amiga game" -HOMEPAGE="https://methane.sourceforge.net/" -SRC_URI="https://github.com/rombust/Methane/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz - https://src.fedoraproject.org/rpms/methane/raw/f37/f/methane.png -" - -LICENSE="GPL-2+" -SLOT="0" -KEYWORDS="~amd64 ~x86" -S="${WORKDIR}/Methane-${PV}" - -RDEPEND=" - dev-games/clanlib:4.1[opengl,sound] - media-libs/libmikmod -" -DEPEND="${RDEPEND}" -BDEPEND="virtual/pkgconfig" - -PATCHES=( - "${FILESDIR}/${P}-makefile.patch" -) - -src_prepare() { - default - - tc-export PKG_CONFIG -} - -src_install() { - dobin methane - - insinto /usr/share/${PN} - doins resources/* - - doicon "${DISTDIR}/${PN}.png" - make_desktop_entry ${PN} "Super Methane Brothers" - HTML_DOCS="docs/*" dodoc authors.txt history.txt readme.txt -}