Gentoo Archives: gentoo-commits

From: Justin Lecher <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pytz/
Date: Sun, 11 Oct 2015 11:25:38
Message-Id: 1444562669.bc4aca4225d07877c9d3d77579e2e7c0ccd17456.jlec@gentoo
1 commit: bc4aca4225d07877c9d3d77579e2e7c0ccd17456
2 Author: Justin Lecher <jlec <AT> gentoo <DOT> org>
3 AuthorDate: Sun Oct 11 10:47:43 2015 +0000
4 Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 11 11:24:29 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bc4aca42
7
8 dev-python/pytz: Add python3.5 support
9
10 Package-Manager: portage-2.2.23
11 Signed-off-by: Justin Lecher <jlec <AT> gentoo.org>
12
13 dev-python/pytz/pytz-2015.6-r1.ebuild | 34 ++++++++++++++++++++++++++++++++++
14 1 file changed, 34 insertions(+)
15
16 diff --git a/dev-python/pytz/pytz-2015.6-r1.ebuild b/dev-python/pytz/pytz-2015.6-r1.ebuild
17 new file mode 100644
18 index 0000000..5913f36
19 --- /dev/null
20 +++ b/dev-python/pytz/pytz-2015.6-r1.ebuild
21 @@ -0,0 +1,34 @@
22 +# Copyright 1999-2015 Gentoo Foundation
23 +# Distributed under the terms of the GNU General Public License v2
24 +# $Id$
25 +
26 +EAPI=5
27 +
28 +PYTHON_COMPAT=( python2_7 python3_{3,4,5} pypy pypy3 )
29 +
30 +inherit distutils-r1
31 +
32 +DESCRIPTION="World timezone definitions for Python"
33 +HOMEPAGE="http://pythonhosted.org/pytz/ https://pypi.python.org/pypi/pytz/"
34 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.bz2"
35 +
36 +LICENSE="MIT"
37 +SLOT="0"
38 +KEYWORDS="~amd64 ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
39 +IUSE=""
40 +
41 +DEPEND="
42 + dev-python/setuptools[${PYTHON_USEDEP}]
43 + >=sys-libs/timezone-data-2014i"
44 +RDEPEND="${DEPEND}"
45 +
46 +PATCHES=(
47 + # Use timezone-data zoneinfo.
48 + "${FILESDIR}"/${PN}-2009j-zoneinfo.patch
49 + # ...and do not install a copy of it.
50 + "${FILESDIR}"/${PN}-2009h-zoneinfo-noinstall.patch
51 +)
52 +
53 +python_test() {
54 + "${PYTHON}" pytz/tests/test_tzinfo.py -v || die "Tests fail with ${EPYTHON}"
55 +}