1 |
commit: 1c689827cddff915f65f0e6c289d97642a753a68 |
2 |
Author: Justin Lecher <jlec <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Oct 31 08:37:38 2015 +0000 |
4 |
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Oct 31 08:37:54 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1c689827 |
7 |
|
8 |
dev-python/enable: Backport fixes for doc building |
9 |
|
10 |
Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=564510 |
11 |
|
12 |
Package-Manager: portage-2.2.23 |
13 |
Signed-off-by: Justin Lecher <jlec <AT> gentoo.org> |
14 |
|
15 |
dev-python/enable/enable-4.5.1.ebuild | 2 ++ |
16 |
dev-python/enable/files/enable-4.5.1-doc.patch | 24 +++++++++++++++++ |
17 |
dev-python/enable/files/enable-4.5.1-version.patch | 31 ++++++++++++++++++++++ |
18 |
3 files changed, 57 insertions(+) |
19 |
|
20 |
diff --git a/dev-python/enable/enable-4.5.1.ebuild b/dev-python/enable/enable-4.5.1.ebuild |
21 |
index 300c03c3..2865b67 100644 |
22 |
--- a/dev-python/enable/enable-4.5.1.ebuild |
23 |
+++ b/dev-python/enable/enable-4.5.1.ebuild |
24 |
@@ -44,6 +44,8 @@ DISTUTILS_IN_SOURCE_BUILD=1 |
25 |
PATCHES=( |
26 |
"${FILESDIR}"/${PN}-4.4.1-swig.patch |
27 |
"${FILESDIR}"/${P}-gcc-5.patch |
28 |
+ "${FILESDIR}"/${P}-doc.patch |
29 |
+ "${FILESDIR}"/${P}-version.patch |
30 |
) |
31 |
|
32 |
python_prepare_all() { |
33 |
|
34 |
diff --git a/dev-python/enable/files/enable-4.5.1-doc.patch b/dev-python/enable/files/enable-4.5.1-doc.patch |
35 |
new file mode 100644 |
36 |
index 0000000..c9cc1ff |
37 |
--- /dev/null |
38 |
+++ b/dev-python/enable/files/enable-4.5.1-doc.patch |
39 |
@@ -0,0 +1,24 @@ |
40 |
+From 41134b03b96b741d95554846841c189313052265 Mon Sep 17 00:00:00 2001 |
41 |
+From: John Wiggins <jwiggins@×××××××××.com> |
42 |
+Date: Thu, 1 Oct 2015 20:40:07 +0200 |
43 |
+Subject: [PATCH] Read the docs version directly from enable._version |
44 |
+ |
45 |
+--- |
46 |
+ docs/source/conf.py | 4 ++-- |
47 |
+ 1 file changed, 2 insertions(+), 2 deletions(-) |
48 |
+ |
49 |
+diff --git a/docs/source/conf.py b/docs/source/conf.py |
50 |
+index 10b7552..995e315 100644 |
51 |
+--- a/docs/source/conf.py |
52 |
++++ b/docs/source/conf.py |
53 |
+@@ -41,8 +41,8 @@ |
54 |
+ # The default replacements for |version| and |release|, also used in various |
55 |
+ # other places throughout the built documents. |
56 |
+ d = {} |
57 |
+-execfile(os.path.join('..', '..', 'enable', '__init__.py'), d) |
58 |
+-version = release = d['__version__'] |
59 |
++execfile(os.path.join('..', '..', 'enable', '_version.py'), d) |
60 |
++version = release = d['full_version'] |
61 |
+ |
62 |
+ # There are two options for replacing |today|: either, you set today to some |
63 |
+ # non-false value, then it is used: |
64 |
|
65 |
diff --git a/dev-python/enable/files/enable-4.5.1-version.patch b/dev-python/enable/files/enable-4.5.1-version.patch |
66 |
new file mode 100644 |
67 |
index 0000000..1dd3fe4 |
68 |
--- /dev/null |
69 |
+++ b/dev-python/enable/files/enable-4.5.1-version.patch |
70 |
@@ -0,0 +1,31 @@ |
71 |
+From f91c824ebad74e8c23e62fe3390842c5fe322aee Mon Sep 17 00:00:00 2001 |
72 |
+From: itziakos <ioannist@×××××××××.com> |
73 |
+Date: Wed, 20 May 2015 22:52:42 +0100 |
74 |
+Subject: [PATCH] check the enable._version.py when installing from source |
75 |
+ |
76 |
+--- |
77 |
+ setup.py | 7 ++++--- |
78 |
+ 1 file changed, 4 insertions(+), 3 deletions(-) |
79 |
+ |
80 |
+diff --git a/setup.py b/setup.py |
81 |
+index f765f51..3328b93 100644 |
82 |
+--- a/setup.py |
83 |
++++ b/setup.py |
84 |
+@@ -92,13 +92,14 @@ def write_version_py(filename): |
85 |
+ fullversion = VERSION |
86 |
+ if os.path.exists('.git'): |
87 |
+ git_revision, dev_num = git_version() |
88 |
+- elif os.path.exists('kiva/_version.py'): |
89 |
++ # All packages are synced with the enable version |
90 |
++ elif os.path.exists('enable/_version.py'): |
91 |
+ # must be a source distribution, use existing version file |
92 |
+ try: |
93 |
+- from kiva._version import git_revision, full_version |
94 |
++ from enable._version import git_revision, full_version |
95 |
+ except ImportError: |
96 |
+ raise ImportError("Unable to import git_revision. Try removing " |
97 |
+- "kiva/_version.py and the build directory " |
98 |
++ "enable/_version.py and the build directory " |
99 |
+ "before building.") |
100 |
+ |
101 |
+ match = re.match(r'.*?\.dev(?P<dev_num>\d+)', full_version) |