commit:     04065d01e2f837cee9e01641dc8633f5a1a3eb26
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Jul  1 04:19:39 2022 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Jul  1 06:53:52 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=04065d01

dev-python/cffi: Bump to 1.15.1

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/cffi/Manifest           |  1 +
 dev-python/cffi/cffi-1.15.1.ebuild | 65 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 66 insertions(+)

diff --git a/dev-python/cffi/Manifest b/dev-python/cffi/Manifest
index d02ce8a9359e..764da7e5fa57 100644
--- a/dev-python/cffi/Manifest
+++ b/dev-python/cffi/Manifest
@@ -1 +1,2 @@
 DIST cffi-1.15.0.tar.gz 484058 BLAKE2B 
0d2d470c7eb11b8a9526be816b153c4483a5cfb529d3d220a804842facae1f06e2a822aa2be9abb1b5648cb36a97033bffc1dd235d83bdf8c075d67a907aa7d9
 SHA512 
ee83efde6f77f4a0c5889088c4c208ed7b9071fe06dfc16a8d2396de07f78fe859e1e39866760198a9d700f3b7359e8715e8a3e4907feb81d3fc4b8dd0dbaca1
+DIST cffi-1.15.1.tar.gz 508501 BLAKE2B 
accc317385d9af7dbed3397afde63fbab63bfc935376d951802055c63796863ed102a940f192789924480b9b16751c8cf3d21caf9b262c479c61ffc977aac83c
 SHA512 
e99cafcb029076abc29e435b490fa0573ee2856f4051b7ca8a5b38cd125d56dd9dae8b189f59ceb3d728a675da8ee83239e09e19f8b0feeddea4b186ab5173a5

diff --git a/dev-python/cffi/cffi-1.15.1.ebuild 
b/dev-python/cffi/cffi-1.15.1.ebuild
new file mode 100644
index 000000000000..54f6e3ffe8b7
--- /dev/null
+++ b/dev-python/cffi/cffi-1.15.1.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+# please keep this ebuild at EAPI 7 -- sys-apps/portage dep
+EAPI=7
+
+DISTUTILS_USE_PEP517=setuptools
+# DO NOT ADD pypy to PYTHON_COMPAT
+# pypy bundles a modified version of cffi. Use python_gen_cond_dep instead.
+PYTHON_COMPAT=( python3_{8..11} )
+
+inherit distutils-r1 toolchain-funcs
+
+DESCRIPTION="Foreign Function Interface for Python calling C code"
+HOMEPAGE="
+       https://cffi.readthedocs.io/
+       https://pypi.org/project/cffi/
+"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0/${PV}"
+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"
+
+DEPEND="
+       dev-libs/libffi:=
+"
+RDEPEND="
+       ${DEPEND}
+       dev-python/pycparser[${PYTHON_USEDEP}]
+"
+BDEPEND="
+       ${RDEPEND}
+       virtual/pkgconfig
+"
+
+distutils_enable_sphinx doc/source
+distutils_enable_tests pytest
+
+PATCHES=(
+       "${FILESDIR}"/cffi-1.14.0-darwin-no-brew.patch
+)
+
+src_prepare() {
+       if [[ ${CHOST} == *darwin* ]] ; then
+               # Don't obsessively try to find libffi
+               sed -i -e "s/.*\-iwithsysroot\/usr\/include\/ffi.*/\tpass/" 
setup.py || die
+       fi
+       distutils-r1_src_prepare
+}
+
+src_configure() {
+       tc-export PKG_CONFIG
+}
+
+python_test() {
+       local EPYTEST_IGNORE=(
+               # these tests call pip
+               testing/cffi0/test_zintegration.py
+       )
+
+       "${EPYTHON}" -c "import _cffi_backend as backend" || die
+       local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+       epytest c testing
+}

Reply via email to