From f96eb42eff579129a15de1e0807d8375fee6997d Mon Sep 17 00:00:00 2001 From: "Liguros - Gitlab CI/CD [feature/flatten]" Date: Mon, 28 Sep 2020 18:27:41 +0000 Subject: Updating liguros repo --- dev-python/pycairo-python2/Manifest | 1 + .../files/pycairo-1.19.1-py39.patch | 26 +++++++++++++ dev-python/pycairo-python2/metadata.xml | 8 ++++ .../pycairo-python2/pycairo-python2-1.18.2.ebuild | 44 ++++++++++++++++++++++ 4 files changed, 79 insertions(+) create mode 100644 dev-python/pycairo-python2/Manifest create mode 100644 dev-python/pycairo-python2/files/pycairo-1.19.1-py39.patch create mode 100644 dev-python/pycairo-python2/metadata.xml create mode 100644 dev-python/pycairo-python2/pycairo-python2-1.18.2.ebuild (limited to 'dev-python/pycairo-python2') diff --git a/dev-python/pycairo-python2/Manifest b/dev-python/pycairo-python2/Manifest new file mode 100644 index 000000000000..131b894f4cab --- /dev/null +++ b/dev-python/pycairo-python2/Manifest @@ -0,0 +1 @@ +DIST pycairo-1.18.2.tar.gz 200462 BLAKE2B 1f755dc90fe3ee50aa68273a0816752312f144831ff857709e1a4695a58646ffe6be518733480ed37231c213a11d4e5aaf8dfd1cfa68104873bc7d4192435b89 SHA512 279ea80413ba55d493d51455685da09afa1f5c45e2930c3fca3e417a8afe6645a0d8131201f79482de59e5ec56cfef62eac65ed88fe88866bfcc06503dcc59e0 diff --git a/dev-python/pycairo-python2/files/pycairo-1.19.1-py39.patch b/dev-python/pycairo-python2/files/pycairo-1.19.1-py39.patch new file mode 100644 index 000000000000..97b20227ce8b --- /dev/null +++ b/dev-python/pycairo-python2/files/pycairo-1.19.1-py39.patch @@ -0,0 +1,26 @@ +From 3ecf0a4060d6de3b92a77a393ece663455cf6add Mon Sep 17 00:00:00 2001 +From: Christoph Reiter +Date: Sun, 10 May 2020 11:22:40 +0200 +Subject: [PATCH] tests: Fix syntax issue with Python 3.9 + +https://bugs.python.org/issue40246 + +I haven't actually tested with 3.9 yet, so this is just what I found +with grep. +--- + tests/test_enums.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/tests/test_enums.py b/tests/test_enums.py +index 4bc2e3d..02756d0 100644 +--- a/tests/test_enums.py ++++ b/tests/test_enums.py +@@ -79,7 +79,7 @@ def get_prefix(t): + # special case.. + if name == "PathDataType": + name = "Path" +- return"_".join([s.upper() for s in re.findall('[A-Z][^A-Z]*', name)]) ++ return "_".join([s.upper() for s in re.findall('[A-Z][^A-Z]*', name)]) + + for t in types_: + for name in dir(t): diff --git a/dev-python/pycairo-python2/metadata.xml b/dev-python/pycairo-python2/metadata.xml new file mode 100644 index 000000000000..738be6193a4f --- /dev/null +++ b/dev-python/pycairo-python2/metadata.xml @@ -0,0 +1,8 @@ + + + + + maintainer-wanted + + calculatelinux-overlay + diff --git a/dev-python/pycairo-python2/pycairo-python2-1.18.2.ebuild b/dev-python/pycairo-python2/pycairo-python2-1.18.2.ebuild new file mode 100644 index 000000000000..979d581a7e54 --- /dev/null +++ b/dev-python/pycairo-python2/pycairo-python2-1.18.2.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +PYTHON_COMPAT=( python2_7 ) +PYTHON_REQ_USE="threads(+)" + +inherit distutils-r1 + +MY_PN=pycairo +MY_P=$MY_PN-$PV +DESCRIPTION="Python bindings for the cairo library" +HOMEPAGE="https://www.cairographics.org/pycairo/ https://github.com/pygobject/pycairo" +SRC_URI="https://github.com/pygobject/${MY_PN}/releases/download/v${PV}/${MY_P}.tar.gz" + +LICENSE="|| ( LGPL-2.1 MPL-1.1 )" +SLOT="0" +KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" +IUSE="" +RESTRICT="test" + +RDEPEND=" + !dev-python/${MY_PN}[python_targets_python2_7] + >=x11-libs/cairo-1.13.1[svg] +" +DEPEND="${RDEPEND}" +S="${WORKDIR}/${MY_PN}-${PV}" + +distutils_enable_sphinx docs \ + dev-python/sphinx_rtd_theme +distutils_enable_tests setup.py + +python_install() { + distutils-r1_python_install \ + install_pkgconfig --pkgconfigdir="${EPREFIX}/usr/$(get_libdir)/pkgconfig" +} + +python_install_all() { + distutils-r1_python_install_all + rm -r ${D}/usr/share + rm -r ${D}/usr/lib*/pkgconfig + rm -r ${D}/usr/include +} -- cgit v1.3.1