diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-python/m2r/m2r-0.1.6.ebuild |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/m2r/m2r-0.1.6.ebuild')
-rw-r--r-- | dev-python/m2r/m2r-0.1.6.ebuild | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/dev-python/m2r/m2r-0.1.6.ebuild b/dev-python/m2r/m2r-0.1.6.ebuild new file mode 100644 index 000000000000..d6d2a181ec75 --- /dev/null +++ b/dev-python/m2r/m2r-0.1.6.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy) + +inherit distutils-r1 + +DESCRIPTION="Markdown to reStructuredText converter" +HOMEPAGE="https://github.com/miyakogi/m2r https://pypi.python.org/pypi/m2r" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~x86" +IUSE="test" + +RDEPEND=" + dev-python/mistune[${PYTHON_USEDEP}] + dev-python/docutils[${PYTHON_USEDEP}] +" +DEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + test? ( $(python_gen_cond_dep 'dev-python/mock[${PYTHON_USEDEP}]' python2_7) ) + ${RDEPEND} +" + +#S=${WORKDIR}/${P} + +python_prepare_all() { + # fix a Q/A violation, trying to install the tests as an independant package + sed -e "s/packages=\['tests'\],/packages=[],/" -i setup.py + # remove duped old file in the tarball + rm "tests/test_r s.py" || die + # add missing test files + cp "${FILESDIR}/"test.md tests/ || die + cp "${FILESDIR}/"test.rst tests/ || die + cp "${FILESDIR}/"m2r.1 ./ || die + distutils-r1_python_prepare_all +} + +python_test() { + py.test -v || die "Tests failed with ${EPYTHON}" +} + +python_install_all() { + distutils-r1_python_install_all + doman m2r.1 +} |