1 |
commit: a4f9062118d767356f31d4a82c9381f879214250 |
2 |
Author: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Sep 4 21:49:01 2018 +0000 |
4 |
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Sep 4 21:49:16 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a4f90621 |
7 |
|
8 |
dev-python/icalendar: add python-dateutil to RDEPEND. |
9 |
|
10 |
Closes: https://bugs.gentoo.org/664888 |
11 |
Package-Manager: Portage-2.3.40, Repoman-2.3.9 |
12 |
|
13 |
dev-python/icalendar/icalendar-3.11.7-r1.ebuild | 54 +++++++++++++++++++++++++ |
14 |
1 file changed, 54 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/icalendar/icalendar-3.11.7-r1.ebuild b/dev-python/icalendar/icalendar-3.11.7-r1.ebuild |
17 |
new file mode 100644 |
18 |
index 00000000000..015b5a6c7e0 |
19 |
--- /dev/null |
20 |
+++ b/dev-python/icalendar/icalendar-3.11.7-r1.ebuild |
21 |
@@ -0,0 +1,54 @@ |
22 |
+# Copyright 1999-2018 Gentoo Foundation |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI="6" |
26 |
+ |
27 |
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy ) |
28 |
+ |
29 |
+inherit distutils-r1 |
30 |
+ |
31 |
+MY_PN="collective-${PN}" |
32 |
+ |
33 |
+DESCRIPTION="Package used for parsing and generating iCalendar files (RFC 2445)" |
34 |
+HOMEPAGE="https://github.com/collective/icalendar" |
35 |
+SRC_URI="mirror://pypi/i/${PN}/${P}.tar.gz" |
36 |
+ |
37 |
+LICENSE="BSD" |
38 |
+SLOT="0" |
39 |
+KEYWORDS="~amd64 ~x86 ~x86-fbsd" |
40 |
+IUSE="doc test" |
41 |
+DOCS="README.rst" |
42 |
+ |
43 |
+RDEPEND=" |
44 |
+ dev-python/pytz[${PYTHON_USEDEP}] |
45 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
46 |
+ dev-python/python-dateutil[${PYTHON_USEDEP}]" |
47 |
+ |
48 |
+DEPEND=" |
49 |
+ ${RDEPEND} |
50 |
+ doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) |
51 |
+ test? ( dev-python/python-dateutil:0[${PYTHON_USEDEP}] |
52 |
+ dev-python/pytest[${PYTHON_USEDEP}] |
53 |
+ dev-python/coverage[${PYTHON_USEDEP}] )" |
54 |
+ |
55 |
+python_prepare_all() { |
56 |
+ # reset conf.py to not read version from an installed instance |
57 |
+ sed -e "s:pkg_resources.get_distribution('icalendar').version:'3.9.0':" \ |
58 |
+ -i docs/conf.py || die |
59 |
+ distutils-r1_python_prepare_all |
60 |
+} |
61 |
+ |
62 |
+python_compile_all() { |
63 |
+ if use doc; then |
64 |
+ pushd docs > /dev/null |
65 |
+ emake text |
66 |
+ popd > /dev/null |
67 |
+ DOCS=( ${DOCS} docs/_build/text/*.txt ) |
68 |
+ fi |
69 |
+} |
70 |
+ |
71 |
+python_test() { |
72 |
+ # From tox.ini |
73 |
+ coverage run --source=src/icalendar --omit=*/tests/* --module \ |
74 |
+ pytest src/icalendar || die "test failed under ${EPYTHON}" |
75 |
+} |