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) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 1157B15800A for ; Wed, 16 Aug 2023 12:53:41 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3BE602BC017; Wed, 16 Aug 2023 12:53:40 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (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 1BA1B2BC017 for ; Wed, 16 Aug 2023 12:53:40 +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 E801433BF3B for ; Wed, 16 Aug 2023 12:53:38 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 3036EBE6 for ; Wed, 16 Aug 2023 12:53:37 +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: <1692190399.6ff9fa44828c457e0d390c54287828d60f617ef1.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-20230816.ebuild X-VCS-Directories: dev-libs/ncnn/ X-VCS-Committer: ionen X-VCS-Committer-Name: Ionen Wolkens X-VCS-Revision: 6ff9fa44828c457e0d390c54287828d60f617ef1 X-VCS-Branch: master Date: Wed, 16 Aug 2023 12:53:37 +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: 49fe9588-4478-41cd-b74f-421428596105 X-Archives-Hash: 1141cdd976cdda6139a80bb8e5bdc48a commit: 6ff9fa44828c457e0d390c54287828d60f617ef1 Author: Ionen Wolkens gentoo org> AuthorDate: Wed Aug 16 12:53:12 2023 +0000 Commit: Ionen Wolkens gentoo org> CommitDate: Wed Aug 16 12:53:19 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6ff9fa44 dev-libs/ncnn: add 20230816 Signed-off-by: Ionen Wolkens gentoo.org> dev-libs/ncnn/Manifest | 1 + dev-libs/ncnn/ncnn-20230816.ebuild | 48 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+) diff --git a/dev-libs/ncnn/Manifest b/dev-libs/ncnn/Manifest index 40e8fccbfbd2..2f1a6a675e1e 100644 --- a/dev-libs/ncnn/Manifest +++ b/dev-libs/ncnn/Manifest @@ -1 +1,2 @@ DIST ncnn-20230517.tar.gz 12569535 BLAKE2B eefb6c2aab6ee97a258c8b7eaad749b7bf9712f8d03a0398b57b6e6e6b3e42357de64db0fe4ce244391dd9f495f576bc27704ab7ed810cd130b1d710ffdd75ef SHA512 e4d125a6590a3ac290376a7a5d7790d9eb145bd69cbb7c4d8b28ff7e1b05b1dfe8513d84f0199c681976d54c1904546ef536db14f39fbb0d8cb68ed5061f58b9 +DIST ncnn-20230816.tar.gz 12628885 BLAKE2B 0dcc563d28d6e3e6784c3db3a6d434af478b294d1f79109026172264de7006116f8eefbf10f4f136dc9447488c0555b42f8336c57460c71e74c267229a2e7aab SHA512 687dcf508eac2a0ecceb479e693f5fbfde3ed68ddd1ddaae954037c7d777a9662f3d2082d7c9b09b116751086d01af63f480f8200ca4f6ca1ea6ffe613a1c7f5 diff --git a/dev-libs/ncnn/ncnn-20230816.ebuild b/dev-libs/ncnn/ncnn-20230816.ebuild new file mode 100644 index 000000000000..0b1be09cd2b0 --- /dev/null +++ b/dev-libs/ncnn/ncnn-20230816.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2023 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/refs/tags/${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 +}