Gentoo Archives: gentoo-commits

From: Patrice Clement <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/sphinxcontrib-github-alt/files/, dev-python/sphinxcontrib-github-alt/
Date: Thu, 30 Nov 2017 14:47:08
Message-Id: 1512053175.369603eac4bd9fde844d7b4b2b70317f6041e1ce.monsieurp@gentoo
1 commit: 369603eac4bd9fde844d7b4b2b70317f6041e1ce
2 Author: Marius Brehler <marbre <AT> linux <DOT> sungazer <DOT> de>
3 AuthorDate: Mon Nov 20 08:29:11 2017 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Thu Nov 30 14:46:15 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=369603ea
7
8 dev-python/sphinxcontrib-github-alt: new package.
9
10 Link to GitHub issues, pull requests, commits and users for a particular
11 project.
12
13 Required to build the docs for jupyter_core.
14
15 It's called 'alt' because sphinxcontrib-github already exists. IPython &
16 Jupyter projects have been using the syntax defined in this extension for some
17 time before this made it into its own package.
18
19 Closes: https://bugs.gentoo.org/637990
20 Closes: https://bugs.gentoo.org/638200
21 Closes: https://github.com/gentoo/gentoo/pull/6246
22 Package-Manager: Portage-2.3.13, Repoman-2.3.3
23
24 dev-python/sphinxcontrib-github-alt/Manifest | 1 +
25 .../sphinxcontrib-github-alt-1.0-init.py.patch | 8 +++++
26 .../sphinxcontrib-github-alt-1.0-setup.py.patch | 19 ++++++++++++
27 dev-python/sphinxcontrib-github-alt/metadata.xml | 20 ++++++++++++
28 .../sphinxcontrib-github-alt-1.0.ebuild | 36 ++++++++++++++++++++++
29 5 files changed, 84 insertions(+)
30
31 diff --git a/dev-python/sphinxcontrib-github-alt/Manifest b/dev-python/sphinxcontrib-github-alt/Manifest
32 new file mode 100644
33 index 00000000000..5743847e204
34 --- /dev/null
35 +++ b/dev-python/sphinxcontrib-github-alt/Manifest
36 @@ -0,0 +1 @@
37 +DIST sphinxcontrib-github-alt-1.0.tar.gz 3213 SHA256 721efe70ec7ab9be12a929af01242147e1d4a05921103d38c0bc207db3b70aae SHA512 57f5ab3a5d679634ce0c2ea8c78069f37ed5a5d3c32fe6cf61851ed4a9e8b6b9b6c882f486eb84914153b4121dacc25fd4b11edee111630001ae9bc324f2250e WHIRLPOOL a0e470f10a51e4f592dd441a58d13c5f1ada87e09840e44c768240863615128a4ac9e9ec700a3553145fefb28faddedecf61522194dbe823cfea762b02da1ff5
38
39 diff --git a/dev-python/sphinxcontrib-github-alt/files/sphinxcontrib-github-alt-1.0-init.py.patch b/dev-python/sphinxcontrib-github-alt/files/sphinxcontrib-github-alt-1.0-init.py.patch
40 new file mode 100644
41 index 00000000000..e4274fd429a
42 --- /dev/null
43 +++ b/dev-python/sphinxcontrib-github-alt/files/sphinxcontrib-github-alt-1.0-init.py.patch
44 @@ -0,0 +1,8 @@
45 +__init__.py for sphinxcontrib_github_alt by Marius Brehler.
46 +
47 +Patch by Marius Brehler <marbrbre@××××××××××××××.de>.
48 +--- /dev/null
49 ++++ b/sphinxcontrib_github_alt/__init__.py
50 +@@ -0,0 +1 @@
51 ++from .sphinxcontrib_github_alt import *
52 +\ No newline at end of file
53
54 diff --git a/dev-python/sphinxcontrib-github-alt/files/sphinxcontrib-github-alt-1.0-setup.py.patch b/dev-python/sphinxcontrib-github-alt/files/sphinxcontrib-github-alt-1.0-setup.py.patch
55 new file mode 100644
56 index 00000000000..2bc518c2caf
57 --- /dev/null
58 +++ b/dev-python/sphinxcontrib-github-alt/files/sphinxcontrib-github-alt-1.0-setup.py.patch
59 @@ -0,0 +1,19 @@
60 +setup.py for sphinxcontrib_github_alt by Marius Brehler <marbre@××××××××××××××.de>.
61 +
62 +Patch by Marius Brehler <marbrbre@××××××××××××××.de>.
63 +--- /dev/null
64 ++++ b/setup.py
65 +@@ -0,0 +1,12 @@
66 ++from distutils.core import setup
67 ++
68 ++setup(name='sphinxcontrib_github_alt',
69 ++ version='1.0',
70 ++ author='Jupyter Development Team',
71 ++ author_email='jupyter@××××××××××××.com',
72 ++ url='https://github.com/jupyter/sphinxcontrib_github_alt',
73 ++ packages=['sphinxcontrib_github_alt'],
74 ++ classifiers=[
75 ++ 'License :: OSI Approved :: BSD License'
76 ++ ]
77 ++)
78 +\ No newline at end of file
79
80 diff --git a/dev-python/sphinxcontrib-github-alt/metadata.xml b/dev-python/sphinxcontrib-github-alt/metadata.xml
81 new file mode 100644
82 index 00000000000..33f8e973dab
83 --- /dev/null
84 +++ b/dev-python/sphinxcontrib-github-alt/metadata.xml
85 @@ -0,0 +1,20 @@
86 +<?xml version="1.0" encoding="UTF-8"?>
87 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
88 +<pkgmetadata>
89 + <maintainer type="person">
90 + <email>marbre@××××××××××××××.de</email>
91 + <name>Marius Brehler</name>
92 + </maintainer>
93 + <maintainer type="project">
94 + <email>proxy-maint@g.o</email>
95 + <name>Gentoo Proxy Maintainers Project</name>
96 + </maintainer>
97 + <maintainer type="project">
98 + <email>sci@g.o</email>
99 + <name>Gentoo Science Project</name>
100 + </maintainer>
101 + <upstream>
102 + <remote-id type="github">jupyter/sphinxcontrib_github_alt</remote-id>
103 + <remote-id type="pypi">sphinxcontrib_github_alt</remote-id>
104 + </upstream>
105 +</pkgmetadata>
106
107 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
108 new file mode 100644
109 index 00000000000..f34c1f9ae53
110 --- /dev/null
111 +++ b/dev-python/sphinxcontrib-github-alt/sphinxcontrib-github-alt-1.0.ebuild
112 @@ -0,0 +1,36 @@
113 +# Copyright 1999-2017 Gentoo Foundation
114 +# Distributed under the terms of the GNU General Public License v2
115 +
116 +EAPI=6
117 +
118 +PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
119 +
120 +inherit distutils-r1
121 +
122 +MY_PN="sphinxcontrib_github_alt"
123 +
124 +DESCRIPTION="Link to GitHub issues, pull requests, commits and users from Sphinx docs"
125 +HOMEPAGE="https://github.com/jupyter/sphinxcontrib_github_alt"
126 +SRC_URI="https://github.com/jupyter/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
127 +
128 +LICENSE="BSD-2"
129 +SLOT="0"
130 +KEYWORDS="~amd64 ~x86"
131 +
132 +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
133 +RDEPEND="
134 + dev-python/sphinx[${PYTHON_USEDEP}]
135 + dev-python/docutils[${PYTHON_USEDEP}]"
136 +
137 +PATCHES=(
138 + "${FILESDIR}/${P}"-setup.py.patch
139 + "${FILESDIR}/${P}"-init.py.patch
140 +)
141 +
142 +S="${WORKDIR}/${MY_PN}-${PV}"
143 +
144 +python_prepare_all() {
145 + distutils-r1_python_prepare_all
146 +
147 + mv "${WORKDIR}/${MY_PN}-${PV}"/sphinxcontrib_github_alt.py "${WORKDIR}/${MY_PN}-${PV}/${MY_PN}/" || die
148 +}