From be94ae04eee564451203d45977c2ef7c7ace1580 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 10 Nov 2024 03:03:09 +0000 Subject: gentoo auto-resync : 10:11:2024 - 03:03:09 --- dev-python/blake3/Manifest | 2 +- dev-python/blake3/blake3-0.4.1-r1.ebuild | 144 +++++++++++++++++++++++++++++++ dev-python/blake3/blake3-0.4.1.ebuild | 139 ----------------------------- 3 files changed, 145 insertions(+), 140 deletions(-) create mode 100644 dev-python/blake3/blake3-0.4.1-r1.ebuild delete mode 100644 dev-python/blake3/blake3-0.4.1.ebuild (limited to 'dev-python/blake3') diff --git a/dev-python/blake3/Manifest b/dev-python/blake3/Manifest index fdddf2b57378..4664279ca236 100644 --- a/dev-python/blake3/Manifest +++ b/dev-python/blake3/Manifest @@ -46,5 +46,5 @@ DIST windows_i686_msvc-0.48.5.crate 864300 BLAKE2B 3d3ea8be55e2d6ced0eeda18abe1d DIST windows_x86_64_gnu-0.48.5.crate 801619 BLAKE2B aa7e7e6a6ff9f9553ada3a0a39a9aa798e9d995a8eef36e0b6fdb2a0db93ddecee5548970575271fe43aec74797a420d0ee231d503b5bad1bd999059261e0e33 SHA512 1d6056fae430b3d042bdff3c6217c76be4b8b9f5dada9bad06beaac2db7d7ab9b0a82e44f498ec88e61afa73e99f56d84d445dc3847732b9ce5d947e08485f74 DIST windows_x86_64_gnullvm-0.48.5.crate 418486 BLAKE2B 12a2199d434617c1df1a839e9f435620ad64b40c579f6d0c3677553ad7a48e5765d12c266b04946402e15c92cff2e4ac4979ce2130750ef426e2672119680284 SHA512 c016d5b5e73832b61ff67929d92fa8c16e154656294357266ad29ce1f44db4ca2d2935dba31a6b571187dc838b1d22f1e3b41fefffd1d719a338439adf1646aa DIST windows_x86_64_msvc-0.48.5.crate 798412 BLAKE2B 8abc0721e2fb337fe17c91d278947d36122d9045b839ba0cf3e690202d242265b676f23cc301da5f9d98c56ca4ecb76f7d6f072ee71bf986a1deca87020b90e5 SHA512 fa1c5cd14ca2ff0082e2504cf59d317dc4dc6f7138d35c12f95d4476a9c13d8b7f5537d0ee251eee7c99411ad31b22263171b7fbd391daa5d3ea3488ceaa61a0 -EBUILD blake3-0.4.1.ebuild 2589 BLAKE2B e09c3851a68efc939f7dccd348637d80347c3ade032c3dfe783f93ef41d620bfcaa7fc5d2b7453e37c8597e5c417294c48ec5d1d155bef498aa2d3cec4863904 SHA512 2f890bd37deb01ba1ddf9db8c4e333851ed3b0a9374375d5b19d2fb8ef4f4de9adac114fa801edb658f99f35841110cda3acb0e0b7f3ecbe91a07ebf7b69f09d +EBUILD blake3-0.4.1-r1.ebuild 2671 BLAKE2B e8a0e281aec152866250f2def3ef54c6c4daa4db80db7f16c101828253f18343c4bb4493d15c0abea12252ee5e8d7220a588691113f07b1a61bacff153ee78e7 SHA512 615c35fa70dd809cf26b9cbe16a521ca82b47d535dd41ca6532c58d8482f6e99b167cb58ca918c2c1559d36e95c1392407f98d869d11159a65bef7183b51a14f MISC metadata.xml 520 BLAKE2B ce0ade2fa2cfcc2a4d9139c7394b7af0c1b2289fef2586c3834b6f8a937ecb6cf0a70ebcf68a56dc77ee40e13c3d7f7fd0bf225d306b216eb4938a42d8968585 SHA512 1d54955a5a465d28d671b92eb3511b34959b1f49a0b083c16726c03bb8d36c4ab615415c47c42e1a5a2502a3731d5f3da253cd933da3ca7b8b773d1cac949ed9 diff --git a/dev-python/blake3/blake3-0.4.1-r1.ebuild b/dev-python/blake3/blake3-0.4.1-r1.ebuild new file mode 100644 index 000000000000..c09028b90ccb --- /dev/null +++ b/dev-python/blake3/blake3-0.4.1-r1.ebuild @@ -0,0 +1,144 @@ +# Copyright 2022-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +CARGO_OPTIONAL=1 +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=standalone +PYTHON_COMPAT=( python3_{10..13} ) + +CRATES=" + arrayref@0.3.7 + arrayvec@0.7.4 + autocfg@1.1.0 + bitflags@1.3.2 + blake3@1.5.0 + cc@1.0.83 + cfg-if@1.0.0 + constant_time_eq@0.3.0 + crossbeam-deque@0.8.5 + crossbeam-epoch@0.9.18 + crossbeam-utils@0.8.19 + either@1.9.0 + heck@0.4.1 + hex@0.4.3 + indoc@2.0.4 + libc@0.2.153 + lock_api@0.4.11 + memmap2@0.7.1 + memoffset@0.9.0 + once_cell@1.19.0 + parking_lot@0.12.1 + parking_lot_core@0.9.9 + proc-macro2@1.0.78 + pyo3-build-config@0.20.2 + pyo3-ffi@0.20.2 + pyo3-macros-backend@0.20.2 + pyo3-macros@0.20.2 + pyo3@0.20.2 + quote@1.0.35 + rayon-core@1.12.1 + rayon@1.8.1 + redox_syscall@0.4.1 + scopeguard@1.2.0 + smallvec@1.13.1 + syn@2.0.48 + target-lexicon@0.12.13 + unicode-ident@1.0.12 + unindent@0.2.3 + windows-targets@0.48.5 + windows_aarch64_gnullvm@0.48.5 + windows_aarch64_msvc@0.48.5 + windows_i686_gnu@0.48.5 + windows_i686_msvc@0.48.5 + windows_x86_64_gnu@0.48.5 + windows_x86_64_gnullvm@0.48.5 + windows_x86_64_msvc@0.48.5 +" + +inherit cargo distutils-r1 + +MY_P=blake3-py-${PV} +DESCRIPTION="Python bindings for the BLAKE3 cryptographic hash function" +HOMEPAGE=" + https://github.com/oconnor663/blake3-py/ + https://pypi.org/project/blake3/ +" +SRC_URI=" + https://github.com/oconnor663/blake3-py/archive/${PV}.tar.gz + -> ${MY_P}.gh.tar.gz + rust? ( + ${CARGO_CRATE_URIS} + ) +" +S=${WORKDIR}/${MY_P} + +LICENSE=" + || ( CC0-1.0 Apache-2.0 ) + rust? ( +" +# Dependent crate licenses +LICENSE+=" + Apache-2.0-with-LLVM-exceptions BSD-2 MIT Unicode-DFS-2016 + || ( Apache-2.0 CC0-1.0 ) +" +LICENSE+=" + ) +" +SLOT="0" +KEYWORDS="~amd64" +IUSE="+rust" + +BDEPEND=" + rust? ( + ${RUST_DEPEND} + dev-util/maturin[${PYTHON_USEDEP}] + ) + !rust? ( + dev-python/setuptools[${PYTHON_USEDEP}] + dev-python/wheel[${PYTHON_USEDEP}] + ) + test? ( + dev-python/numpy[${PYTHON_USEDEP}] + ) +" + +QA_FLAGS_IGNORED="usr/lib.*/py.*/site-packages/blake3/blake3.*.so" + +distutils_enable_tests pytest + +pkg_setup() { + distutils-r1_pkg_setup + use rust && cargo_pkg_setup +} + +src_unpack() { + use rust && cargo_src_unpack +} + +src_prepare() { + local PATCHES=( + # https://github.com/oconnor663/blake3-py/pull/44 + "${FILESDIR}/${P}-gcc14.patch" + ) + + # sed the package name and version to improve compatibility + sed -e 's:blake3_experimental_c:blake3:' \ + -e "s:0[.]0[.]1:${PV}:" \ + -i c_impl/setup.py || die + + distutils-r1_src_prepare +} + +python_compile() { + local DISTUTILS_USE_PEP517=$(usex rust maturin setuptools) + + if ! use rust; then + cd c_impl || die + fi + distutils-r1_python_compile + if ! use rust; then + cd - >/dev/null || die + fi +} diff --git a/dev-python/blake3/blake3-0.4.1.ebuild b/dev-python/blake3/blake3-0.4.1.ebuild deleted file mode 100644 index 169408721d16..000000000000 --- a/dev-python/blake3/blake3-0.4.1.ebuild +++ /dev/null @@ -1,139 +0,0 @@ -# Copyright 2022-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -CARGO_OPTIONAL=1 -DISTUTILS_EXT=1 -DISTUTILS_USE_PEP517=standalone -PYTHON_COMPAT=( python3_{10..13} ) - -CRATES=" - arrayref@0.3.7 - arrayvec@0.7.4 - autocfg@1.1.0 - bitflags@1.3.2 - blake3@1.5.0 - cc@1.0.83 - cfg-if@1.0.0 - constant_time_eq@0.3.0 - crossbeam-deque@0.8.5 - crossbeam-epoch@0.9.18 - crossbeam-utils@0.8.19 - either@1.9.0 - heck@0.4.1 - hex@0.4.3 - indoc@2.0.4 - libc@0.2.153 - lock_api@0.4.11 - memmap2@0.7.1 - memoffset@0.9.0 - once_cell@1.19.0 - parking_lot@0.12.1 - parking_lot_core@0.9.9 - proc-macro2@1.0.78 - pyo3-build-config@0.20.2 - pyo3-ffi@0.20.2 - pyo3-macros-backend@0.20.2 - pyo3-macros@0.20.2 - pyo3@0.20.2 - quote@1.0.35 - rayon-core@1.12.1 - rayon@1.8.1 - redox_syscall@0.4.1 - scopeguard@1.2.0 - smallvec@1.13.1 - syn@2.0.48 - target-lexicon@0.12.13 - unicode-ident@1.0.12 - unindent@0.2.3 - windows-targets@0.48.5 - windows_aarch64_gnullvm@0.48.5 - windows_aarch64_msvc@0.48.5 - windows_i686_gnu@0.48.5 - windows_i686_msvc@0.48.5 - windows_x86_64_gnu@0.48.5 - windows_x86_64_gnullvm@0.48.5 - windows_x86_64_msvc@0.48.5 -" - -inherit cargo distutils-r1 - -MY_P=blake3-py-${PV} -DESCRIPTION="Python bindings for the BLAKE3 cryptographic hash function" -HOMEPAGE=" - https://github.com/oconnor663/blake3-py/ - https://pypi.org/project/blake3/ -" -SRC_URI=" - https://github.com/oconnor663/blake3-py/archive/${PV}.tar.gz - -> ${MY_P}.gh.tar.gz - rust? ( - ${CARGO_CRATE_URIS} - ) -" -S=${WORKDIR}/${MY_P} - -LICENSE=" - || ( CC0-1.0 Apache-2.0 ) - rust? ( -" -# Dependent crate licenses -LICENSE+=" - Apache-2.0-with-LLVM-exceptions BSD-2 MIT Unicode-DFS-2016 - || ( Apache-2.0 CC0-1.0 ) -" -LICENSE+=" - ) -" -SLOT="0" -KEYWORDS="~amd64" -IUSE="+rust" - -BDEPEND=" - rust? ( - ${RUST_DEPEND} - dev-util/maturin[${PYTHON_USEDEP}] - ) - !rust? ( - dev-python/setuptools[${PYTHON_USEDEP}] - dev-python/wheel[${PYTHON_USEDEP}] - ) - test? ( - dev-python/numpy[${PYTHON_USEDEP}] - ) -" - -QA_FLAGS_IGNORED="usr/lib.*/py.*/site-packages/blake3/blake3.*.so" - -distutils_enable_tests pytest - -src_unpack() { - cargo_src_unpack -} - -src_prepare() { - local PATCHES=( - # https://github.com/oconnor663/blake3-py/pull/44 - "${FILESDIR}/${P}-gcc14.patch" - ) - - # sed the package name and version to improve compatibility - sed -e 's:blake3_experimental_c:blake3:' \ - -e "s:0[.]0[.]1:${PV}:" \ - -i c_impl/setup.py || die - - distutils-r1_src_prepare -} - -python_compile() { - local DISTUTILS_USE_PEP517=$(usex rust maturin setuptools) - - if ! use rust; then - cd c_impl || die - fi - distutils-r1_python_compile - if ! use rust; then - cd - >/dev/null || die - fi -} -- cgit v1.2.3