dev-python/pyicu: bump to 2.1
authorMarek Szuba <marecki@gentoo.org>
Mon, 10 Sep 2018 08:45:54 +0000 (09:45 +0100)
committerMarek Szuba <marecki@gentoo.org>
Mon, 10 Sep 2018 08:46:22 +0000 (09:46 +0100)
Package-Manager: Portage-2.3.40, Repoman-2.3.9

dev-python/pyicu/Manifest
dev-python/pyicu/pyicu-2.1.ebuild [new file with mode: 0644]

index f6e824edfac38140d9af4f08e985fa8bb0be208d..dcf9b89deb6402040644eb87c19c5878eebabfd5 100644 (file)
@@ -1,2 +1,3 @@
 DIST PyICU-2.0.2.tar.gz 194525 BLAKE2B 9ef0c5defdebfd65760c6de5782308eac5433fd8474b9802ed1a79db494a259c88f22286b0a98b25bdcec22cbf78a3a7e411d8a9a7a81b07a2112204d6b44141 SHA512 b3715a0f88227a41b56988ee98e795fe398867c2788b2929e0d4f83bfe9519ff01648eb23cfe8d1d9073930a4d7220c0ad5ebcf2652d8fa3ec43e4c4a4bcf091
 DIST PyICU-2.0.3.tar.gz 201076 BLAKE2B cb388e4e6d6df2417312820cbe8482a8b02c5cfd639950b32d5ab5e1b1815f85e8fc870a2808042f085bee6ec93c6cb6dbea4466e745e93166714421d7d4ef25 SHA512 a08a34772fc8205660320d7ea1bea52cd9c21ff9edf0aef1059c9439406d4b69ab434b35347dce8928cff8051600d55cb71bcc74eb89f203037be629d83e044e
+DIST PyICU-2.1.tar.gz 203402 BLAKE2B 47541bd2f59553cc577b726b41585df6a639deff79c0c48d9ec2388bc8c9d69b9eef2cad642418961c255a36c7b43e255c5487a9dcac2a695267f29a790bb630 SHA512 35477cd960828d6ce853286e2de8e14a3b4cdc8d6975fd7eaf7e262f252c298f235d569d02a3844432e19dccffed13395c80074623ad196fab6c87f55f3d560d
diff --git a/dev-python/pyicu/pyicu-2.1.ebuild b/dev-python/pyicu/pyicu-2.1.ebuild
new file mode 100644 (file)
index 0000000..381c93d
--- /dev/null
@@ -0,0 +1,48 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
+
+inherit distutils-r1 flag-o-matic
+
+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"
+IUSE="test"
+
+RDEPEND="${PYTHON_DEPS}
+       dev-libs/icu"
+DEPEND="${RDEPEND}
+       test? ( dev-python/pytest
+               dev-python/six )"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+S="${WORKDIR}/${MY_P}"
+
+DOCS=(CHANGES CREDITS README.md)
+
+python_prepare_all() {
+       # bug 651748
+       # due to ICU 59 requiring C++11 now
+       append-cxxflags -std=c++11
+
+       distutils-r1_python_prepare_all
+}
+
+python_test() {
+       if [[ ${EPYTHON} == python2* ]]; then
+               # See Bug #644226
+               ewarn "Skipping tests for ${EPYTHON} because they are known to fail"
+       else
+               esetup.py test
+       fi
+}