diff options
author | 2016-06-08 19:45:07 +0300 | |
---|---|---|
committer | 2016-06-11 21:37:29 -0400 | |
commit | d342c320f6f9818b7b8e507796c8a02e53001b9f (patch) | |
tree | 74a70f0b1b76d5fe64bd6d53ebc16a06f3c53bd3 /dev-python/enzyme/enzyme-0.4.1-r2.ebuild | |
parent | qt5-build.eclass: switch to using system proxy settings by default (diff) | |
download | gentoo-d342c320f6f9818b7b8e507796c8a02e53001b9f.tar.gz gentoo-d342c320f6f9818b7b8e507796c8a02e53001b9f.tar.bz2 gentoo-d342c320f6f9818b7b8e507796c8a02e53001b9f.zip |
dev-python/enzyme: add missing PYTHON_REQ_USE
Closes: https://github.com/gentoo/gentoo/pull/1630
Package-Manager: portage-2.3.0_rc1
Diffstat (limited to 'dev-python/enzyme/enzyme-0.4.1-r2.ebuild')
-rw-r--r-- | dev-python/enzyme/enzyme-0.4.1-r2.ebuild | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/dev-python/enzyme/enzyme-0.4.1-r2.ebuild b/dev-python/enzyme/enzyme-0.4.1-r2.ebuild new file mode 100644 index 000000000000..d834698562d5 --- /dev/null +++ b/dev-python/enzyme/enzyme-0.4.1-r2.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +PYTHON_COMPAT=( python{2_7,3_3,3_4} ) +PYTHON_REQ_USE='xml(+)' + +inherit distutils-r1 + +DESCRIPTION="Python video metadata parser" +HOMEPAGE="https://github.com/Diaoul/enzyme https://pypi.python.org/pypi/enzyme" +SRC_URI=" + mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz + test? ( mirror://sourceforge/matroska/test_files/matroska_test_w1_1.zip ) +" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" + +RDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" +DEPEND="${RDEPEND} + test? ( + app-arch/unzip + dev-python/pyyaml[${PYTHON_USEDEP}] + dev-python/requests[${PYTHON_USEDEP}] + ) +" + +python_prepare_all() { + if use test; then + mkdir enzyme/tests/test_{parsers,mkv} || die + ln -s "${WORKDIR}"/test* enzyme/tests/test_parsers/ || die + ln -s "${WORKDIR}"/test* enzyme/tests/test_mkv/ || die + fi + + distutils-r1_python_prepare_all +} + +python_test() { + esetup.py test +} |