summaryrefslogtreecommitdiff
path: root/dev-util
diff options
context:
space:
mode:
Diffstat (limited to 'dev-util')
-rw-r--r--dev-util/cookiecutter/Manifest1
-rw-r--r--dev-util/cookiecutter/cookiecutter-2.7.1.ebuild55
-rw-r--r--dev-util/cookiecutter/files/build-backend-2.7.1.patch12
-rw-r--r--dev-util/ruff/Manifest3
-rw-r--r--dev-util/ruff/ruff-0.15.8.ebuild118
5 files changed, 189 insertions, 0 deletions
diff --git a/dev-util/cookiecutter/Manifest b/dev-util/cookiecutter/Manifest
index b9d85645f923..ae826dd284af 100644
--- a/dev-util/cookiecutter/Manifest
+++ b/dev-util/cookiecutter/Manifest
@@ -1,3 +1,4 @@
DIST cookiecutter-2.3.1.tar.gz 273620 BLAKE2B 0f2122b0c9c46ece8da03d4431d4ace3bcb2541e91d050af940eac7cd617ed0643db4533c2f4d6709de0e0746417cff0a67d63e490f9c5aaeaff9cf239b97189 SHA512 aa93a40dd82f579ebef894a5ad55798e623809804b6d8322f6fa5787e86bd98b79ea81d16ad3e7bf67570f2449f20d4241e13673fc106e58b2111a10c712bb35
DIST cookiecutter-2.5.0.tar.gz 276288 BLAKE2B 8f294d39a385909cf9c23511eae2ad28783ff8da767e31744ded45e4ce15857039d913f5449523a20945328547263f4887d73d44a951b4b29b628fc1dc25c229 SHA512 87ab0d21d6bb98c96cad420a52e08aeebe9a47ee34801a423339453e0099c4eb35950e0180af94dd5dd9373a0292a23c6a5c3bde23d3345c06b059da1294c374
DIST cookiecutter-2.6.0.tar.gz 277486 BLAKE2B 967264bdf2b7f7ec7d2466d530e9ab6f689f88bb8537f833f76b952f4cbec07cfdf8c17c3f9690023f3687a8aab66ecb5dfe609e58ed933f1fcd2fc2174938f2 SHA512 619be103bb831cbe9c50c4fa5114d6151a462a29a233f8999305403dda449f90a5900940a2b9d98433a8cdd3dbad421afe6feded42f4bcb6ee83523570ed2c1e
+DIST cookiecutter-2.7.1.tar.gz 389154 BLAKE2B e7f548f6c9645f00b8843fe38504eccb6bcd8a71246f6a40e9ee3becca66d2f59361ece790896d085dd3d40eabc5878477aaed184a3415028d4bf20f759e2678 SHA512 b24a08a41b25b37f30771b28398743cb164eedd34385ccbd309ace7bb4946f6e981f1df4e79a21f990e659765207f00dffc86262db087f434cfcab46d7672de3
diff --git a/dev-util/cookiecutter/cookiecutter-2.7.1.ebuild b/dev-util/cookiecutter/cookiecutter-2.7.1.ebuild
new file mode 100644
index 000000000000..d45594fe3af4
--- /dev/null
+++ b/dev-util/cookiecutter/cookiecutter-2.7.1.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..14} )
+DISTUTILS_USE_PEP517=setuptools
+inherit distutils-r1
+
+DESCRIPTION="Command-line utility to create projects from cookiecutters (project templates)"
+HOMEPAGE="https://github.com/cookiecutter/cookiecutter"
+SRC_URI="https://github.com/cookiecutter/cookiecutter/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv ~x86"
+
+RDEPEND="
+ dev-python/arrow[${PYTHON_USEDEP}]
+ >=dev-python/binaryornot-0.4.4[${PYTHON_USEDEP}]
+ >=dev-python/click-7.0[${PYTHON_USEDEP}]
+ <dev-python/click-9.0.0[${PYTHON_USEDEP}]
+ >=dev-python/jinja2-2.7[${PYTHON_USEDEP}]
+ <dev-python/jinja2-4.0.0[${PYTHON_USEDEP}]
+ >=dev-python/pyyaml-5.3.1[${PYTHON_USEDEP}]
+ >=dev-python/python-slugify-4.0.0[${PYTHON_USEDEP}]
+ >=dev-python/requests-2.23.0[${PYTHON_USEDEP}]
+ dev-python/rich[${PYTHON_USEDEP}]
+"
+
+BDEPEND="
+ test? (
+ dev-python/freezegun[${PYTHON_USEDEP}]
+ dev-vcs/git
+ )
+"
+
+DOCS=( README.md AUTHORS.md CONTRIBUTING.md SECURITY.md )
+
+PATCHES=(
+ "${FILESDIR}/test_cli-1.7.2.patch"
+ "${FILESDIR}/build-backend-2.7.1.patch"
+)
+
+EPYTEST_PLUGINS=( pytest-mock )
+
+distutils_enable_tests pytest
+# TODO: Package sphinx-click
+# distutils_enable_sphinx docs \
+# dev-python/sphinx-rtd-theme \
+# dev-python/recommonmark
+
+python_test() {
+ epytest -o addopts=
+}
diff --git a/dev-util/cookiecutter/files/build-backend-2.7.1.patch b/dev-util/cookiecutter/files/build-backend-2.7.1.patch
new file mode 100644
index 000000000000..ec1efb0cd0d7
--- /dev/null
+++ b/dev-util/cookiecutter/files/build-backend-2.7.1.patch
@@ -0,0 +1,12 @@
+diff --git a/pyproject.toml b/pyproject.toml
+index 0e3c8d19d..8ab6fc952 100644
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -1,3 +1,7 @@
++[build-system]
++requires = ["setuptools", "wheel"]
++build-backend = "setuptools.build_meta"
++
+ [project]
+ name = "cookiecutter"
+ version = "2.7.1"
diff --git a/dev-util/ruff/Manifest b/dev-util/ruff/Manifest
index cd05b476bde6..ac849e8ab757 100644
--- a/dev-util/ruff/Manifest
+++ b/dev-util/ruff/Manifest
@@ -16,6 +16,9 @@ DIST ruff-0.15.6-crates.tar.xz 28141740 BLAKE2B 35a5f6f8052e31b41aa2b30bf51cb9b3
DIST ruff-0.15.6.gh.tar.gz 11238118 BLAKE2B 633cb6e811ed48a4fddc9db27a9b0eb61bcc9cfcc965d4314ad784fca8b5dccadda01239ca9115bf29a5a08fe527879307e1393bc959fad81eb18707672baa9b SHA512 1fbce9aca6a8f8599bbc09d0d2f3fc9513b6273e3e2b0d7bf9bd8c1b2b11d1e137e8f822dd05fda0033f2b17c3ebf20d9d595d63b930fbf9746e2f4f2ef4d6cb
DIST ruff-0.15.7-crates.tar.xz 27536700 BLAKE2B df3367d06df5d698b720b39fdc67f2fb014d77109169b487c72b0bc52f645d3e4989443c28490b1b2e9157348c8413242c98cd6f641ea6c68d8b2eb48e966591 SHA512 4ada88f705687e2b364c7f1e758834f14c6c322f23a6d49285ebc6b3534d4c5103a845991c4fd85fcfc2be7b445fc5801895486fd68002726409537523d3ef25
DIST ruff-0.15.7.gh.tar.gz 11275556 BLAKE2B 86bd8ba4ab15488d8eff99aed59a9f971a5afb9e66dd7f1c2d41897cfd5e15f94861dae6fbcba35267900f02c6670918c4d6a2e0e1d1e523595f0883204ab370 SHA512 4f72fd3e16781ff2029b7da813209ca86024c2b38545d1540890b9b1cfcba13bfd729f02202c1efd9414e27ebb5533ed5c641dd0ff6663467f6f7dd44a3a3023
+DIST ruff-0.15.8-crates.tar.xz 27533848 BLAKE2B 1f76cc4b0a8e8fd10ea8d8fc1919d6ceaf8bef3e6531b68f836800e9016ac2022d08a211bbe9ab43ef33c17df5fd62ee6cd845f93dece6dd88df3e567d13a84a SHA512 58399d4a87916cf8d6221bc26c43e594c9f78620b8e9ec38b9d467b0c1a5482e72678235e0e8dab4f335c1b90d4cf4504f0f92d647202d0bfc288dbedeaa16bf
+DIST ruff-0.15.8.gh.tar.gz 11339555 BLAKE2B 8bf1da708278459807ab120e17d762c128f7a10f5a6103881ca650b278eb938815f9ee9b2c22e755e1c38fd525269932138f5849dafdbdda930ec45e76273790 SHA512 868d8946a1f6d89f042a97a7cf21b99b4e56238a0020913e4a23a1cd3b617615ba556462a1dd7a6cf5cdae289d3fcc5291eedf0e7381a01b425f69d381dc799a
+DIST salsa-2f687a17ceea8ec7aaa605561ccbde938ccef086.gh.tar.gz 743865 BLAKE2B 8c0cf9e079e896e811708bf08ac0cb3817de21e0632c79e6a684bb10c87b13c760b72b13b2ec87457b2c7b1c36ff7870621f7b21933644f5e5fdbeca2505cab2 SHA512 8299b53c94ffa67dcd8fb903247469375c04efa6e581d4696576b02f5b325ca84f14b12c0b9f93a4792900983356613de489dbdab886b0396b74967b26bd114d
DIST salsa-3713cd7eb30821c0c086591832dd6f59f2af7fe7.gh.tar.gz 717350 BLAKE2B 3db412c1ce2953fdde9f182e9611d8dfe09b197be36c69ebf77344fbdf1efb542b94ca61c5cbcc39fdb3df8ec1e374d19e1e1116174f63f907e28b51f14f19cf SHA512 49bcdede05f7f681d075739b685e1807e978d8160374b2d6176246b90255d72c202205e7591af76ce362706793ca8c15f1a3854849c63b466313eaf363ad8c61
DIST salsa-53421c2fff87426fa0bb51cab06632b87646de13.gh.tar.gz 742301 BLAKE2B 90a53f87b823c360fce95c32fa573650892e40d4f7b260b52efa9bd96da903342ba5cd8adfffed34f168e546a9a1c140ecf22c80731d458cd8e06c84bd6c4d24 SHA512 4471203f3a2a6db0766ce2d426583f9c55277987200bf863c31b1ef09f9ede77091d47ad3a971ae2653d34a02cb2f79b5fb0e6da7a0860dca6636ebba1651ae6
DIST salsa-55e5e7d32fa3fc189276f35bb04c9438f9aedbd1.gh.tar.gz 731425 BLAKE2B ce720abaa295b46c7e1fa06a73e2ad9a48a6b9da7f2b4a91edba38a28bb9a63a1661886fc7c5d6dbc915f589f2e055731a544cdf18afb4dd7b3f6815c59e543b SHA512 91942cfc6bbfb7f07366cdd3d42e5296bff877ee723b24868ff3c278defd0ef247f03e957332bc0696553f0f1977a41c18d08efe7887f5bda3a1cb98543bddbd
diff --git a/dev-util/ruff/ruff-0.15.8.ebuild b/dev-util/ruff/ruff-0.15.8.ebuild
new file mode 100644
index 000000000000..2602ab360b37
--- /dev/null
+++ b/dev-util/ruff/ruff-0.15.8.ebuild
@@ -0,0 +1,118 @@
+# 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%'
+ [salsa-macro-rules]='https://github.com/salsa-rs/salsa;2f687a17ceea8ec7aaa605561ccbde938ccef086;salsa-%commit%/components/salsa-macro-rules'
+ [salsa-macros]='https://github.com/salsa-rs/salsa;2f687a17ceea8ec7aaa605561ccbde938ccef086;salsa-%commit%/components/salsa-macros'
+ [salsa]='https://github.com/salsa-rs/salsa;2f687a17ceea8ec7aaa605561ccbde938ccef086;salsa-%commit%'
+)
+
+RUST_MIN_VER="1.92"
+
+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[@]}"
+}