From 0f56202eb57b2889775aa3fe4ad1eae88ee59a56 Mon Sep 17 00:00:00 2001 From: Alfredo Tupone Date: Mon, 1 Jan 2024 11:25:26 +0100 Subject: sci-libs/NNPACK: PythonCompatUpdate Signed-off-by: Alfredo Tupone --- sci-libs/NNPACK/NNPACK-2020.12.22-r1.ebuild | 57 ----------------------------- sci-libs/NNPACK/NNPACK-2020.12.22-r2.ebuild | 57 +++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+), 57 deletions(-) delete mode 100644 sci-libs/NNPACK/NNPACK-2020.12.22-r1.ebuild create mode 100644 sci-libs/NNPACK/NNPACK-2020.12.22-r2.ebuild (limited to 'sci-libs') diff --git a/sci-libs/NNPACK/NNPACK-2020.12.22-r1.ebuild b/sci-libs/NNPACK/NNPACK-2020.12.22-r1.ebuild deleted file mode 100644 index f5318ec8a18d..000000000000 --- a/sci-libs/NNPACK/NNPACK-2020.12.22-r1.ebuild +++ /dev/null @@ -1,57 +0,0 @@ -# Copyright 2022-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{9..11} ) -inherit cmake python-any-r1 - -CommitId=c07e3a0400713d546e0dea2d5466dd22ea389c73 - -DESCRIPTION="acceleration package for neural network computations" -HOMEPAGE="https://github.com/Maratyszcza/NNPACK/" -SRC_URI="https://github.com/Maratyszcza/${PN}/archive/${CommitId}.tar.gz - -> ${P}.tar.gz" - -LICENSE="BSD-2" -SLOT="0" -KEYWORDS="~amd64" -IUSE=test -RESTRICT="test" # consuming too much CPU - -RDEPEND=" - dev-libs/pthreadpool - dev-libs/cpuinfo -" -DEPEND="${RDEPEND} - dev-libs/FP16 - dev-libs/FXdiv - dev-libs/psimd -" -BDEPEND=" - ${PYTHON_DEPS} - test? ( dev-cpp/gtest ) - $(python_gen_any_dep ' - dev-python/PeachPy[${PYTHON_USEDEP}] - ') -" - -S="${WORKDIR}"/${PN}-${CommitId} - -PATCHES=( "${FILESDIR}"/${P}-gentoo.patch ) - -python_check_deps() { - python_has_version "dev-python/PeachPy[${PYTHON_USEDEP}]" -} - -src_prepare() { - sed -i -e "/-O/d" CMakeLists.txt || die - cmake_src_prepare -} - -src_configure() { - local mycmakeargs=( - -DNNPACK_BUILD_TESTS=$(usex test ON OFF) - ) - cmake_src_configure -} diff --git a/sci-libs/NNPACK/NNPACK-2020.12.22-r2.ebuild b/sci-libs/NNPACK/NNPACK-2020.12.22-r2.ebuild new file mode 100644 index 000000000000..0a02ea5ce21e --- /dev/null +++ b/sci-libs/NNPACK/NNPACK-2020.12.22-r2.ebuild @@ -0,0 +1,57 @@ +# Copyright 2022-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{9..12} ) +inherit cmake python-any-r1 + +CommitId=c07e3a0400713d546e0dea2d5466dd22ea389c73 + +DESCRIPTION="acceleration package for neural network computations" +HOMEPAGE="https://github.com/Maratyszcza/NNPACK/" +SRC_URI="https://github.com/Maratyszcza/${PN}/archive/${CommitId}.tar.gz + -> ${P}.tar.gz" + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~amd64" +IUSE=test +RESTRICT="test" # consuming too much CPU + +RDEPEND=" + dev-libs/pthreadpool + dev-libs/cpuinfo +" +DEPEND="${RDEPEND} + dev-libs/FP16 + dev-libs/FXdiv + dev-libs/psimd +" +BDEPEND=" + ${PYTHON_DEPS} + test? ( dev-cpp/gtest ) + $(python_gen_any_dep ' + dev-python/PeachPy[${PYTHON_USEDEP}] + ') +" + +S="${WORKDIR}"/${PN}-${CommitId} + +PATCHES=( "${FILESDIR}"/${P}-gentoo.patch ) + +python_check_deps() { + python_has_version "dev-python/PeachPy[${PYTHON_USEDEP}]" +} + +src_prepare() { + sed -i -e "/-O/d" CMakeLists.txt || die + cmake_src_prepare +} + +src_configure() { + local mycmakeargs=( + -DNNPACK_BUILD_TESTS=$(usex test ON OFF) + ) + cmake_src_configure +} -- cgit v1.2.3-65-gdbad