Diff cairocffi-0.8.0-r1 with a cairocffi-0.9.0-r1

/usr/portage/dev-python/cairocffi/cairocffi-0.9.0-r1.ebuild 2020-06-06 21:09:00.000000000 +0300
1 1
# Copyright 1999-2020 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI="6"
4
EAPI="7"
5 5

  
6
PYTHON_COMPAT=( python2_7 python3_{6,7} )
6
PYTHON_COMPAT=( python2_7 python3_{6..9} )
7 7

  
8 8
inherit distutils-r1 virtualx
9 9

  
......
16 16

  
17 17
LICENSE="BSD"
18 18
SLOT="0"
19
KEYWORDS="amd64 ~arm arm64 ~ppc ppc64 x86"
20
IUSE="doc test"
19
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
20
IUSE="test"
21 21
RESTRICT="!test? ( test )"
22 22

  
23
distutils_enable_sphinx docs
24

  
23 25
RDEPEND="
24 26
	$(python_gen_cond_dep '>=dev-python/cffi-1.1.0:=[${PYTHON_USEDEP}]' 'python*')
25 27
	>=dev-python/xcffib-0.3.2[${PYTHON_USEDEP}]
......
33 35
		dev-python/pytest[${PYTHON_USEDEP}]
34 36
	)"
35 37

  
36
PATCHES=( "${FILESDIR}"/${P}-tests.patch )
37

  
38 38
S="${WORKDIR}/${MY_P}"
39 39

  
40
distutils_enable_sphinx docs
40
PATCHES=( "${FILESDIR}"/${PN}-0.8.0-tests.patch )
41

  
42
python_prepare() {
43
	if python_is_python3; then
44
		# Remove deprecated statements for python3
45
		sed -i -e 's/tostring/tobytes/g' cairocffi/test_cairo.py || die
46
	fi
47
}
41 48

  
42 49
python_test() {
43
	virtx py.test -v --pyargs cairocffi
50
	virtx py.test -v --pyargs cairocffi -o addopts=
44 51
}
Thank you!