# 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 libav/ffmpeg based source library for easy frame accurate access" 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="doc" REQUIRED_USE="${PYTHON_REQUIRED_USE}" RDEPEND="${PYTHON_DEPS} dev-lang/yasm dev-python/cython virtual/ffmpeg media-libs/libass 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 }