add certifi-2019.3.9 & cffi-1.12.2
This commit is contained in:
3
dev-python/cffi/Manifest
Normal file
3
dev-python/cffi/Manifest
Normal file
@@ -0,0 +1,3 @@
|
||||
DIST cffi-1.12.2.tar.gz 453893 BLAKE2B 653b543acdb30c5200706de578ae9d9ba3e856385ba4a2350f9d9847457f9ba5354cba6821f0b5fc9e63fe3e68612559a67633b4f9242ed4907f18d47a786db1 SHA512 af4fe47cf5d6f1126222898365cfa21e9f11d0e71b87d869014dbb37af30dca9ddf50c989030d0f610f50e8099e8dfd08a688d8c3629abbcc4f0294f5f91b817
|
||||
EBUILD cffi-1.12.2.ebuild 1579 BLAKE2B f52a516db9e8eee747177c30a818ca1393aa85c3331b9b785ea3e7a9952483f8afdcf9d244cf59b1a5c90f187f6a4cf6f66ed6454b87a96e7cae3c9923a4c40a SHA512 546f7cb05e783dcaffd517f2cb4275b57b0dd82a45f3fbee384073248a81b72d518057ceba8dd99e8d17a5bba6f38f5cb7a9d6e5dd36abb9bc0e4e4569851f15
|
||||
MISC metadata.xml 317 BLAKE2B b6416209bd2358c42c2be3bd228238b401bf126919b6e7371d83d7cec8cb55a40f89db562701cc8f3dfa904e225426881b22ff1d3b72085365b5caf9b8c6a403 SHA512 0744ca7b98b2ebe2985bf2a81a337d09be62cfaa51f8380bac52f8d30941e997f09be20e28caf6967226a71369003cf35977790aba56ed0d469cc490cfa089b6
|
||||
54
dev-python/cffi/cffi-1.12.2.ebuild
Normal file
54
dev-python/cffi/cffi-1.12.2.ebuild
Normal file
@@ -0,0 +1,54 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
# DO NOT ADD pypy to PYTHON_COMPAT
|
||||
# pypy bundles a modified version of cffi. Use python_gen_cond_dep instead.
|
||||
PYTHON_COMPAT=( python2_7 python3_{4,5,6,7} )
|
||||
|
||||
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 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="doc test"
|
||||
|
||||
RDEPEND="
|
||||
virtual/libffi:=
|
||||
dev-python/pycparser[${PYTHON_USEDEP}]"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig
|
||||
doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
|
||||
test? ( dev-python/pytest[${PYTHON_USEDEP}] )"
|
||||
|
||||
# Avoid race on _configtest.c (distutils/command/config.py:_gen_temp_sourcefile)
|
||||
DISTUTILS_IN_SOURCE_BUILD=1
|
||||
|
||||
src_configure() {
|
||||
tc-export PKG_CONFIG
|
||||
}
|
||||
|
||||
python_compile_all() {
|
||||
use doc && emake -C doc html
|
||||
}
|
||||
|
||||
python_test() {
|
||||
einfo "$PYTHONPATH"
|
||||
$PYTHON -c "import _cffi_backend as backend" || die
|
||||
PYTHONPATH="${PYTHONPATH}" \
|
||||
py.test -x -v \
|
||||
--ignore testing/test_zintegration.py \
|
||||
--ignore testing/embedding \
|
||||
c/ testing/ \
|
||||
|| die "Testing failed with ${EPYTHON}"
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
use doc && local HTML_DOCS=( doc/build/html/. )
|
||||
distutils-r1_python_install_all
|
||||
}
|
||||
11
dev-python/cffi/metadata.xml
Normal file
11
dev-python/cffi/metadata.xml
Normal file
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>python@gentoo.org</email>
|
||||
<name>Python</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="pypi">cffi</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
Reference in New Issue
Block a user