media-video/vapoursynth-waifu2x-ncnn-vulkan - 5 (tatsh-overlay)

Search

Install

Install this version:

emerge -a =media-video/vapoursynth-waifu2x-ncnn-vulkan-5

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =media-video/vapoursynth-waifu2x-ncnn-vulkan-5

Or alternatively:

emerge --autounmask-write -a =media-video/vapoursynth-waifu2x-ncnn-vulkan-5

Package Information

Description:
Waifu2x filter for VapourSynth
Homepage:
https://github.com/nlzy/vapoursynth-waifu2x-ncnn-vulkan
License:
MIT

Ebuild Details

Version EAPI Keywords Slot
5 8 ~amd64 0
View Raw Ebuild
# Copyright 2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit cmake

DESCRIPTION="Waifu2x filter for VapourSynth"
HOMEPAGE="https://github.com/nlzy/vapoursynth-waifu2x-ncnn-vulkan"
SRC_URI="https://github.com/nlzy/${PN}/archive/refs/tags/r${PV}.tar.gz -> ${P}.tar.gz
	https://github.com/nlzy/vapoursynth-waifu2x-ncnn-vulkan/releases/download/r0.1/models.7z -> ${P}-models.7z"
S="${WORKDIR}/${PN}-r${PV}"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"

DEPEND="dev-libs/ncnn:= media-libs/vulkan-loader media-video/vapoursynth"
RDEPEND="${DEPEND}"
BDEPEND="app-arch/7zip"

PATCHES=( "${FILESDIR}/${PN}-0001-system-deps.patch" )

src_unpack() {
	local archive
	for archive in ${A}; do
		case "${archive}" in
			*.7z)
			7z -bb0 -y -bd x "${DISTDIR}/${archive}"
			;;
			*)
			unpack "${archive}"
			;;
		esac
	done
}

src_install() {
	cmake_src_install
	insinto "/usr/$(get_libdir)/vapoursynth"
	doins -r "${WORKDIR}/models"-{cunet,upconv_7_anime_style_art_rgb,upconv_7_photo}
}

Inherited Eclasses

Dependencies

DEPEND

dev-libs/ncnn:= media-libs/vulkan-loader media-video/vapoursynth

RDEPEND

dev-libs/ncnn:= media-libs/vulkan-loader media-video/vapoursynth

BDEPEND

app-arch/7zip

Manifest for 5

Type File Size Source URLs
DIST vapoursynth-waifu2x-ncnn-vulkan-5-models.7z 32544347 bytes https://github.com/nlzy/vapoursynth-waifu2x-ncnn-vulkan/releases/download/r0.1/models.7z
DIST vapoursynth-waifu2x-ncnn-vulkan-5.tar.gz 10501 bytes https://github.com/nlzy/vapoursynth-waifu2x-ncnn-vulkan/archive/refs/tags/r5.tar.gz