Gentoo Archives: gentoo-commits

From: "Manuel Rüger" <mrueg@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/Babel/
Date: Fri, 06 Apr 2018 22:31:56
Message-Id: 1523053885.cabcd4c4c31b528722d7fea231b7baa6f7796336.mrueg@gentoo
1 commit: cabcd4c4c31b528722d7fea231b7baa6f7796336
2 Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
3 AuthorDate: Fri Apr 6 22:31:25 2018 +0000
4 Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
5 CommitDate: Fri Apr 6 22:31:25 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cabcd4c4
7
8 dev-python/Babel: Add missing test dependency
9
10 Thanks to Matt Turner
11
12 Closes: https://bugs.gentoo.org/651796
13 Package-Manager: Portage-2.3.28, Repoman-2.3.9
14
15 dev-python/Babel/Babel-2.5.3-r1.ebuild | 49 ++++++++++++++++++++++++++++++++++
16 1 file changed, 49 insertions(+)
17
18 diff --git a/dev-python/Babel/Babel-2.5.3-r1.ebuild b/dev-python/Babel/Babel-2.5.3-r1.ebuild
19 new file mode 100644
20 index 00000000000..70d214cb414
21 --- /dev/null
22 +++ b/dev-python/Babel/Babel-2.5.3-r1.ebuild
23 @@ -0,0 +1,49 @@
24 +# Copyright 1999-2018 Gentoo Foundation
25 +# Distributed under the terms of the GNU General Public License v2
26 +
27 +EAPI=6
28 +
29 +PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy{,3} )
30 +PYTHON_REQ_USE="threads(+)"
31 +
32 +inherit distutils-r1
33 +
34 +DESCRIPTION="Collection of tools for internationalizing Python applications"
35 +HOMEPAGE="http://babel.edgewall.org/ https://pypi.python.org/pypi/Babel"
36 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
37 +
38 +LICENSE="BSD"
39 +SLOT="0"
40 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris"
41 +IUSE="doc test"
42 +
43 +RDEPEND="dev-python/pytz[${PYTHON_USEDEP}]
44 + dev-python/setuptools[${PYTHON_USEDEP}]"
45 +DEPEND="${DEPEND}
46 + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
47 + test? ( dev-python/freezegun[${PYTHON_USEDEP}]
48 + dev-python/pytest[${PYTHON_USEDEP}] )"
49 +
50 +python_prepare_all() {
51 + # Make the tests use implementation-specific datadir,
52 + # because they try to write in it.
53 + sed -e '/datadir =/s:os\.path\.dirname(__file__):os.environ["BUILD_DIR"]:' \
54 + -i tests/messages/test_frontend.py || die
55 + sed -e '/^intersphinx_mapping/,+3d' -i docs/conf.py || die
56 + distutils-r1_python_prepare_all
57 +}
58 +
59 +python_test() {
60 + # Create implementation-specific datadir for tests.
61 + cp -R -l tests/messages/data "${BUILD_DIR}"/ || die
62 + py.test || die
63 +}
64 +
65 +python_compile_all() {
66 + use doc && emake -C docs html
67 +}
68 +
69 +python_install_all() {
70 + use doc && local HTML_DOCS=( docs/_build/html/. )
71 + distutils-r1_python_install_all
72 +}