1 |
commit: 20c3a37648fae51560c0360ff53941db99501d12 |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Apr 29 16:26:00 2017 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Apr 29 16:26:44 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=20c3a376 |
7 |
|
8 |
dev-python/markdown: Version bump to 2.6.8 |
9 |
|
10 |
* EAPI 6 |
11 |
* Add py3.6 support |
12 |
* Only build docs when USE="doc" |
13 |
* Remove superfluous .txt files from |
14 |
generated documentation |
15 |
|
16 |
Package-Manager: Portage-2.3.5, Repoman-2.3.2 |
17 |
|
18 |
dev-python/markdown/Manifest | 1 + |
19 |
.../markdown-2.6.8-dont-build-docs-default.patch | 14 ++++++ |
20 |
dev-python/markdown/markdown-2.6.8.ebuild | 53 ++++++++++++++++++++++ |
21 |
3 files changed, 68 insertions(+) |
22 |
|
23 |
diff --git a/dev-python/markdown/Manifest b/dev-python/markdown/Manifest |
24 |
index 6c785bc7cf0..12364119a57 100644 |
25 |
--- a/dev-python/markdown/Manifest |
26 |
+++ b/dev-python/markdown/Manifest |
27 |
@@ -3,3 +3,4 @@ DIST Markdown-2.6.3.tar.gz 301441 SHA256 ad75fc03c45492eba3bc63645e1e6465f65523a |
28 |
DIST Markdown-2.6.4.tar.gz 301632 SHA256 e436eee7aaf2a230ca3315034dd39e8a0fc27036708acaa3dd70625ec62a94ce SHA512 5fc4ada494880871833046ef9a115385542002e6ec104847353fb2638fce6e46f2bb54ff37bd7d43eb100a448dc424ac425937cadc9ec1d81ea9e70887d8e460 WHIRLPOOL ca0d39b8cbbc124a5a6a4324d627c66d717e1f4c4c43c09d9ff208a23b56b6de79ed7b5cf9a57a2c598a3f40810d4691d42dcbf48690c58d13f38adb8e318490 |
29 |
DIST Markdown-2.6.5.tar.gz 301781 SHA256 8d94cf6273606f76753fcb1324623792b3738c7612c2b180c85cc5e88642e560 SHA512 d966136a7184ada4eec70af661aba441694a8c4f59e57d59a28dfbc1649ca1e90cc1e4a29b354b3caf35362e1e0c96eeb3f46c68f82d7a898b76c08866d459d3 WHIRLPOOL 752414989f7b3ba04f4f4d8b9f855c9d64f816c61b4d6333e1b3c15b2aadf6579f1b1f0a686ca3eccfc3fcdaac8007c6655a0f331d795a8a0b07ef83dda2465c |
30 |
DIST Markdown-2.6.6.tar.gz 302566 SHA256 9a292bb40d6d29abac8024887bcfc1159d7a32dc1d6f1f6e8d6d8e293666c504 SHA512 cbe9343130e5200f8b5a796e5b9948a27d2bc7896b664d6656827bc0b05abfa5204eefa5eed02afd361b58a72defcf237dc5fd3033586d4465d109b4429caaec WHIRLPOOL 79b46078b96d4bade5ac7bf2cc8f938d643392e8d49920a7767c74f4c7f44d11d00ac32c3f53494dfe75475666858b0480428b6dec69f1cfb05a54a9fcdedd82 |
31 |
+DIST Markdown-2.6.8.tar.gz 307330 SHA256 0ac8a81e658167da95d063a9279c9c1b2699f37c7c4153256a458b3a43860e33 SHA512 85c1a16ebb50af79f378eb2fa936342df6174a4f597a74fee6d0495ef2bc4c7c8337463799e427cb6788b3429e400309958b5c4784f536593047ab2e47ac7c23 WHIRLPOOL a7472b1feb23db0b6fbf8826979d1f82ad6e84dd6d33b66e4bfba9c2914ff10ec278d444aa8ab740d1d290cb1bd6682cb4f6e9cedf66c5cae8d0a5f96cfd4804 |
32 |
|
33 |
diff --git a/dev-python/markdown/files/markdown-2.6.8-dont-build-docs-default.patch b/dev-python/markdown/files/markdown-2.6.8-dont-build-docs-default.patch |
34 |
new file mode 100644 |
35 |
index 00000000000..65b7d21c559 |
36 |
--- /dev/null |
37 |
+++ b/dev-python/markdown/files/markdown-2.6.8-dont-build-docs-default.patch |
38 |
@@ -0,0 +1,14 @@ |
39 |
+Don't build docs by default, which causes issues when trying |
40 |
+to remove .txt files, as they will be readded on installing. |
41 |
+ |
42 |
+--- a/setup.py |
43 |
++++ b/setup.py |
44 |
+@@ -204,7 +204,7 @@ |
45 |
+ |
46 |
+ def initialize_options(self): |
47 |
+ build.initialize_options(self) |
48 |
+- self.no_build_docs = False |
49 |
++ self.no_build_docs = True |
50 |
+ |
51 |
+ def has_docs(self): |
52 |
+ return not self.no_build_docs |
53 |
|
54 |
diff --git a/dev-python/markdown/markdown-2.6.8.ebuild b/dev-python/markdown/markdown-2.6.8.ebuild |
55 |
new file mode 100644 |
56 |
index 00000000000..79a73dee4fd |
57 |
--- /dev/null |
58 |
+++ b/dev-python/markdown/markdown-2.6.8.ebuild |
59 |
@@ -0,0 +1,53 @@ |
60 |
+# Copyright 1999-2017 Gentoo Foundation |
61 |
+# Distributed under the terms of the GNU General Public License v2 |
62 |
+ |
63 |
+EAPI=6 |
64 |
+ |
65 |
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy pypy3 ) |
66 |
+ |
67 |
+inherit distutils-r1 |
68 |
+ |
69 |
+DESCRIPTION="Python implementation of the markdown markup language" |
70 |
+HOMEPAGE=" |
71 |
+ http://www.freewisdom.org/projects/python-markdown |
72 |
+ https://pypi.python.org/pypi/Markdown |
73 |
+ https://pythonhosted.org/Markdown/ |
74 |
+ https://github.com/waylan/Python-Markdown" |
75 |
+SRC_URI="mirror://pypi/M/${PN^}/${P^}.tar.gz" |
76 |
+ |
77 |
+LICENSE="|| ( BSD GPL-2 )" |
78 |
+SLOT="0" |
79 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" |
80 |
+IUSE="doc test pygments" |
81 |
+ |
82 |
+DEPEND=" |
83 |
+ test? ( |
84 |
+ dev-python/nose[${PYTHON_USEDEP}] |
85 |
+ dev-python/pyyaml[${PYTHON_USEDEP}] |
86 |
+ dev-python/pygments[${PYTHON_USEDEP}] |
87 |
+ dev-python/pytidylib[${PYTHON_USEDEP}] |
88 |
+ )" |
89 |
+# source cites pytidylib however from testruns it appears optional |
90 |
+RDEPEND="pygments? ( dev-python/pygments[${PYTHON_USEDEP}] )" |
91 |
+ |
92 |
+S="${WORKDIR}/${P^}" |
93 |
+PATCHES=( |
94 |
+ # build system always builds docs |
95 |
+ "${FILESDIR}"/${PN}-2.6.8-dont-build-docs-default.patch |
96 |
+) |
97 |
+ |
98 |
+python_compile_all() { |
99 |
+ if use doc; then |
100 |
+ esetup.py build_docs |
101 |
+ HTML_DOCS=( "${BUILD_DIR}"/docs/. ) |
102 |
+ |
103 |
+ # remove .txt files |
104 |
+ find "${BUILD_DIR}"/docs -name '*.txt' -delete || die |
105 |
+ fi |
106 |
+} |
107 |
+ |
108 |
+python_test() { |
109 |
+ cp -r -l run-tests.py tests "${BUILD_DIR}"/ || die |
110 |
+ cd "${BUILD_DIR}" || die |
111 |
+ "${EPYTHON}" run-tests.py || die "Tests fail with ${EPYTHON}" |
112 |
+} |