summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIonen Wolkens <sudinave@gmail.com>2021-05-29 03:41:02 -0400
committerPiotr Karbowski <slashbeast@gentoo.org>2021-05-31 21:30:38 +0200
commitc35faad78b2246722aaa2f170968e3e5c1d319ed (patch)
tree3c10377515c801e5a634ababf1c80175121c2b9c /media-gfx/waifu2x-ncnn-vulkan
parentmedia-gfx/waifu2x-ncnn-vulkan: add myself as co-maint (diff)
downloadgentoo-c35faad78b2246722aaa2f170968e3e5c1d319ed.tar.gz
gentoo-c35faad78b2246722aaa2f170968e3e5c1d319ed.tar.bz2
gentoo-c35faad78b2246722aaa2f170968e3e5c1d319ed.zip
media-gfx/waifu2x-ncnn-vulkan: add 20210521
ebuild updates: - let sed update more paths + help text, also add EPREFIX and die - run einstalldocs for readme Signed-off-by: Ionen Wolkens <sudinave@gmail.com> Signed-off-by: Piotr Karbowski <slashbeast@gentoo.org>
Diffstat (limited to 'media-gfx/waifu2x-ncnn-vulkan')
-rw-r--r--media-gfx/waifu2x-ncnn-vulkan/Manifest1
-rw-r--r--media-gfx/waifu2x-ncnn-vulkan/waifu2x-ncnn-vulkan-20210521.ebuild52
2 files changed, 53 insertions, 0 deletions
diff --git a/media-gfx/waifu2x-ncnn-vulkan/Manifest b/media-gfx/waifu2x-ncnn-vulkan/Manifest
index 4c997c4459b7..c9b7a26945c8 100644
--- a/media-gfx/waifu2x-ncnn-vulkan/Manifest
+++ b/media-gfx/waifu2x-ncnn-vulkan/Manifest
@@ -2,3 +2,4 @@ DIST waifu2x-ncnn-vulkan-20200224.tar.gz 34063828 BLAKE2B 9fa00abd31f0d81dd785be
DIST waifu2x-ncnn-vulkan-20200414.tar.gz 34063752 BLAKE2B eb52cc3cf857bdb428497acf8721d51abd6e067b4ae2f126833dfcf8402eae118cfa112b310b366e3e945b871b8c3306e5d826426c43e66b6e1055729644f222 SHA512 c0c5d40fdbf0b643b589d5bca5460ec59fbf38ede33af510c4b30b3211f18cd44d665980a11c13ee922cacf7a05d89b076078bcb8fa59c0523ad6b985a804d97
DIST waifu2x-ncnn-vulkan-20200818.tar.gz 34073325 BLAKE2B 125c0b975e6aab20fc20563c1edc669a4741779366f9aff20d0f695f56f29d0e1728c1fd1130cdaf4adb6a2c8dad348e262580702519004581b2055ae38ac315 SHA512 6f40885fd91cde3206198da3bf2103d1867a8f35549340cc697819dea2b3e06932203a95a7fda2c636658b40fdc1d3f0f4c4e3e13ba142f9a8ad8475ff1b8f58
DIST waifu2x-ncnn-vulkan-20210210.tar.gz 34076481 BLAKE2B 821b59d5e681caf4bbdeb0e3576a6df0e257a0f8fdc68c3f4152c5f35cb2d288245051dce874e009af6556b4c7e4fffe1fa261872baf2493e056a78c847acc0d SHA512 56ed4dfda71054f3ebfd6c4c11bcb9351a676ace8405cdc309bd16d18eb65ad0fd230fb943a0ba1dcb3afdb517e7f86bf6df2eadff6e754d296304135cd885be
+DIST waifu2x-ncnn-vulkan-20210521.tar.gz 34076523 BLAKE2B d04c3ac1152be899292730fe06f317c92f1334ea3f91cc6208444574c271d401152b4432bf5293f7193f0c318ca1685145754dd78ad0a8523aefa0fd56d40b4a SHA512 b1a0202a94deb9faadda34c5d46bceabec7ee00960676ca98090af4101bb63648fdc266cc608bfc621a3ec65c8c5f9503a02a4db4e51e9b2048d574c7a7f368a
diff --git a/media-gfx/waifu2x-ncnn-vulkan/waifu2x-ncnn-vulkan-20210521.ebuild b/media-gfx/waifu2x-ncnn-vulkan/waifu2x-ncnn-vulkan-20210521.ebuild
new file mode 100644
index 000000000000..3079c5c096f0
--- /dev/null
+++ b/media-gfx/waifu2x-ncnn-vulkan/waifu2x-ncnn-vulkan-20210521.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+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"
+
+# Pin dev-libs/ncnn near bundled copy until more stable.
+RDEPEND="
+ ~dev-libs/ncnn-20210525[vulkan]
+ dev-util/glslang
+ media-libs/libwebp:=
+ media-libs/vulkan-loader"
+DEPEND="
+ ${RDEPEND}
+ dev-util/vulkan-headers"
+
+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
+}