1 |
commit: 7becd856ada4d067ae2d6c8f7c33308c54b9ad5f |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jul 9 06:39:51 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jul 9 07:26:05 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7becd856 |
7 |
|
8 |
dev-python/cffi: Bump to 1.14.6 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/cffi/Manifest | 1 + |
13 |
dev-python/cffi/cffi-1.14.6.ebuild | 50 ++++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 51 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/cffi/Manifest b/dev-python/cffi/Manifest |
17 |
index d8dd88ec871..1fb2acd163b 100644 |
18 |
--- a/dev-python/cffi/Manifest |
19 |
+++ b/dev-python/cffi/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST cffi-1.14.5.tar.gz 475055 BLAKE2B d8a1f83aace8329216f5d36b2e8a27f62803fe9ad12c2d29aa1b3f730d1beb8bad0f50e17102c8673471a7bef57b0755157c4e1bf1a50779ed20b1cfcbb2043a SHA512 7428b3f6e4ee9f3b91011e43304dd63e5cc48479120ae58298c646c1ec1f5c24525d5f08655a7fed70c5fad7ae0c2e0539e512b5fa49d2bc57669c4ab703cc2a |
22 |
+DIST cffi-1.14.6.tar.gz 475744 BLAKE2B 46e3f1f61746f659c066d83fdb07b83c289eda68056c6f9e364ea6f30cd56c190e4fdb35586c064b2402483704a7c1e9399d7f30cb49a78eec21797146da36f2 SHA512 30a8b25b74921a90a1fa96d05de1f25437d0fbbf73b7de0bb9ce22dfcaccbd78376b605525fe970212221d3e598357a9b1da420bfbd1a3e513263ed2b789e813 |
23 |
|
24 |
diff --git a/dev-python/cffi/cffi-1.14.6.ebuild b/dev-python/cffi/cffi-1.14.6.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..52e37d7afcc |
27 |
--- /dev/null |
28 |
+++ b/dev-python/cffi/cffi-1.14.6.ebuild |
29 |
@@ -0,0 +1,50 @@ |
30 |
+# Copyright 1999-2021 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=8 |
34 |
+ |
35 |
+# DO NOT ADD pypy to PYTHON_COMPAT |
36 |
+# pypy bundles a modified version of cffi. Use python_gen_cond_dep instead. |
37 |
+PYTHON_COMPAT=( python3_{8..10} ) |
38 |
+inherit distutils-r1 toolchain-funcs |
39 |
+ |
40 |
+DESCRIPTION="Foreign Function Interface for Python calling C code" |
41 |
+HOMEPAGE="https://cffi.readthedocs.io/ https://pypi.org/project/cffi/" |
42 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
43 |
+ |
44 |
+LICENSE="MIT" |
45 |
+SLOT="0/${PV}" |
46 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
47 |
+ |
48 |
+DEPEND="dev-libs/libffi:=" |
49 |
+RDEPEND="${DEPEND} |
50 |
+ dev-python/pycparser[${PYTHON_USEDEP}]" |
51 |
+BDEPEND="${RDEPEND} |
52 |
+ virtual/pkgconfig" |
53 |
+ |
54 |
+distutils_enable_sphinx doc/source |
55 |
+distutils_enable_tests pytest |
56 |
+ |
57 |
+PATCHES=( |
58 |
+ "${FILESDIR}"/cffi-1.14.0-darwin-no-brew.patch |
59 |
+) |
60 |
+ |
61 |
+src_prepare() { |
62 |
+ if [[ ${CHOST} == *darwin* ]] ; then |
63 |
+ # Don't obsessively try to find libffi |
64 |
+ sed -i -e "s/.*\-iwithsysroot\/usr\/include\/ffi.*/\tpass/" setup.py || die |
65 |
+ fi |
66 |
+ distutils-r1_src_prepare |
67 |
+} |
68 |
+ |
69 |
+src_configure() { |
70 |
+ tc-export PKG_CONFIG |
71 |
+} |
72 |
+ |
73 |
+python_test() { |
74 |
+ "${EPYTHON}" -c "import _cffi_backend as backend" || die |
75 |
+ epytest \ |
76 |
+ --ignore testing/test_zintegration.py \ |
77 |
+ --ignore testing/embedding \ |
78 |
+ c/ testing/ |
79 |
+} |