1 |
commit: 71d3f5fd003758cf77e3f3e3845b9ecc947a670d |
2 |
Author: Louis Sautier <sautier.louis <AT> gmail <DOT> com> |
3 |
AuthorDate: Mon May 2 12:58:59 2016 +0000 |
4 |
Commit: Ian Delaney <idella4 <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue May 3 03:41:44 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=71d3f5fd |
7 |
|
8 |
app-text/pelican: add support to py3.5 |
9 |
|
10 |
Add build / install of docs, uncomment & update test phase, bump EAPI to 6 |
11 |
|
12 |
Package-Manager: portage-2.2.28 |
13 |
Closes: https://github.com/gentoo/gentoo/pull/1393 |
14 |
|
15 |
Signed-off-by: Ian Delaney <idella4 <AT> gentoo.org> |
16 |
|
17 |
app-text/pelican/pelican-3.6.3.ebuild | 35 ++++++++++++++++++++++++----------- |
18 |
1 file changed, 24 insertions(+), 11 deletions(-) |
19 |
|
20 |
diff --git a/app-text/pelican/pelican-3.6.3.ebuild b/app-text/pelican/pelican-3.6.3.ebuild |
21 |
index d77fa36..e655459 100644 |
22 |
--- a/app-text/pelican/pelican-3.6.3.ebuild |
23 |
+++ b/app-text/pelican/pelican-3.6.3.ebuild |
24 |
@@ -2,8 +2,8 @@ |
25 |
# Distributed under the terms of the GNU General Public License v2 |
26 |
# $Id$ |
27 |
|
28 |
-EAPI=5 |
29 |
-PYTHON_COMPAT=( python{2_7,3_3,3_4} ) |
30 |
+EAPI=6 |
31 |
+PYTHON_COMPAT=( python{2_7,3_3,3_4,3_5} ) |
32 |
|
33 |
inherit distutils-r1 |
34 |
|
35 |
@@ -14,7 +14,9 @@ SRC_URI="https://github.com/getpelican/pelican/archive/${PV}.tar.gz -> ${P}.tar. |
36 |
LICENSE="AGPL-3" |
37 |
SLOT="0" |
38 |
KEYWORDS="~amd64 ~x86" |
39 |
-IUSE="examples markdown" |
40 |
+IUSE="doc examples markdown test" |
41 |
+# Tests fail for this release but are fixed upstream |
42 |
+RESTRICT="test" |
43 |
|
44 |
DEPEND=">=dev-python/feedgenerator-1.6[${PYTHON_USEDEP}] |
45 |
>=dev-python/jinja-2.7[${PYTHON_USEDEP}] |
46 |
@@ -25,19 +27,30 @@ DEPEND=">=dev-python/feedgenerator-1.6[${PYTHON_USEDEP}] |
47 |
dev-python/blinker[${PYTHON_USEDEP}] |
48 |
>=dev-python/six-1.4[${PYTHON_USEDEP}] |
49 |
dev-python/python-dateutil[${PYTHON_USEDEP}] |
50 |
- markdown? ( dev-python/markdown[${PYTHON_USEDEP}] )" |
51 |
+ doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) |
52 |
+ markdown? ( dev-python/markdown[${PYTHON_USEDEP}] ) |
53 |
+ test? ( |
54 |
+ dev-python/nose[${PYTHON_USEDEP}] |
55 |
+ dev-python/markdown[${PYTHON_USEDEP}] |
56 |
+ )" |
57 |
RDEPEND="" |
58 |
|
59 |
DOCS=( README.rst ) |
60 |
|
61 |
+python_compile_all() { |
62 |
+ use doc && emake -C docs html |
63 |
+} |
64 |
+ |
65 |
python_install_all() { |
66 |
- use examples && local EXAMPLES=( samples/. ) |
67 |
+ use doc && local HTML_DOCS=( docs/_build/html/. ) |
68 |
+ if use examples; then |
69 |
+ insinto "/usr/share/doc/${PF}" |
70 |
+ docompress -x "/usr/share/doc/${PF}/samples" |
71 |
+ doins -r samples |
72 |
+ fi |
73 |
distutils-r1_python_install_all |
74 |
} |
75 |
|
76 |
-# no tests: tests/content not in tarball for 2.8.1 |
77 |
-# for 3.0, should be based on tox (refer to virtualenvwrapper) |
78 |
- |
79 |
-#python_test() { |
80 |
-# esetup.py test |
81 |
-#} |
82 |
+python_test() { |
83 |
+ nosetests || die "Testing failed with ${EPYTHON}" |
84 |
+} |