dev-python/pyicu: bump to 2.4.2
authorMarek Szuba <marecki@gentoo.org>
Thu, 19 Dec 2019 13:14:04 +0000 (13:14 +0000)
committerMarek Szuba <marecki@gentoo.org>
Thu, 19 Dec 2019 13:14:40 +0000 (13:14 +0000)
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@gentoo.org>
dev-python/pyicu/Manifest
dev-python/pyicu/files/pyicu-2.4.2-testLocaleMatcher_pytest_old_icu.patch [new file with mode: 0644]
dev-python/pyicu/pyicu-2.4.2.ebuild [new file with mode: 0644]

index 609c23e1f27f9806f0f1c29e637fdb779828bc1b..754cb8c3cd21d0860096a33e681abffbd65c1264 100644 (file)
@@ -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 (file)
index 0000000..ab1fed8
--- /dev/null
@@ -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 *
++@pytest.mark.skipif(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 (file)
index 0000000..f4acff5
--- /dev/null
@@ -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