diff options
Diffstat (limited to 'sci-libs/QNNPACK/QNNPACK-2019.08.28-r1.ebuild')
-rw-r--r-- | sci-libs/QNNPACK/QNNPACK-2019.08.28-r1.ebuild | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/sci-libs/QNNPACK/QNNPACK-2019.08.28-r1.ebuild b/sci-libs/QNNPACK/QNNPACK-2019.08.28-r1.ebuild new file mode 100644 index 000000000000..aa539b84c440 --- /dev/null +++ b/sci-libs/QNNPACK/QNNPACK-2019.08.28-r1.ebuild @@ -0,0 +1,47 @@ +# Copyright 2022-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +inherit cmake + +CommitId=7d2a4e9931a82adc3814275b6219a03e24e36b4c + +DESCRIPTION="Quantized Neural Networks PACKage" +HOMEPAGE="https://github.com/pytorch/QNNPACK/" +SRC_URI="https://github.com/pytorch/${PN}/archive/${CommitId}.tar.gz + -> ${P}.tar.gz" + +S="${WORKDIR}"/${PN}-${CommitId} + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64" +IUSE="static-libs test" + +RDEPEND=" + dev-libs/cpuinfo + dev-libs/pthreadpool +" +DEPEND="${RDEPEND} + dev-libs/FP16 + dev-libs/FXdiv + dev-libs/clog +" + +BDEPEND="test? ( dev-cpp/gtest )" +RESTRICT="!test? ( test )" +REQUIRED_USE="test? ( static-libs )" + +PATCHES=( + "${FILESDIR}"/${P}-gentoo.patch +) + +src_configure() { + local mycmakeargs=( + -DQNNPACK_BUILD_BENCHMARKS=OFF + -DQNNPACK_BUILD_TESTS=$(usex test ON OFF) + -DQNNPACK_LIBRARY_TYPE=$(usex static-libs static shared) + ) + + cmake_src_configure +} |