summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarius Brehler <marbre@linux.sungazer.de>2017-11-20 09:29:11 +0100
committerPatrice Clement <monsieurp@gentoo.org>2017-11-30 15:46:15 +0100
commit369603eac4bd9fde844d7b4b2b70317f6041e1ce (patch)
treebcecd09a26c818cf24ff27fedb96a3b703a739b8 /dev-python/sphinxcontrib-github-alt/sphinxcontrib-github-alt-1.0.ebuild
parentdev-tex/biblatex: drop old. (diff)
downloadgentoo-369603eac4bd9fde844d7b4b2b70317f6041e1ce.tar.gz
gentoo-369603eac4bd9fde844d7b4b2b70317f6041e1ce.tar.bz2
gentoo-369603eac4bd9fde844d7b4b2b70317f6041e1ce.zip
dev-python/sphinxcontrib-github-alt: new package.
Link to GitHub issues, pull requests, commits and users for a particular project. Required to build the docs for jupyter_core. It's called 'alt' because sphinxcontrib-github already exists. IPython & Jupyter projects have been using the syntax defined in this extension for some time before this made it into its own package. Closes: https://bugs.gentoo.org/637990 Closes: https://bugs.gentoo.org/638200 Closes: https://github.com/gentoo/gentoo/pull/6246 Package-Manager: Portage-2.3.13, Repoman-2.3.3
Diffstat (limited to 'dev-python/sphinxcontrib-github-alt/sphinxcontrib-github-alt-1.0.ebuild')
-rw-r--r--dev-python/sphinxcontrib-github-alt/sphinxcontrib-github-alt-1.0.ebuild36
1 files changed, 36 insertions, 0 deletions
diff --git a/dev-python/sphinxcontrib-github-alt/sphinxcontrib-github-alt-1.0.ebuild b/dev-python/sphinxcontrib-github-alt/sphinxcontrib-github-alt-1.0.ebuild
new file mode 100644
index 00000000000..f34c1f9ae53
--- /dev/null
+++ b/dev-python/sphinxcontrib-github-alt/sphinxcontrib-github-alt-1.0.ebuild
@@ -0,0 +1,36 @@
+# 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} )
+
+inherit distutils-r1
+
+MY_PN="sphinxcontrib_github_alt"
+
+DESCRIPTION="Link to GitHub issues, pull requests, commits and users from Sphinx docs"
+HOMEPAGE="https://github.com/jupyter/sphinxcontrib_github_alt"
+SRC_URI="https://github.com/jupyter/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
+RDEPEND="
+ dev-python/sphinx[${PYTHON_USEDEP}]
+ dev-python/docutils[${PYTHON_USEDEP}]"
+
+PATCHES=(
+ "${FILESDIR}/${P}"-setup.py.patch
+ "${FILESDIR}/${P}"-init.py.patch
+)
+
+S="${WORKDIR}/${MY_PN}-${PV}"
+
+python_prepare_all() {
+ distutils-r1_python_prepare_all
+
+ mv "${WORKDIR}/${MY_PN}-${PV}"/sphinxcontrib_github_alt.py "${WORKDIR}/${MY_PN}-${PV}/${MY_PN}/" || die
+}