# Copyright 1999-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=5 AUTOTOOLS_AUTORECONF=1 # Out of source build broken due to hardcoded paths. AUTOTOOLS_IN_SOURCE_BUILD=1 inherit autotools-utils DESCRIPTION="Port of tritical's nnedi3 filter for vapoursynth." HOMEPAGE="https://github.com/dubhater/vapoursynth-nnedi3" if [[ ${PV} == *9999* ]]; then inherit git-r3 EGIT_REPO_URI="https://github.com/dubhater/${PN}.git" else SRC_URI="https://github.com/dubhater/${PN}/archive/v${PV}.tar.gz" fi LICENSE="GPL-2" SLOT="0" KEYWORDS="" IUSE="" REQUIRED_USE="${PYTHON_REQUIRED_USE}" RDEPEND="dev-lang/yasm media-libs/vapoursynth media-libs/vapoursynth-fmtconv" DEPEND="${RDEPEND}" src_prepare() { epatch ${FILESDIR}/vapoursynth-nnedi3-NX.patch autotools-utils_src_prepare } src_install() { autotools-utils_src_install dodoc readme.rst # Symlink to to vapoursynth-directory to enable plugin autoloading. dosym "${EPREFIX}"/usr/$(get_libdir)/libnnedi3.so "${EPREFIX}"/usr/$(get_libdir)/vapoursynth/libnnedi3.so }