1 |
commit: 04065d01e2f837cee9e01641dc8633f5a1a3eb26 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jul 1 04:19:39 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jul 1 06:53:52 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=04065d01 |
7 |
|
8 |
dev-python/cffi: Bump to 1.15.1 |
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.15.1.ebuild | 65 ++++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 66 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/cffi/Manifest b/dev-python/cffi/Manifest |
17 |
index d02ce8a9359e..764da7e5fa57 100644 |
18 |
--- a/dev-python/cffi/Manifest |
19 |
+++ b/dev-python/cffi/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST cffi-1.15.0.tar.gz 484058 BLAKE2B 0d2d470c7eb11b8a9526be816b153c4483a5cfb529d3d220a804842facae1f06e2a822aa2be9abb1b5648cb36a97033bffc1dd235d83bdf8c075d67a907aa7d9 SHA512 ee83efde6f77f4a0c5889088c4c208ed7b9071fe06dfc16a8d2396de07f78fe859e1e39866760198a9d700f3b7359e8715e8a3e4907feb81d3fc4b8dd0dbaca1 |
22 |
+DIST cffi-1.15.1.tar.gz 508501 BLAKE2B accc317385d9af7dbed3397afde63fbab63bfc935376d951802055c63796863ed102a940f192789924480b9b16751c8cf3d21caf9b262c479c61ffc977aac83c SHA512 e99cafcb029076abc29e435b490fa0573ee2856f4051b7ca8a5b38cd125d56dd9dae8b189f59ceb3d728a675da8ee83239e09e19f8b0feeddea4b186ab5173a5 |
23 |
|
24 |
diff --git a/dev-python/cffi/cffi-1.15.1.ebuild b/dev-python/cffi/cffi-1.15.1.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000000..54f6e3ffe8b7 |
27 |
--- /dev/null |
28 |
+++ b/dev-python/cffi/cffi-1.15.1.ebuild |
29 |
@@ -0,0 +1,65 @@ |
30 |
+# Copyright 1999-2022 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+# please keep this ebuild at EAPI 7 -- sys-apps/portage dep |
34 |
+EAPI=7 |
35 |
+ |
36 |
+DISTUTILS_USE_PEP517=setuptools |
37 |
+# DO NOT ADD pypy to PYTHON_COMPAT |
38 |
+# pypy bundles a modified version of cffi. Use python_gen_cond_dep instead. |
39 |
+PYTHON_COMPAT=( python3_{8..11} ) |
40 |
+ |
41 |
+inherit distutils-r1 toolchain-funcs |
42 |
+ |
43 |
+DESCRIPTION="Foreign Function Interface for Python calling C code" |
44 |
+HOMEPAGE=" |
45 |
+ https://cffi.readthedocs.io/ |
46 |
+ https://pypi.org/project/cffi/ |
47 |
+" |
48 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
49 |
+ |
50 |
+LICENSE="MIT" |
51 |
+SLOT="0/${PV}" |
52 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~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" |
53 |
+ |
54 |
+DEPEND=" |
55 |
+ dev-libs/libffi:= |
56 |
+" |
57 |
+RDEPEND=" |
58 |
+ ${DEPEND} |
59 |
+ dev-python/pycparser[${PYTHON_USEDEP}] |
60 |
+" |
61 |
+BDEPEND=" |
62 |
+ ${RDEPEND} |
63 |
+ virtual/pkgconfig |
64 |
+" |
65 |
+ |
66 |
+distutils_enable_sphinx doc/source |
67 |
+distutils_enable_tests pytest |
68 |
+ |
69 |
+PATCHES=( |
70 |
+ "${FILESDIR}"/cffi-1.14.0-darwin-no-brew.patch |
71 |
+) |
72 |
+ |
73 |
+src_prepare() { |
74 |
+ if [[ ${CHOST} == *darwin* ]] ; then |
75 |
+ # Don't obsessively try to find libffi |
76 |
+ sed -i -e "s/.*\-iwithsysroot\/usr\/include\/ffi.*/\tpass/" setup.py || die |
77 |
+ fi |
78 |
+ distutils-r1_src_prepare |
79 |
+} |
80 |
+ |
81 |
+src_configure() { |
82 |
+ tc-export PKG_CONFIG |
83 |
+} |
84 |
+ |
85 |
+python_test() { |
86 |
+ local EPYTEST_IGNORE=( |
87 |
+ # these tests call pip |
88 |
+ testing/cffi0/test_zintegration.py |
89 |
+ ) |
90 |
+ |
91 |
+ "${EPYTHON}" -c "import _cffi_backend as backend" || die |
92 |
+ local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 |
93 |
+ epytest c testing |
94 |
+} |