From b96ea139e1d9fdf014fab6482fb859689a9599bf Mon Sep 17 00:00:00 2001 From: Piotr Karbowski Date: Sun, 26 Apr 2020 21:57:20 +0200 Subject: [PATCH] dev-libs/ncnn-20200413: version bump. Tests disabled due to fact that they actually uses real GPU, which is bad on itself, and libsnadbox does not allow it too. Closes: https://bugs.gentoo.org/716154 Signed-off-by: Piotr Karbowski --- dev-libs/ncnn/Manifest | 1 + dev-libs/ncnn/ncnn-20200413.ebuild | 37 ++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 dev-libs/ncnn/ncnn-20200413.ebuild diff --git a/dev-libs/ncnn/Manifest b/dev-libs/ncnn/Manifest index bc627b79369d..093df946f8a4 100644 --- a/dev-libs/ncnn/Manifest +++ b/dev-libs/ncnn/Manifest @@ -1 +1,2 @@ DIST ncnn-20200226.tar.gz 10363010 BLAKE2B 3f5e22ecffc7d36d7babb8c316eb95785f60b2938672cc2fc4a56ae8e4cc79fef8d498032117998a1813b4a5491b4b99f6941ac41be3fe8d6c6e3276ae46396e SHA512 e91694692e2c48ba4b404b26b382939be62c61e8452a09b8c1cdad351adcda1ea8bd19ded671f6c4c6cf979ccc49c181dd47e501a351fe89ecdf17a5395b3fab +DIST ncnn-20200413.tar.gz 10520160 BLAKE2B 10fc59f3a09d1a6b21a6c73b87dabd450279d2c30923b15266461360c6a63b7cc58f91e33c6563752161de3ca067098ed4f2d22963410fe3f72a8affbd39172e SHA512 3f3610f94cbfa6072347857675865b3b21e4cb330a3b889214e7e8cf6e7a558451979ee4ba727c28fc5919a38b27d3b0288dfbd1bfa06d92d3677b4035b019fd diff --git a/dev-libs/ncnn/ncnn-20200413.ebuild b/dev-libs/ncnn/ncnn-20200413.ebuild new file mode 100644 index 000000000000..efda01091014 --- /dev/null +++ b/dev-libs/ncnn/ncnn-20200413.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake + +DESCRIPTION="A high-performance neural network inference framework" +HOMEPAGE="https://github.com/Tencent/ncnn" + +SRC_URI="https://github.com/Tencent/ncnn/archive/${PV}.tar.gz -> ${P}.tar.gz" +KEYWORDS="~amd64 ~x86" + +LICENSE="BSD" +SLOT="0" +IUSE="" + +DEPEND=" + dev-util/glslang + dev-util/vulkan-headers + media-libs/vulkan-loader" + +RDEPEND="${DEPEND}" +BDEPEND="" + +RESTRICT=test # Tests tries to use real GPU. + +src_configure() { + local mycmakeargs=( + -DCMAKE_TOOLCHAIN_FILE="${S}/toolchains/host.gcc.toolchain.cmake" + -DNCNN_BUILD_EXAMPLES=OFF + -DNCNN_BUILD_TOOLS=OFF + -DNCNN_VULKAN=ON + ) + + cmake_src_configure +} -- 2.26.2