summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPiotr Karbowski <slashbeast@gentoo.org>2022-12-04 10:55:32 +0100
committerPiotr Karbowski <slashbeast@gentoo.org>2022-12-04 10:55:32 +0100
commite8812cf3de296cbf347557b4df493ba7dfd744e6 (patch)
treea43393867807f9539b74b050dd4a018782c98219 /media-gfx
parentvirtual/imap-c-client: keyword 2 for ~loong (diff)
downloadgentoo-e8812cf3de296cbf347557b4df493ba7dfd744e6.tar.gz
gentoo-e8812cf3de296cbf347557b4df493ba7dfd744e6.tar.bz2
gentoo-e8812cf3de296cbf347557b4df493ba7dfd744e6.zip
media-gfx/realesrgan-ncnn-vulkan: new default model; added missing model.
Closes: https://bugs.gentoo.org/883447 Signed-off-by: Piotr Karbowski <slashbeast@gentoo.org>
Diffstat (limited to 'media-gfx')
-rw-r--r--media-gfx/realesrgan-ncnn-vulkan/Manifest2
-rw-r--r--media-gfx/realesrgan-ncnn-vulkan/realesrgan-ncnn-vulkan-0.2.0.ebuild56
2 files changed, 1 insertions, 57 deletions
diff --git a/media-gfx/realesrgan-ncnn-vulkan/Manifest b/media-gfx/realesrgan-ncnn-vulkan/Manifest
index 82a91a75b8ae..c83810c8caea 100644
--- a/media-gfx/realesrgan-ncnn-vulkan/Manifest
+++ b/media-gfx/realesrgan-ncnn-vulkan/Manifest
@@ -1,2 +1,2 @@
-DIST Real-ESRGAN-v0.2.5.0-models.tar.xz 39195532 BLAKE2B 3ff956be8a4a8890cc7b42f9e5f9e12d769f83f918762b75fd3d31e4659b793eca8d107b89fb39b8d601d14775f448ef35de3e9f437d51efb841a910fb56f88b SHA512 f1ede62854d76b6bf2278e074a21893ad4010a8327fb6744bc4af63717a0dfa342f618bfa916886f6e05a31e71feed3c1244395572688d6d531feec08431aace
DIST realesrgan-ncnn-vulkan-0.2.0.tar.gz 138744 BLAKE2B ec74388e789efbf6ea82a88428ff5745aa65d38b3d490b80858f91e21ff0f50333f791dadf2a626a4bee1ca88c808e41a413afce1f85d5a82aa824ecab673838 SHA512 5c845ad2fbea45eba1899582f3ca69bea679107cc4b3c49a94649b5a954117269a5b7d65ffeb8943531c71fff2ca749c06d0e3e0fd9c155ad3196f48c548d7cd
+DIST realesrgan-ncnn-vulkan-models.tar.xz 69216524 BLAKE2B ed9a1f019a48b81828221eb1cad38d0a710dfae15a13729276b040aed33bba0d326906fb0e9e162ce0ea4dc6f1bbcae92c08c4479fc3b09e854c2d5718b62c04 SHA512 4ac10f031688b18ac0920a0d848520a1fe4818a4141914ab4f4d36505abb271f4dbc538b41c3bc34586d7485773d86df2446c4af41f6d00cf4b140975ce21eda
diff --git a/media-gfx/realesrgan-ncnn-vulkan/realesrgan-ncnn-vulkan-0.2.0.ebuild b/media-gfx/realesrgan-ncnn-vulkan/realesrgan-ncnn-vulkan-0.2.0.ebuild
deleted file mode 100644
index 71a046f87d9e..000000000000
--- a/media-gfx/realesrgan-ncnn-vulkan/realesrgan-ncnn-vulkan-0.2.0.ebuild
+++ /dev/null
@@ -1,56 +0,0 @@
-# Copyright 1999-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit cmake
-
-DESCRIPTION="NCNN implementation of Real-ESRGAN"
-HOMEPAGE="https://github.com/xinntao/Real-ESRGAN-ncnn-vulkan"
-SRC_URI="
- https://github.com/xinntao/Real-ESRGAN-ncnn-vulkan/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
- https://dev.gentoo.org/~slashbeast/distfiles/${PN}/Real-ESRGAN-v0.2.5.0-models.tar.xz
-"
-
-LICENSE="MIT BSD"
-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"
-
-S="${WORKDIR}/Real-ESRGAN-ncnn-vulkan-${PV}"
-
-src_prepare() {
- rm -rf "src/libwebp" "src/ncnn"
-
- CMAKE_USE_DIR=${S}/src
- cmake_src_prepare
-
- # Update all paths to match installation for models.
- sed "s%PATHSTR(\"models\")%PATHSTR(\"${EPREFIX}/usr/share/${PN}/models\")%g" \
- -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}"/realesrgan-ncnn-vulkan
-
- insinto /usr/share/${PN}/models
- doins -r ../models/.
-}