diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-python/cairocffi | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-python/cairocffi')
-rw-r--r-- | dev-python/cairocffi/Manifest | 8 | ||||
-rw-r--r-- | dev-python/cairocffi/cairocffi-0.7.2.ebuild | 57 | ||||
-rw-r--r-- | dev-python/cairocffi/cairocffi-0.8.0.ebuild | 53 | ||||
-rw-r--r-- | dev-python/cairocffi/files/cairocffi-0.7.1-test.patch | 58 | ||||
-rw-r--r-- | dev-python/cairocffi/files/cairocffi-0.8.0-tests.patch | 23 | ||||
-rw-r--r-- | dev-python/cairocffi/files/mapping.patch | 10 | ||||
-rw-r--r-- | dev-python/cairocffi/metadata.xml | 12 |
7 files changed, 221 insertions, 0 deletions
diff --git a/dev-python/cairocffi/Manifest b/dev-python/cairocffi/Manifest new file mode 100644 index 000000000000..b3417f790195 --- /dev/null +++ b/dev-python/cairocffi/Manifest @@ -0,0 +1,8 @@ +AUX cairocffi-0.7.1-test.patch 2041 BLAKE2B 5541ba69e75d5cc0270a27e19a29683bad83db8adbacf4bb4d26b7d25ea89aec1486541ddd91f7880afbff505e64266de6fafed1ba466e0bbf1e1c1abdba895f SHA512 b9191efa17f28becb4bf1f296b80bbd63d024c80d01e4211b334953272bf27e6029bcd113c0adc17d77bf27a31b609fe51b5b9374158d6a10763a9235e57a3a0 +AUX cairocffi-0.8.0-tests.patch 751 BLAKE2B fa20431b8884762f5ebe25a59731743b8c2db1c0183eb8e425137b594fe35aeec095c85e643c35fbb3c41645b168c010dce7e0470d78c2cf07ca63ff2c52a340 SHA512 8e852c5769c726e85e8144c48fa78ba569d5c2e6d499bc92e37f5565dbebe6bcbc6e6a07ef3ecf8bf072a1fa2f83b614d01567ec198cfa86bf40a8b384462501 +AUX mapping.patch 426 BLAKE2B 9c432bd2278bfc1ea996f99f6abb07635223350bb6f1fd305d28adcb9477b0efe880f83f76c3b12cb6e0a4dd14f5e05dc69672a41da33ae89f5836c2fc360e27 SHA512 ba09a19ff80b14275db9bcec51a372779adb6b2d969a9c07c11d9ba23de094460f2a84a837add9cb1f77084e0cfb791437fcf6c9bb67ea3958d2a006969b6d2c +DIST cairocffi-0.7.2.tar.gz 75337 BLAKE2B 9405eb6bafd0a83be2e2ae566eb9893a87bb8066c24885c955038f27357cc92e89e58998e16b2ec662559eebea6240e2e5c699d00e595fa13952e07f0264c9d2 SHA512 a4b5798ee713a8847ebd21ef328b3e0a94403ce1e80ac108f6d8e4abffbf96551542bb5c848550d82bcebb3d9f645c90ea87fc3eb254bd8e9d57b6a55db76de1 +DIST cairocffi-0.8.0.tar.gz 79217 BLAKE2B fefcee32e486c150d089b7d13b046c864b83fcc184f7880e86cfae0afc22c1e712ad7e835d76506b4ab0cefab6629abcc5bd86cd95c417dcc64c9374a8629110 SHA512 70179e05ca4a4efeaa39ade1ee1a96d280d198ecff5ae8c8fc634c24d8922ea6a3e1eb6cf5f55c5fc9d3f5b2fc3131a53051690eb86712762d8b6400df8a630a +EBUILD cairocffi-0.7.2.ebuild 1357 BLAKE2B 9e57404454c2f10d5181436ac3971cef418746f67b162dac182768615713e0c1edaf3da2d9329aa0502f5f296ba3131c953a4da4058249202e41ca9d1a10c315 SHA512 aeb5df8305885f8ef3cdd129da957c5adc8776d113003d5cc248663a971d08f693bd675b3da85c057ae5ad6f54ee9e1498b499a9e6e4bd74da2d7e60300d4949 +EBUILD cairocffi-0.8.0.ebuild 1270 BLAKE2B 5dc63dc5cbf1058ae8556004325a009483e9604194f77be0416e3299dc08b6cc0713b47a23398509fb865c917c3d5cc624406baa125d81b1bc989910b29bd2f9 SHA512 a25d469817a6bec7bafcc1736da49c11d0a226780a7f1630151fc180d539afc70c0d7b0e532628861dd5a874a7c6a90a9104baf7dc82352a73b558bd58dfec9b +MISC metadata.xml 379 BLAKE2B 75baee69a9fff6d3c571bded0b1e6cfd8abbdfae7262faa2215fb3251ace498c33119ebe3bf74e4e4e0b2d1ba620b9bc60d4daf244917098e17c62af24d4b401 SHA512 b0bdbb3b144675f9e90a0421c694e0f0a782dbf315dd8203574bea69b9389d49d377797a28d9d86588d062e15071c1fe226dd4166a4fbf8e95a852d46cc20215 diff --git a/dev-python/cairocffi/cairocffi-0.7.2.ebuild b/dev-python/cairocffi/cairocffi-0.7.2.ebuild new file mode 100644 index 000000000000..25ff30599269 --- /dev/null +++ b/dev-python/cairocffi/cairocffi-0.7.2.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" + +PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy ) + +inherit distutils-r1 + +MY_PN="${PN}" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="CFFI-based drop-in replacement for Pycairo" +HOMEPAGE="https://github.com/Kozea/cairocffi" +SRC_URI="mirror://pypi/${MY_P:0:1}/${MY_PN}/${MY_P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 ~arm ~ppc64 x86" +IUSE="doc test" + +RDEPEND=" + $(python_gen_cond_dep '>=dev-python/cffi-1.1.0:=[${PYTHON_USEDEP}]' 'python*') + >=dev-python/xcffib-0.3.2[${PYTHON_USEDEP}] + x11-libs/cairo:0= + x11-libs/gdk-pixbuf[jpeg] + $(python_gen_cond_dep '>=virtual/pypy-2.6.0' pypy )" + +DEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) + test? ( + ${RDEPEND} + dev-python/pytest[${PYTHON_USEDEP}] + ) + $(python_gen_cond_dep '>=virtual/pypy-2.6.0' pypy )" + +PATCHES=( + # Intersphinx cause the usual d'loading of objects.inv from TWO online sites + "${FILESDIR}"/mapping.patch + "${FILESDIR}"/${PN}-0.7.1-test.patch + ) + +S="${WORKDIR}/${MY_P}" + +python_compile_all() { + use doc && esetup.py build_sphinx +} + +python_test() { + py.test -v --pyargs cairocffi || die "testsuite failed under ${EPYTHON}" +} + +python_install_all() { + use doc && HTML_DOCS=( docs/_build/html/. ) + distutils-r1_python_install_all +} diff --git a/dev-python/cairocffi/cairocffi-0.8.0.ebuild b/dev-python/cairocffi/cairocffi-0.8.0.ebuild new file mode 100644 index 000000000000..e5fe6c9ee2a7 --- /dev/null +++ b/dev-python/cairocffi/cairocffi-0.8.0.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy ) + +inherit distutils-r1 virtualx + +MY_PN="${PN}" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="CFFI-based drop-in replacement for Pycairo" +HOMEPAGE="https://github.com/Kozea/cairocffi" +SRC_URI="mirror://pypi/${MY_P:0:1}/${MY_PN}/${MY_P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 ~arm ~arm64 ~ppc ppc64 x86" +IUSE="doc test" + +RDEPEND=" + $(python_gen_cond_dep '>=dev-python/cffi-1.1.0:=[${PYTHON_USEDEP}]' 'python*') + >=dev-python/xcffib-0.3.2[${PYTHON_USEDEP}] + x11-libs/cairo:0=[xcb] + x11-libs/gdk-pixbuf[jpeg] + $(python_gen_cond_dep '>=virtual/pypy-2.6.0' pypy )" + +DEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) + test? ( + ${RDEPEND} + dev-python/pytest[${PYTHON_USEDEP}] + ) + $(python_gen_cond_dep '>=virtual/pypy-2.6.0' pypy )" + +PATCHES=( "${FILESDIR}"/${P}-tests.patch ) + +S="${WORKDIR}/${MY_P}" + +python_compile_all() { + use doc && esetup.py build_sphinx +} + +python_test() { + virtx py.test -v --pyargs cairocffi || die "testsuite failed under ${EPYTHON}" +} + +python_install_all() { + use doc && HTML_DOCS=( docs/_build/html/. ) + distutils-r1_python_install_all +} diff --git a/dev-python/cairocffi/files/cairocffi-0.7.1-test.patch b/dev-python/cairocffi/files/cairocffi-0.7.1-test.patch new file mode 100644 index 000000000000..b5a2b4530fb8 --- /dev/null +++ b/dev-python/cairocffi/files/cairocffi-0.7.1-test.patch @@ -0,0 +1,58 @@ + cairocffi/test_cairo.py | 3 +-- + cairocffi/test_xcb.py | 13 +++++++------ + 2 files changed, 8 insertions(+), 8 deletions(-) + +diff --git a/cairocffi/test_cairo.py b/cairocffi/test_cairo.py +index 6b19ee1..542103d 100644 +--- a/cairocffi/test_cairo.py ++++ b/cairocffi/test_cairo.py +@@ -1049,7 +1049,7 @@ def test_font_options(): + options_1.merge(options_2) + assert options_2 == options_1 + +- ++#@pytest.skip("https://github.com/SimonSapin/cairocffi/issues/65") + def test_glyphs(): + surface = ImageSurface(cairocffi.FORMAT_ARGB32, 100, 20) + context = Context(surface) +@@ -1064,7 +1064,6 @@ def test_glyphs(): + assert 5 == x1 < x2 < x3 + assert clusters == [(2, 1), (1, 1), (1, 1)] + assert is_backwards == 0 +- assert font.glyph_extents(glyphs) == font.text_extents(text) + assert font.glyph_extents(glyphs) == context.glyph_extents(glyphs) + + assert context.copy_path() == [] +diff --git a/cairocffi/test_xcb.py b/cairocffi/test_xcb.py +index c8a6e70..0c6bab9 100644 +--- a/cairocffi/test_xcb.py ++++ b/cairocffi/test_xcb.py +@@ -118,14 +118,14 @@ def test_xcb_pixmap(xcb_conn): + gc = create_gc(xcb_conn) + + # create XCB surface on pixmap +- root_visual = find_root_visual(xcb_conn) +- surface = XCBSurface(xcb_conn, pixmap, root_visual, width, height) +- assert surface ++ # root_visual = find_root_visual(xcb_conn) ++ # surface = XCBSurface(xcb_conn, pixmap, root_visual, width, height) ++ # assert surface + + # use xcb surface to create context, draw white +- ctx = Context(surface) +- ctx.set_source_rgb(1, 1, 1) +- ctx.paint() ++ # ctx = Context(surface) ++ # ctx.set_source_rgb(1, 1, 1) ++ # ctx.paint() + + # map the window and wait for it to appear + xcb_conn.core.MapWindow(wid) +@@ -157,6 +157,7 @@ def test_xcb_pixmap(xcb_conn): + + @pytest.mark.xfail(cairo_version() < 11200, + reason="Cairo version too low") ++@pytest.skip("https://github.com/SimonSapin/cairocffi/issues/65") + def test_xcb_window(xcb_conn): + width = 10 + height = 10 diff --git a/dev-python/cairocffi/files/cairocffi-0.8.0-tests.patch b/dev-python/cairocffi/files/cairocffi-0.8.0-tests.patch new file mode 100644 index 000000000000..04839fd08efd --- /dev/null +++ b/dev-python/cairocffi/files/cairocffi-0.8.0-tests.patch @@ -0,0 +1,23 @@ +--- cairocffi-0.8.0/cairocffi/test_xcb.py ++++ cairocffi-0.8.0/cairocffi/test_xcb.py +@@ -118,14 +118,14 @@ + gc = create_gc(xcb_conn) + + # create XCB surface on pixmap +- root_visual = find_root_visual(xcb_conn) +- surface = XCBSurface(xcb_conn, pixmap, root_visual, width, height) +- assert surface ++ #root_visual = find_root_visual(xcb_conn) ++ #surface = XCBSurface(xcb_conn, pixmap, root_visual, width, height) ++ #assert surface + + # use xcb surface to create context, draw white +- ctx = Context(surface) +- ctx.set_source_rgb(1, 1, 1) +- ctx.paint() ++ #ctx = Context(surface) ++ #ctx.set_source_rgb(1, 1, 1) ++ #ctx.paint() + + # map the window and wait for it to appear + xcb_conn.core.MapWindow(wid) diff --git a/dev-python/cairocffi/files/mapping.patch b/dev-python/cairocffi/files/mapping.patch new file mode 100644 index 000000000000..14cae286617c --- /dev/null +++ b/dev-python/cairocffi/files/mapping.patch @@ -0,0 +1,10 @@ +diff -ur cairocffi-0.5.3.orig/docs/conf.py cairocffi-0.5.3/docs/conf.py +--- docs/conf.py 2013-05-24 10:33:32.000000000 +0800 ++++ docs/conf.py 2014-04-08 16:09:39.648229837 +0800 +@@ -14,6 +14,3 @@ + exclude_patterns = ['_build'] + autodoc_member_order = 'bysource' + autodoc_default_flags = ['members'] +-intersphinx_mapping = { +- 'http://docs.python.org/': None, +- 'http://cairographics.org/documentation/pycairo/2/': None} diff --git a/dev-python/cairocffi/metadata.xml b/dev-python/cairocffi/metadata.xml new file mode 100644 index 000000000000..53244c2d5005 --- /dev/null +++ b/dev-python/cairocffi/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>python@gentoo.org</email> + <name>Python</name> + </maintainer> + <upstream> + <remote-id type="pypi">cairocffi</remote-id> + <remote-id type="github">Kozea/cairocffi</remote-id> + </upstream> +</pkgmetadata> |