summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPiotr Karbowski <slashbeast@gentoo.org>2020-03-29 23:06:10 +0200
committerPiotr Karbowski <slashbeast@gentoo.org>2020-03-29 23:09:02 +0200
commit7d4385d40469295b6dd16befeb1e3c10d24b3cdd (patch)
tree3095b717837f6dd7e6d8e4655a6c5682013d46b8 /media-gfx/waifu2x-ncnn-vulkan
parentdev-libs/ncnn-20200226: new package. (diff)
downloadgentoo-7d4385d40469295b6dd16befeb1e3c10d24b3cdd.tar.gz
gentoo-7d4385d40469295b6dd16befeb1e3c10d24b3cdd.tar.bz2
gentoo-7d4385d40469295b6dd16befeb1e3c10d24b3cdd.zip
media-gfx/waifu2x-ncnn-vulkan-20200224: new package.
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/metadata.xml11
-rw-r--r--media-gfx/waifu2x-ncnn-vulkan/waifu2x-ncnn-vulkan-20200224.ebuild42
3 files changed, 54 insertions, 0 deletions
diff --git a/media-gfx/waifu2x-ncnn-vulkan/Manifest b/media-gfx/waifu2x-ncnn-vulkan/Manifest
new file mode 100644
index 000000000000..95bc6fda03e8
--- /dev/null
+++ b/media-gfx/waifu2x-ncnn-vulkan/Manifest
@@ -0,0 +1 @@
+DIST waifu2x-ncnn-vulkan-20200224.tar.gz 34063828 BLAKE2B 9fa00abd31f0d81dd785be5253e44f5bd4082ae9b2fcae747562eb6c577fd7cccdfeaf7421d09c54119fd36285dffcc68d2889ddc06d1a6ddf47ea418066367e SHA512 13531a186817da99efb60fc0b16d0d3f455d0f2d2c9b4b53ddaedf7c50f622b2e5385e4f5dd29668cf845444b39645f0b7e810ab5084aa1e3ca6dbaf424a4e13
diff --git a/media-gfx/waifu2x-ncnn-vulkan/metadata.xml b/media-gfx/waifu2x-ncnn-vulkan/metadata.xml
new file mode 100644
index 000000000000..7c9fd1249e8c
--- /dev/null
+++ b/media-gfx/waifu2x-ncnn-vulkan/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>slashbeast@gentoo.org</email>
+ <name>Piotr Karbowski</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">nihui/waifu2x-ncnn-vulkan</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/waifu2x-ncnn-vulkan/waifu2x-ncnn-vulkan-20200224.ebuild b/media-gfx/waifu2x-ncnn-vulkan/waifu2x-ncnn-vulkan-20200224.ebuild
new file mode 100644
index 000000000000..bd150b371ecd
--- /dev/null
+++ b/media-gfx/waifu2x-ncnn-vulkan/waifu2x-ncnn-vulkan-20200224.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2020 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"
+KEYWORDS="~amd64 ~x86"
+
+LICENSE="MIT"
+SLOT="0"
+IUSE=""
+
+
+DEPEND="
+ dev-libs/ncnn
+ media-libs/vulkan-loader"
+
+RDEPEND="${DEPEND}"
+BDEPEND=""
+
+#S="${WORKDIR}/${P}/src"
+CMAKE_USE_DIR="${S}/src"
+
+src_prepare() {
+ # Make finding models actually possible.
+ sed -i 's|path_t model = PATHSTR("models-cunet")|path_t model = PATHSTR("/usr/share/waifu2x-ncnn-vulkan/models-cunet")|' src/main.cpp\
+
+ cmake_src_prepare
+}
+
+src_install() {
+ dobin "${BUILD_DIR}"/waifu2x-ncnn-vulkan
+
+ insinto "/usr/share/${PN}"
+ doins -r models/*
+}
+