# Copyright 1999-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=5 AUTOTOOLS_AUTORECONF=1 PYTHON_COMPAT=( python{3_2,3_3,3_4} ) inherit autotools-utils python-r1 DESCRIPTION="A video processing framework with simplicity in mind" HOMEPAGE="http://www.vapoursynth.com/" if [[ ${PV} == *9999* ]]; then inherit git-r3 EGIT_REPO_URI="https://github.com/${PN}/${PN}.git" else SRC_URI="https://github.com/${PN}/${PN}/archive/R${PV}.tar.gz" S=${WORKDIR}/${PN}-R${PV} fi LICENSE="LGPL-2.1" SLOT="0" KEYWORDS="" IUSE="+ffmpegsource doc" REQUIRED_USE="${PYTHON_REQUIRED_USE}" RDEPEND="${PYTHON_DEPS} dev-lang/yasm dev-python/cython virtual/ffmpeg media-libs/libass ffmpegsource? ( media-libs/ffmpegsource ) doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )" DEPEND="${RDEPEND}" src_compile() { autotools-utils_src_compile use doc && emake -C doc html } src_install() { use doc && HTML_DOCS=("${S}/doc/_build/html") autotools-utils_src_install # Symlink to to vapoursynth-directory to enable plugin autoloading. use ffmpegsource && dosym "${EPREFIX}"/usr/$(get_libdir)/libffms2.so "${EPREFIX}"/usr/$(get_libdir)/vapoursynth/libffms2.so }