From: Louis Sautier Date: Sat, 30 Apr 2016 00:52:27 +0000 (+0200) Subject: dev-python/rst-linker: new package, initial version 1.6 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=0ed3a70d8815055f0306b70db1eb87254c7afeb8;p=gentoo.git dev-python/rst-linker: new package, initial version 1.6 required to build dev-python/irc's doc Package-Manager: portage-2.2.28 Closes: https://github.com/gentoo/gentoo/pull/1376 Signed-off-by: Ian Delaney --- diff --git a/dev-python/rst-linker/Manifest b/dev-python/rst-linker/Manifest new file mode 100644 index 000000000000..1f4355d30687 --- /dev/null +++ b/dev-python/rst-linker/Manifest @@ -0,0 +1 @@ +DIST rst.linker-1.6.tar.gz 6439 SHA256 e1eab99dba26c4562f1a034bd0122f84035f0e54750b20ca1e017ed225c66a2e SHA512 f2511f2bef0ef90b9b9bcda11542e768d242cde5d617f17bec1c23cb21819510703033c63b3dda2cacae73a605de2d8930512e040c6703dd881b4dc0d7022baf WHIRLPOOL c097a20d3bd3f3cdc7aeade9a586818a47ad282877d47999de6aaa240595849b127ef84ee25e677bcfc21ce9b4b99e3e7fe7b71d8571ba465d0854b1961350c2 diff --git a/dev-python/rst-linker/metadata.xml b/dev-python/rst-linker/metadata.xml new file mode 100644 index 000000000000..a5311664a46f --- /dev/null +++ b/dev-python/rst-linker/metadata.xml @@ -0,0 +1,17 @@ + + + + + sautier.louis@gmail.com + Louis Sautier + + + proxy-maint@gentoo.org + Proxy Maintainers + + + rst.linker + jaraco/rst.linker + https://github.com/jaraco/rst.linker/issues + + diff --git a/dev-python/rst-linker/rst-linker-1.6.ebuild b/dev-python/rst-linker/rst-linker-1.6.ebuild new file mode 100644 index 000000000000..a4919e0f42c8 --- /dev/null +++ b/dev-python/rst-linker/rst-linker-1.6.ebuild @@ -0,0 +1,48 @@ +# 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_4,3_5} ) + +inherit distutils-r1 + +MY_PN="${PN/-/.}" +DESCRIPTION="Sphinx plugin to add links and timestamps to the changelog" +HOMEPAGE="https://github.com/jaraco/rst.linker" +SRC_URI="mirror://pypi/${PN:0:1}/${MY_PN}/${MY_PN}-${PV}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc test" + +RDEPEND=" + dev-python/python-dateutil[${PYTHON_USEDEP}] + dev-python/six[${PYTHON_USEDEP}] +" +DEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + >=dev-python/setuptools_scm-1.9[${PYTHON_USEDEP}] + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) + test? ( + >=dev-python/pytest-2.8[${PYTHON_USEDEP}] + dev-python/pytest-runner[${PYTHON_USEDEP}] + ) +" + +S="${WORKDIR}/${MY_PN}-${PV}" + +python_compile_all() { + use doc && esetup.py build_sphinx +} + +python_test() { + py.test || die "tests failed with ${EPYTHON}" +} + +python_install_all() { + use doc && local HTML_DOCS=( "${BUILD_DIR}"/sphinx/html/. ) + distutils-r1_python_install_all +}