# Copyright 1999-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=5 PYTHON_COMPAT=( python{3_2,3_3,3_4} ) PYTHON_REQ_USE='threads(+)' # required by waf inherit waf-utils python-r1 DESCRIPTION="A deband library and filter for avisynth/vapoursynth" HOMEPAGE="https://github.com/SAPikachu/flash3kyuu_deband" WAF_V="1.8.4" if [[ ${PV} == *9999* ]]; then inherit git-r3 EGIT_REPO_URI="https://github.com/SAPikachu/flash3kyuu_deband.git" else SRC_URI="http://ftp.waf.io/pub/release/waf-${WAF_V}" SRC_URI+=" https://github.com/SAPikachu/flash3kyuu_deband/archive/${PV}.tar.gz" S=${WORKDIR}/flash3kyuu_deband-${PV} fi LICENSE="GPL-3" SLOT="0" KEYWORDS="" IUSE="" REQUIRED_USE="${PYTHON_REQUIRED_USE}" RDEPEND="${PYTHON_DEPS} media-libs/vapoursynth" DEPEND="${RDEPEND}" src_unpack() { if [[ ${PV} == *9999* ]]; then git-r3_src_unpack else default_src_unpack cp "${DISTDIR}"/waf-${WAF_V} "${S}"/waf || die chmod 0755 "${S}"/waf || die fi } src_configure() { python-setup waf-utils_src_configure "${mywafargs[@]}" sed -i -e 's:/sbin/ldconfig:/bin/true:g' ${S}/wscript } src_install() { waf-utils_src_install dodoc README.md # Symlink to to vapoursynth-directory to enable plugin autoloading. dosym "${EPREFIX}"/usr/$(get_libdir)/libf3kdb.so "${EPREFIX}"/usr/$(get_libdir)/vapoursynth/libf3kdb.so }