commit:     00e35d3770dd4336bf9dc0425bd078a03cb4a099
Author:     Marek Szuba <marecki <AT> gentoo <DOT> org>
AuthorDate: Thu Dec 19 13:14:04 2019 +0000
Commit:     Marek Szuba <marecki <AT> gentoo <DOT> org>
CommitDate: Thu Dec 19 13:14:40 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=00e35d37

dev-python/pyicu: bump to 2.4.2

Now with distutils_enable_tests and better BDEPEND use!

Package-Manager: Portage-2.3.79, Repoman-2.3.16
Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>

 dev-python/pyicu/Manifest                          |  1 +
 ...cu-2.4.2-testLocaleMatcher_pytest_old_icu.patch | 17 ++++++++++
 dev-python/pyicu/pyicu-2.4.2.ebuild                | 37 ++++++++++++++++++++++
 3 files changed, 55 insertions(+)

diff --git a/dev-python/pyicu/Manifest b/dev-python/pyicu/Manifest
index 609c23e1f27..754cb8c3cd2 100644
--- a/dev-python/pyicu/Manifest
+++ b/dev-python/pyicu/Manifest
@@ -1,2 +1,3 @@
 DIST PyICU-2.3.1.tar.gz 214761 BLAKE2B 
6571f1c10b6fa15b0b6fde76c16b2e1a1fa99af83db615aa7f7a172844183ca2a818747749b38e36162ff297c3e99311cd3328333880374c1c151955fe983f78
 SHA512 
edb60320ffe649f257d4d691ad9cc8287a7611de6a970d33a25a6e12a14c1faa591023d99d0b10619b0860bba70d1b67af2eff5cf146381afcaa872f0af1be29
 DIST PyICU-2.3.tar.gz 214710 BLAKE2B 
ef676cce089962d16a88193e7aa2ffec739086e5bbef201c8779a372a5876bbb1e63e5e92a7c89c879b91f063e90d4fdb16a1967dff5f2ef658cde95f9fdca6c
 SHA512 
2bdbc7fb7c83e58c9d0d53dadf8fef92d8dec02e9eefebc75bac43c19f008ef2a3219d41b62c426c41a055bb4530b2f7ef567162660d6021b8d2bf9e99090f94
+DIST PyICU-2.4.2.tar.gz 219356 BLAKE2B 
dc6ad1e8944e43560314e9dbfcd37e58b52b50874656f7ca66497a317b03bb9bf988515417660be87bb2e73e0484e5870cd3db2c5eab47fda1223e7514935fb0
 SHA512 
3cd1f632c2551dce3d721c54190a19c2a46e2554ef54915c9e07b133fa4a499b1a8c49f406abe9777721903799eb23a2d55d3b1aadd758870f8bd591f143a05b

diff --git 
a/dev-python/pyicu/files/pyicu-2.4.2-testLocaleMatcher_pytest_old_icu.patch 
b/dev-python/pyicu/files/pyicu-2.4.2-testLocaleMatcher_pytest_old_icu.patch
new file mode 100644
index 00000000000..ab1fed8dc7f
--- /dev/null
+++ b/dev-python/pyicu/files/pyicu-2.4.2-testLocaleMatcher_pytest_old_icu.patch
@@ -0,0 +1,17 @@
+--- a/test/test_LocaleMatcher.py
++++ b/test/test_LocaleMatcher.py
+@@ -21,11 +21,13 @@
+ # DEALINGS IN THE SOFTWARE.
+ # ====================================================================
+ 
+-import sys, os, six
++import sys, os, six, pytest
+ 
+ from unittest import TestCase, main
+ from icu import *
+ 
[email protected](ICU_VERSION < '65.0',
++                    reason='ICU too old for LocaleMatcher support')
+ class TestLocaleMatcher(TestCase):
+ 
+     def testSetSupportedLocales(self):

diff --git a/dev-python/pyicu/pyicu-2.4.2.ebuild 
b/dev-python/pyicu/pyicu-2.4.2.ebuild
new file mode 100644
index 00000000000..f4acff57c10
--- /dev/null
+++ b/dev-python/pyicu/pyicu-2.4.2.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{6,7} )
+
+inherit distutils-r1
+
+MY_PN="PyICU"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="Python bindings for dev-libs/icu"
+HOMEPAGE="https://github.com/ovalhub/pyicu";
+SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="${PYTHON_DEPS}
+       dev-libs/icu:="
+DEPEND="${RDEPEND}"
+BDEPEND="test? (
+               ${RDEPEND}
+               dev-python/six
+       )"
+
+PATCHES=(
+       "${FILESDIR}"/${PN}-2.4.2-testLocaleMatcher_pytest_old_icu.patch
+)
+
+S="${WORKDIR}/${MY_P}"
+
+DOCS=(CHANGES CREDITS README.md)
+
+distutils_enable_tests pytest

Reply via email to