1 |
commit: c905dae24d3f2fdd01f38cf3998275601f2ce77f |
2 |
Author: Karel Kočí <cynerd <AT> email <DOT> cz> |
3 |
AuthorDate: Tue Dec 4 21:37:24 2018 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Dec 9 08:44:59 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c905dae2 |
7 |
|
8 |
dev-python/icalendar: update to version 4.0.3 |
9 |
|
10 |
Bug: https://bugs.gentoo.org/672530 |
11 |
Signed-off-by: Karel Kočí <cynerd <AT> email.cz> |
12 |
Closes: https://github.com/gentoo/gentoo/pull/10572 |
13 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
14 |
|
15 |
dev-python/icalendar/Manifest | 1 + |
16 |
dev-python/icalendar/icalendar-4.0.3.ebuild | 46 +++++++++++++++++++++++++++++ |
17 |
2 files changed, 47 insertions(+) |
18 |
|
19 |
diff --git a/dev-python/icalendar/Manifest b/dev-python/icalendar/Manifest |
20 |
index 96cd6fff36c..d0a2eb37787 100644 |
21 |
--- a/dev-python/icalendar/Manifest |
22 |
+++ b/dev-python/icalendar/Manifest |
23 |
@@ -1,2 +1,3 @@ |
24 |
DIST icalendar-3.11.7.tar.gz 78330 BLAKE2B e6186f58903d835ac3357db959b6fef79aba34bb9b692128b6209b9c8139f7ed2eda81fd5cc54b6f3186d055e611f1489fcb61b1a10f914ee4c79ba8b31bf67a SHA512 445dc7b9c8c7ee2ad3345c5a4e4bca92633cdabae95f3cab63dacf549d48b7578242566d236cac8d5a9df4158387cadc0f09327e1b3e5038d223687365bec884 |
25 |
DIST icalendar-3.9.2.tar.gz 66283 BLAKE2B 487a8fdf04f028de30003762860640b8983df026aa7a5ba0efe3a57ddd09c51bb406a5e58792203d3a0ee3d44186b0b6dcaa7194fefcfed85c3ab714129f6b4d SHA512 da50bba72f7a114263672ebd45cfcca5f7c2eca48538901f595b26ef18bb21a6290da4392c62cc27d1202083fcab7f5bfe6c9a463df38087de0ef764999f7eb1 |
26 |
+DIST icalendar-4.0.3.tar.gz 77899 BLAKE2B d4043914b85359a8309dd7c8acce55ec5921508319342f2ffb2e16017aa5aa164ef7fdd44aee7820a971516a3e157b5c8ee86732e669c8eac4b5c4bc1767e334 SHA512 2f0ac5a7f36c7d37047ba20bec3f2ca7df51a9e3ec3f29751c71cdd264c01f7e0abd6efc298dac5a7c87911cb4916e56bf77716d6ca05a2d090e26486e6a56be |
27 |
|
28 |
diff --git a/dev-python/icalendar/icalendar-4.0.3.ebuild b/dev-python/icalendar/icalendar-4.0.3.ebuild |
29 |
new file mode 100644 |
30 |
index 00000000000..4c60e2e5c4f |
31 |
--- /dev/null |
32 |
+++ b/dev-python/icalendar/icalendar-4.0.3.ebuild |
33 |
@@ -0,0 +1,46 @@ |
34 |
+# Copyright 1999-2018 Gentoo Foundation |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI="6" |
38 |
+ |
39 |
+PYTHON_COMPAT=( python2_7 python3_{5,6,7} pypy ) |
40 |
+ |
41 |
+inherit distutils-r1 |
42 |
+ |
43 |
+DESCRIPTION="Package used for parsing and generating iCalendar files (RFC 2445)" |
44 |
+HOMEPAGE="https://github.com/collective/icalendar" |
45 |
+SRC_URI="mirror://pypi/i/${PN}/${P}.tar.gz" |
46 |
+ |
47 |
+LICENSE="BSD" |
48 |
+SLOT="0" |
49 |
+KEYWORDS="~amd64 ~x86 ~x86-fbsd" |
50 |
+IUSE="doc test" |
51 |
+DOCS=( "README.rst" ) |
52 |
+ |
53 |
+RDEPEND=" |
54 |
+ dev-python/python-dateutil[${PYTHON_USEDEP}] |
55 |
+ dev-python/pytz[${PYTHON_USEDEP}] |
56 |
+ dev-python/setuptools[${PYTHON_USEDEP}]" |
57 |
+ |
58 |
+DEPEND=" |
59 |
+ ${RDEPEND} |
60 |
+ doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) |
61 |
+ test? ( dev-python/pytest[${PYTHON_USEDEP}] )" |
62 |
+ |
63 |
+python_prepare_all() { |
64 |
+ # reset conf.py to not read version from an installed instance |
65 |
+ sed -e "s:pkg_resources.get_distribution('icalendar').version:'${PV}':" \ |
66 |
+ -i docs/conf.py || die |
67 |
+ distutils-r1_python_prepare_all |
68 |
+} |
69 |
+ |
70 |
+python_compile_all() { |
71 |
+ if use doc; then |
72 |
+ emake -C docs html |
73 |
+ HTML_DOCS=( docs/_build/html/. ) |
74 |
+ fi |
75 |
+} |
76 |
+ |
77 |
+python_test() { |
78 |
+ pytest -vv src/icalendar || die "test failed under ${EPYTHON}" |
79 |
+} |