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 82DAE158094 for ; Thu, 28 Jul 2022 14:36:03 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8FB9FE0839; Thu, 28 Jul 2022 14:36:02 +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 60C34E0839 for ; Thu, 28 Jul 2022 14:36:02 +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)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 35D3C33BEED for ; Thu, 28 Jul 2022 14:36:01 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id BA6E6545 for ; Thu, 28 Jul 2022 14:35:59 +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: <1659018894.dea41123b0bae6b23c485361468a8a245a8718d6.ionen@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/waifu2x-ncnn-vulkan/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-gfx/waifu2x-ncnn-vulkan/Manifest media-gfx/waifu2x-ncnn-vulkan/waifu2x-ncnn-vulkan-20220728.ebuild X-VCS-Directories: media-gfx/waifu2x-ncnn-vulkan/ X-VCS-Committer: ionen X-VCS-Committer-Name: Ionen Wolkens X-VCS-Revision: dea41123b0bae6b23c485361468a8a245a8718d6 X-VCS-Branch: master Date: Thu, 28 Jul 2022 14:35:59 +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: b9c3d8d6-250b-4862-88b0-75d488a503f9 X-Archives-Hash: 2762bef2d1a85336cb7f27e8ee2610e2 commit: dea41123b0bae6b23c485361468a8a245a8718d6 Author: Ionen Wolkens gentoo org> AuthorDate: Thu Jul 28 14:30:21 2022 +0000 Commit: Ionen Wolkens gentoo org> CommitDate: Thu Jul 28 14:34:54 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dea41123 media-gfx/waifu2x-ncnn-vulkan: bump the waifu to 20220728 Albeit no real changes given we're using system ncnn. Signed-off-by: Ionen Wolkens gentoo.org> media-gfx/waifu2x-ncnn-vulkan/Manifest | 1 + .../waifu2x-ncnn-vulkan-20220728.ebuild | 55 ++++++++++++++++++++++ 2 files changed, 56 insertions(+) diff --git a/media-gfx/waifu2x-ncnn-vulkan/Manifest b/media-gfx/waifu2x-ncnn-vulkan/Manifest index be06cc43ad75..3e3b89d6852f 100644 --- a/media-gfx/waifu2x-ncnn-vulkan/Manifest +++ b/media-gfx/waifu2x-ncnn-vulkan/Manifest @@ -1 +1,2 @@ DIST waifu2x-ncnn-vulkan-20220419.tar.gz 34076913 BLAKE2B 0a8355d5b940e6371c49bf3b981a0dd7508b07ecd4d944da2a8a1f0a1ea7c77f61747bbb025c033781f032292e55ccccfa2a3b72684243973d132da99ed09ebf SHA512 fbb6491dddaea9806300cf3f5a582e25d7c644084d61cae33bb38339ac3cf47af03866a1f9bc4bd30f9270b68a945760ebb58535a19b5855a4a0824138ddb513 +DIST waifu2x-ncnn-vulkan-20220728.tar.gz 34076924 BLAKE2B 6ed310d57af52286a288b151f67a989ac41f8e248b2ad5f05392781a429c9f0ff1d79e8816c8c464cb5686692c2b4fe5dc2d50c4fc713a4887d044ee3cfda199 SHA512 ea17cbbcb7318586793222c6c7139f67395c49c567b601969b829fc426eb517308509b7c1da69171fcbf8e68baa5cec3e52e98159e3c5e6c35ce47a8514dadb7 diff --git a/media-gfx/waifu2x-ncnn-vulkan/waifu2x-ncnn-vulkan-20220728.ebuild b/media-gfx/waifu2x-ncnn-vulkan/waifu2x-ncnn-vulkan-20220728.ebuild new file mode 100644 index 000000000000..640620c62e2e --- /dev/null +++ b/media-gfx/waifu2x-ncnn-vulkan/waifu2x-ncnn-vulkan-20220728.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +DESCRIPTION="waifu2x converter using ncnn and vulkan" +HOMEPAGE="https://github.com/nihui/waifu2x-ncnn-vulkan" +SRC_URI="https://github.com/nihui/waifu2x-ncnn-vulkan/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + dev-libs/ncnn:=[vulkan] + media-libs/libwebp:= + media-libs/vulkan-loader" +DEPEND=" + ${RDEPEND} + dev-util/glslang + dev-util/vulkan-headers" + +PATCHES=( + "${FILESDIR}"/${PN}-20210521-no-lto.patch +) + +src_prepare() { + CMAKE_USE_DIR=${S}/src + cmake_src_prepare + + # Update all paths to match installation for models. + sed "/PATHSTR\|model path/s|models-|${EPREFIX}/usr/share/${PN}/models-|" \ + -i src/main.cpp || die +} + +src_configure() { + local mycmakeargs=( + -DGLSLANG_TARGET_DIR="${ESYSROOT}"/usr/$(get_libdir)/cmake + -DUSE_SYSTEM_NCNN=ON + -DUSE_SYSTEM_WEBP=ON + ) + + cmake_src_configure +} + +src_install() { + dobin "${BUILD_DIR}"/waifu2x-ncnn-vulkan + + insinto /usr/share/${PN} + doins -r models/. + + einstalldocs +}