diff options
author | Tim Harder <radhermit@gentoo.org> | 2017-08-27 04:49:44 -0400 |
---|---|---|
committer | Tim Harder <radhermit@gentoo.org> | 2017-08-27 04:53:49 -0400 |
commit | f0b3f663f8a43c780b7b779afe6744af9b751c7b (patch) | |
tree | 65ace948c938f212df7cfe2eddb068903374c61b /dev-python | |
parent | dev-python/idna: version bump to 2.6 (diff) | |
download | gentoo-f0b3f663f8a43c780b7b779afe6744af9b751c7b.tar.gz gentoo-f0b3f663f8a43c780b7b779afe6744af9b751c7b.tar.bz2 gentoo-f0b3f663f8a43c780b7b779afe6744af9b751c7b.zip |
dev-python/Babel: version bump to 2.5.0
Diffstat (limited to 'dev-python')
-rw-r--r-- | dev-python/Babel/Babel-2.5.0.ebuild | 48 | ||||
-rw-r--r-- | dev-python/Babel/Manifest | 1 |
2 files changed, 49 insertions, 0 deletions
diff --git a/dev-python/Babel/Babel-2.5.0.ebuild b/dev-python/Babel/Babel-2.5.0.ebuild new file mode 100644 index 000000000000..9ec087d4bd7e --- /dev/null +++ b/dev-python/Babel/Babel-2.5.0.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy{,3} ) +PYTHON_REQ_USE="threads(+)" + +inherit distutils-r1 + +DESCRIPTION="Collection of tools for internationalizing Python applications" +HOMEPAGE="http://babel.edgewall.org/ https://pypi.python.org/pypi/Babel" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +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" +IUSE="doc test" + +RDEPEND="dev-python/pytz[${PYTHON_USEDEP}] + dev-python/setuptools[${PYTHON_USEDEP}]" +DEPEND="${DEPEND} + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) + test? ( dev-python/pytest[${PYTHON_USEDEP}] )" + +python_prepare_all() { + # Make the tests use implementation-specific datadir, + # because they try to write in it. + sed -e '/datadir =/s:os\.path\.dirname(__file__):os.environ["BUILD_DIR"]:' \ + -i tests/messages/test_frontend.py || die + sed -e '/^intersphinx_mapping/,+3d' -i docs/conf.py || die + distutils-r1_python_prepare_all +} + +python_test() { + # Create implementation-specific datadir for tests. + cp -R -l tests/messages/data "${BUILD_DIR}"/ || die + py.test || die +} + +python_compile_all() { + use doc && emake -C docs html +} + +python_install_all() { + use doc && local HTML_DOCS=( docs/_build/html/. ) + distutils-r1_python_install_all +} diff --git a/dev-python/Babel/Manifest b/dev-python/Babel/Manifest index b6f1fa575e20..3f62be85a9fe 100644 --- a/dev-python/Babel/Manifest +++ b/dev-python/Babel/Manifest @@ -1,3 +1,4 @@ DIST Babel-2.1.1.tar.gz 3437647 SHA256 7fb6d50effe88a087feb2036cb972fd7a893bf338361516f1a55a820bf7b5248 SHA512 ec7ebb8648101588eecc72913adc45c0593ed6ee5f10874edcd4b932959f9552edcecc8e2ec966dae6ef5e8adb23341f1a4f87ea2d9e6cbba57a9b8b0a352a94 WHIRLPOOL 812badf14a74fa391851aaae048ec5d815d6d8f7abce8b918f036243cc45d91ca97281614c2ef139797719077ef4880cfafce88e9d718b3cd633ed7303e4cfd7 DIST Babel-2.3.4.tar.gz 6866920 SHA256 c535c4403802f6eb38173cd4863e419e2274921a01a8aad8a5b497c131c62875 SHA512 1fdba01946e7a8ebe3fef23843e23707cd060b0a179d775e29f938318d824e8779df2852fb8bbd18f61fc47de33af5d988c509dc67f54ea4cb3a4a66767869a5 WHIRLPOOL ea265abb1a9f6de890c6fa8e78ef49eab2adbd47916f30d19d3d807220c6598c14a93527ba85b92b8e6fbc40571c706cf233d17d7ee65448e3270ead38b7c71a DIST Babel-2.4.0.tar.gz 6607513 SHA256 8c98f5e5f8f5f088571f2c6bd88d530e331cbbcb95a7311a0db69d3dca7ec563 SHA512 4e1341144dfb319c172a446facc47204c9b9f49972c8646b62e082975d8ec41c35e503e610d7114ef5346a5c073e87ed8d40a65a60d9540fb7ca947681cc0beb WHIRLPOOL 58184100c060640316a1517ce70db2b5f9143fa10fb24b2b9d4069c8ecb638b914fbe405d0ab8a51628b98a00a7db4c462d6faff8b2b98a4cb5cd4ca3e7f5abf +DIST Babel-2.5.0.tar.gz 6612353 SHA256 754177ee7481b6fac1bf84edeeb6338ab51640984e97e4083657d384b1c8830d SHA512 b24b74121695e0068fb28a6294d4b5b2065e94dcd62ca0d70c8fde3a00cb5ff111480505594460989c6f67a75935f55e153b1b493f917317d2c5ee0f0d7921fc WHIRLPOOL a13f570ba56282699eb71825c4210b0f57b731e5d105109a2fbd4b92bb3929c5435fe7defdf9121f071cf4129d5bbdd93a8a9633f6dd7e8762df1b1a6b5fb788 |