diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-08-08 12:38:45 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-08-08 12:38:45 +0100 |
commit | 14866757225815b9374acfc8453518951e0f910d (patch) | |
tree | 3fc69d84de25c5d40515dc05fdf5c5934ed69955 /dev-python/cffi | |
parent | b8c7370a682e4e29cda623222d17a790c01c3642 (diff) |
gentoo auto-resync : 08:08:2024 - 12:38:45
Diffstat (limited to 'dev-python/cffi')
-rw-r--r-- | dev-python/cffi/Manifest | 2 | ||||
-rw-r--r-- | dev-python/cffi/cffi-1.17.0.ebuild | 71 |
2 files changed, 73 insertions, 0 deletions
diff --git a/dev-python/cffi/Manifest b/dev-python/cffi/Manifest index 58c266c07a0b..ddda461849aa 100644 --- a/dev-python/cffi/Manifest +++ b/dev-python/cffi/Manifest @@ -1,8 +1,10 @@ AUX cffi-1.14.0-darwin-no-brew.patch 568 BLAKE2B 43afdb086a0385e913f287bc5c1534df1b881058cf7efdfdecd9df063c27ebd26683edad43e3010e1c01d9d93c5d98785ffbe65a5e3317d96ebb6a3132aecdab SHA512 75335871b8f98223e0247defc3d08f1c10ebed58c79790826c4e39057e6757b8bdc07e2773ad25482ed17c13480b3e72b3667e48697a456ed0cc4a39e7d91b79 DIST cffi-1.16.0.tar.gz 512873 BLAKE2B 9e8d107b3124a072e559c4a536b54a172e90f9fe51d8184dacc2914a8ffa84f2682eee9c90401325dfb0f36f3f8ea0456afc93e2b85a4fef5f07ae4475e0a76b SHA512 fd2588115092202aa9289c9d4e0a0b3e264b5e9ec1dc192950f31aeb412fd9f9d4e5c96a3f9c6762987b58ccc1e229f2012ddda89211797104df672d8ed51152 +DIST cffi-1.17.0.tar.gz 516073 BLAKE2B e050689b58b4a34e3f605f84b3b6a59ec44359bfb042796f82e1acb6349b65ca37f9fb7a0d4ffc7fe40b85416288dcc1f3496968c4fb3f36cdd2c0042658f7b1 SHA512 8516abe177c2acfc31ede401287956cc4dc486b26ed9c4752811be71dc6bc94af3adf1f1f685a94e7242f052b74768bfbbb30ce41a3c23b9259c91449347566e DIST cffi-1.17.0rc1.tar.gz 516063 BLAKE2B 02f25fde28a070c314deb5870d2285a0cfd2fd10d0136b3c5459d4bb11454722d61dfe0e5f27a7268a4aca8cadb2a9df045340094bcf98f1692f54ddea6df714 SHA512 757ccaf09a745cd04a31d0b2fcc46f438269b79b88c4a89aa7dd2f0dd1bc1b64fb9f9fde2461407e1c0482c1c64e837283e21d0b46dbcb0c4ccd5e54a8319a0e DIST cffi-d7f750b1b1c5ea4da5aa537b9baba0e01b0ce843.gh.tar.gz 523050 BLAKE2B 498085e9bc497eb1abf2d2e26e2cdb9d7544509b2c1686b306930c2da8a39a5ef133b77302761b44d5231c5255ef30cbd22579c79921dc2dc71e723ff5624939 SHA512 a0d1eb7bf8df12331d3493d86894ba062f7a15f4e7421863d44e264d4ca40ef864c7574d42cb7a4f2ea44ab80242942d6f4c8772c64b8dd0789aeb9f1908fc89 EBUILD cffi-1.16.0.ebuild 1738 BLAKE2B 403b4dc5bb47dec2abbc30c21a894685c329214fa943bc7fab68260d2ab921cf5bd1a16832bae8e244124ad8d8af34d0f94fdadde981a514a862905c1fccb1c3 SHA512 3bb914dae82263f729baa2e0bb50ebd14697c6efe52404328c969301be9a83ab659df460aac5764ad9035fcb24bfc10d5bf4fde714597ee57d359c246d63cda1 +EBUILD cffi-1.17.0.ebuild 1685 BLAKE2B 7cd72a5021febae97a589108b60b870e13290f2573ee3a2699b472f35eb6ad2077b1493ecf6ea5bc17b53ab92d2b314bb75a05a4ea6de3d89455804eeb1b479b SHA512 a5651b0767fd148b5f7e71ccebfa92d7bb0784e245605bd5c8597cdd9910d5cd2bb5376337e9b586915324787d3ef28f1fa1ffdcdd16a8b2ee58990bf5cc8080 EBUILD cffi-1.17.0_pre20240424.ebuild 1883 BLAKE2B 4509949cb33dd292be9c3b8e69d87691ef3c217f65f93901fed0fda0b1c02d0d6b0e5c64605ec9d9127e2295b1448e118432958f12339ac0517f692f1b26c7f4 SHA512 5ff23616b55de9ee36d67e095375b35c9362ca3599bc6f949d43e786ada750665ca4d0c7f981be0ad9f2164c676772a1d164deab4719618e3d892ae8958a48f0 EBUILD cffi-1.17.0_rc1.ebuild 1678 BLAKE2B b439e2f56605c373953e7071f8b7282e8ec4511b26c5dc5984ff269be9fdc0b2c4c9422303902a8afee2dc75813892c8bf257cf5b83814cff61d33b089d3ed2e SHA512 d290ad8c7a4ec8bbc13946f9975147e81a3202a1cf8c44e26b20efa183465d8e32665be7b77f2115b00d4b430559df6b9b4cf2b7f79d25547f7f9de4723dfaf3 MISC metadata.xml 376 BLAKE2B 869698c9756447929b5607d37c334442d76fef960c109ebe3b807de5019339de4ce19009d70b2eba506ee2608db9454c277cfb07ea025a39be6ea65b2ed93f74 SHA512 84c109a295e6f272c03107b69431f213dff9042a7e5c784dc725728aeb3a60dbf9c860551aae6260e5fc2dadeaa6eb27488186abe1d108bb21145d736de7e5b6 diff --git a/dev-python/cffi/cffi-1.17.0.ebuild b/dev-python/cffi/cffi-1.17.0.ebuild new file mode 100644 index 000000000000..70749e8b0345 --- /dev/null +++ b/dev-python/cffi/cffi-1.17.0.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +# please keep this ebuild at EAPI 8 -- sys-apps/portage dep +EAPI=8 + +DISTUTILS_EXT=1 +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_{10..13} ) + +inherit distutils-r1 toolchain-funcs pypi + +DESCRIPTION="Foreign Function Interface for Python calling C code" +HOMEPAGE=" + https://cffi.readthedocs.io/ + https://pypi.org/project/cffi/ +" + +LICENSE="MIT" +SLOT="0/${PV}" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris" + +# Needs recent libffi for HPPA fixes +DEPEND=" + >=dev-libs/libffi-3.4.4-r1:= +" +# setuptools as a modern distutils provider +RDEPEND=" + ${DEPEND} + dev-python/pycparser[${PYTHON_USEDEP}] + dev-python/setuptools[${PYTHON_USEDEP}] +" +BDEPEND=" + ${RDEPEND} + virtual/pkgconfig + test? ( + dev-python/py[${PYTHON_USEDEP}] + ) +" + +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 src/c testing +} |