Gentoo Archives: gentoo-commits

From: Matt Thode <prometheanfire@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/Babel/
Date: Fri, 30 Oct 2015 14:13:48
Message-Id: 1446214381.dbee6a9448937a497c7b4455b673acb3ed98dd1c.prometheanfire@gentoo
1 commit: dbee6a9448937a497c7b4455b673acb3ed98dd1c
2 Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
3 AuthorDate: Fri Oct 30 14:13:01 2015 +0000
4 Commit: Matt Thode <prometheanfire <AT> gentoo <DOT> org>
5 CommitDate: Fri Oct 30 14:13:01 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dbee6a94
7
8 Revert "dev-python/Babel: Drop old"
9
10 This reverts commit 88be89a78b0337603d7d61753d5bbf14024df558.
11
12 dev-python/Babel/Babel-2.0.ebuild | 49 +++++++++++++++++++++++++++++++++++++++
13 dev-python/Babel/Manifest | 1 +
14 2 files changed, 50 insertions(+)
15
16 diff --git a/dev-python/Babel/Babel-2.0.ebuild b/dev-python/Babel/Babel-2.0.ebuild
17 new file mode 100644
18 index 0000000..8d46105
19 --- /dev/null
20 +++ b/dev-python/Babel/Babel-2.0.ebuild
21 @@ -0,0 +1,49 @@
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=( python{2_7,3_3,3_4} pypy pypy3 )
29 +
30 +inherit distutils-r1
31 +
32 +DESCRIPTION="A collection of tools for internationalizing Python applications"
33 +HOMEPAGE="http://babel.edgewall.org/ https://pypi.python.org/pypi/Babel"
34 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
35 +
36 +LICENSE="BSD"
37 +SLOT="0"
38 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
39 +IUSE="doc test"
40 +
41 +RDEPEND="dev-python/pytz[${PYTHON_USEDEP}]
42 + dev-python/setuptools[${PYTHON_USEDEP}]"
43 +DEPEND="${DEPEND}
44 + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
45 + test? ( >=dev-python/pytest-2.3.5[${PYTHON_USEDEP}] )"
46 +
47 +python_prepare_all() {
48 + # Make the tests use implementation-specific datadir,
49 + # because they try to write in it.
50 + sed -e '/datadir =/s:os\.path\.dirname(__file__):os.environ["BUILD_DIR"]:' \
51 + -i tests/messages/test_frontend.py || die
52 + sed -e '/^intersphinx_mapping/,+3d' -i docs/conf.py || die
53 + distutils-r1_python_prepare_all
54 +}
55 +
56 +python_test() {
57 + # Create implementation-specific datadir for tests.
58 + cp -R -l tests/messages/data "${BUILD_DIR}"/ || die
59 + export BUILD_DIR
60 + py.test || die
61 +}
62 +
63 +python_compile_all() {
64 + use doc && emake -C docs html
65 +}
66 +
67 +python_install_all() {
68 + use doc && local HTML_DOCS=( docs/_build/html/. )
69 + distutils-r1_python_install_all
70 +}
71
72 diff --git a/dev-python/Babel/Manifest b/dev-python/Babel/Manifest
73 index a8b5131..578cf1b 100644
74 --- a/dev-python/Babel/Manifest
75 +++ b/dev-python/Babel/Manifest
76 @@ -1 +1,2 @@
77 +DIST Babel-2.0.tar.gz 3415906 SHA256 44988df191123065af9857eca68e9151526a931c12659ca29904e4f11de7ec1b SHA512 9f12573d97f688baf0d1fc0f61055e34b67964054e70c8a6c286a8b0e42ce58da4d9c8cf54f94e51b47a5256cc4504a14bea497bd626cfad8c860d952e7a5e18 WHIRLPOOL e08b0d2d6192321f653200b9e4e96d898c12ea8176f7e0fb7c2144d3dfb6c4b6c12b85833b05b1a5e2d9ed8cec3712d09c3b0a1822ca9cc7ea4bf1cb24dac3f3
78 DIST Babel-2.1.1.tar.gz 3437647 SHA256 7fb6d50effe88a087feb2036cb972fd7a893bf338361516f1a55a820bf7b5248 SHA512 ec7ebb8648101588eecc72913adc45c0593ed6ee5f10874edcd4b932959f9552edcecc8e2ec966dae6ef5e8adb23341f1a4f87ea2d9e6cbba57a9b8b0a352a94 WHIRLPOOL 812badf14a74fa391851aaae048ec5d815d6d8f7abce8b918f036243cc45d91ca97281614c2ef139797719077ef4880cfafce88e9d718b3cd633ed7303e4cfd7