From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 28206158020 for ; Mon, 28 Nov 2022 04:13:02 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 251D8E0845; Mon, 28 Nov 2022 04:13:01 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id F24AEE0845 for ; Mon, 28 Nov 2022 04:13:00 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C11DE34116E for ; Mon, 28 Nov 2022 04:12:59 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 03D1D54C for ; Mon, 28 Nov 2022 04:12:58 +0000 (UTC) From: "Ionen Wolkens" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ionen Wolkens" Message-ID: <1669608714.b1ed87d16412d0c03ea0f8a8b54a312905aedaa7.ionen@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/ncnn/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-libs/ncnn/Manifest dev-libs/ncnn/ncnn-20221128.ebuild X-VCS-Directories: dev-libs/ncnn/ X-VCS-Committer: ionen X-VCS-Committer-Name: Ionen Wolkens X-VCS-Revision: b1ed87d16412d0c03ea0f8a8b54a312905aedaa7 X-VCS-Branch: master Date: Mon, 28 Nov 2022 04:12:58 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 8150c122-d080-435c-bf46-590c1e060dc1 X-Archives-Hash: 5f6c4acc11f5aefb7e03889062443def commit: b1ed87d16412d0c03ea0f8a8b54a312905aedaa7 Author: Ionen Wolkens gentoo org> AuthorDate: Mon Nov 28 03:56:44 2022 +0000 Commit: Ionen Wolkens gentoo org> CommitDate: Mon Nov 28 04:11:54 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b1ed87d1 dev-libs/ncnn: add 20221128 Signed-off-by: Ionen Wolkens gentoo.org> dev-libs/ncnn/Manifest | 1 + dev-libs/ncnn/ncnn-20221128.ebuild | 46 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+) diff --git a/dev-libs/ncnn/Manifest b/dev-libs/ncnn/Manifest index f134295a0be4..bdbfc2a835a6 100644 --- a/dev-libs/ncnn/Manifest +++ b/dev-libs/ncnn/Manifest @@ -1 +1,2 @@ DIST ncnn-20220729.tar.gz 12235306 BLAKE2B ff7a5866c8746c078dcc927773f695d883d0cbb9e528d80addf730dd31bc1a401df4c5ab33baa398d26d8072ed2d0fd21e6e89cb03ddeca3fb84dbcaff8fd696 SHA512 0df877ee42edc32faa6891c8b234fc21064b18c1dc8c612b43757daf5f912530f3d015c783e6e199c2884616a88137d10f9c899528000f25e9d0881f028a9586 +DIST ncnn-20221128.tar.gz 12398376 BLAKE2B 2495996964bcebc9991a25a3198045f009880660ce4e284ece541add84b9343b0ea2119b34eef602a3811523b88fe53bbfc3e8a564e5e731767b6e886c4136af SHA512 dce9c3b22e7ec032467bff9bfc2092572540d4a378537ef20b0e646b58eee247306d05e029c315291baf74d26208bedfc03efc92703081344f7630b26b21092b diff --git a/dev-libs/ncnn/ncnn-20221128.ebuild b/dev-libs/ncnn/ncnn-20221128.ebuild new file mode 100644 index 000000000000..7827bc56ee58 --- /dev/null +++ b/dev-libs/ncnn/ncnn-20221128.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +DESCRIPTION="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" + +LICENSE="BSD ZLIB" +SLOT="0/${PV}" # currently has unstable ABI that often requires rebuilds +KEYWORDS="~amd64 ~x86" +IUSE="tools +vulkan" + +# Need the static library to run tests + skip vulkan / GPU: +# -DNCNN_BUILD_TESTS=ON -DNCNN_SHARED_LIB=OFF -DNCNN_VULKAN=OFF +RESTRICT="test" + +RDEPEND=" + tools? ( dev-libs/protobuf:= ) + vulkan? ( + dev-util/glslang:= + media-libs/vulkan-loader + )" +DEPEND=" + ${RDEPEND} + vulkan? ( dev-util/vulkan-headers )" + +DOCS=( README.md docs/. ) + +src_configure() { + local mycmakeargs=( + -DGLSLANG_TARGET_DIR="${ESYSROOT}"/usr/$(get_libdir)/cmake + -DNCNN_BUILD_EXAMPLES=OFF + -DNCNN_BUILD_TOOLS=$(usex tools) + -DNCNN_PYTHON=OFF # todo if something needs it + -DNCNN_SHARED_LIB=ON + -DNCNN_SYSTEM_GLSLANG=ON + -DNCNN_VERSION=${PV} # avoids libncnn.so.*.%Y%m%d using build date + -DNCNN_VULKAN=$(usex vulkan) + ) + + cmake_src_configure +}