# Copyright 1999-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=5 DESCRIPTION="2D/3D frequency domain denoiser." HOMEPAGE="https://github.com/HomeOfVapourSynthEvolution/VapourSynth-DFTTest" if [[ ${PV} == *9999* ]]; then inherit git-r3 EGIT_REPO_URI="https://github.com/HomeOfVapourSynthEvolution/VapourSynth-DFTTest.git" else SRC_URI="https://github.com/dubhater/vapoursynth-mvtools/archive/r${PV}.tar.gz" fi LICENSE="GPL-2" SLOT="0" KEYWORDS="" IUSE="" REQUIRED_USE="${PYTHON_REQUIRED_USE}" RDEPEND="sci-libs/fftw:3.0[threads] media-libs/vapoursynth" DEPEND="${RDEPEND}" src_configure() { # Custom configure script. sed -i 's/DEPLIBS="fftw3f"/DEPLIBS="fftw3f_threads"/' configure ./configure \ --install="${ED}"/usr/lib \ || die "configure failed" } src_install() { dodoc README.md emake install # Symlink to to vapoursynth-directory to enable plugin autoloading. dosym "${EPREFIX}"/usr/$(get_libdir)/libdfttest.so "${EPREFIX}"/usr/$(get_libdir)/vapoursynth/libdfttest.so }