diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-02-13 21:41:11 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-02-13 21:41:11 +0000 |
commit | c8d60dada2ec8eb48b2d2b290cd6683ccec40e39 (patch) | |
tree | c44943ee0563a3fa957716de909fed683117fcb9 /dev-python/pypcap | |
parent | 69051588e2f955485fe5d45d45e616bc60a2de57 (diff) |
gentoo (valentine's day) resync : 14.02.2021
Diffstat (limited to 'dev-python/pypcap')
-rw-r--r-- | dev-python/pypcap/Manifest | 2 | ||||
-rw-r--r-- | dev-python/pypcap/pypcap-1.2.3-r1.ebuild (renamed from dev-python/pypcap/pypcap-1.2.3.ebuild) | 28 |
2 files changed, 19 insertions, 11 deletions
diff --git a/dev-python/pypcap/Manifest b/dev-python/pypcap/Manifest index 4add0b266eea..01ca17c96f57 100644 --- a/dev-python/pypcap/Manifest +++ b/dev-python/pypcap/Manifest @@ -1,4 +1,4 @@ AUX pypcap-1.2.3-mktemp.patch 379 BLAKE2B 66a6fc449ce5863a0650a7cae5589b52e307559d2ad7220aead363b7b55f816e794df5829a594044efb35b0d283a52fa141445851247994c91d8fbe30353cdb7 SHA512 bac25f5f1b6080e8abca6c1ee7229070651abda020ac67d7d83b1ceb6141ae73dab8aa8a29966760021eea55d28d2e7b124919a29ca6ce1d1cf8caf0e0c9ce67 DIST pypcap-1.2.3.tar.gz 151087 BLAKE2B c40e83d46b37deb4064877dfcf64582ff5da272a0d416b51faa43c4bd20625b473c624818aad70238f9429fac2455ae5b0516279faf1612f76f289b53d55417e SHA512 e4f701b6637fbcaf847d72eddc1ed344438008c2f8cbd334c9ce5fe17c9ec36f1f2cb1a146a218b8e464a7eb9a57217a8834a82a035ee96c3c1b56ec70e53bff -EBUILD pypcap-1.2.3.ebuild 697 BLAKE2B 33555d9c4352053ad6db56463f9b5ede32b0c535310384ea5793f456532a4a87a0e5bdd379e1bf3add7b205aae2aa86156fe616e3c041f15ba000b23cdff361d SHA512 3a9c08ce5788ccfaab8473ab7b589d11e3b8746c674b954b60e06feb361be69abb05c6237e2581f38fb323f83dbd086b3f5e1cfe7d6e63d5b3c73f910abbeb52 +EBUILD pypcap-1.2.3-r1.ebuild 892 BLAKE2B 4e1874cf078f6046eca22ef17ba2a53833c2eef23e2ec4a8d22ba9b077eaf287d22a10b830f5020d47d1f46c51301c50c179b2981a217a7ca6092e26a1748f16 SHA512 194ee4366e0d8f2ce3fdaef614db4d8e491c68d104236e96c3650f7c8d850b39e16f0ae6d9296d9f28a8fb8032a057fdb797334b84b7858a990c9f9f8f974128 MISC metadata.xml 577 BLAKE2B 395c10694cd2a574aaf106be5e2487caa66b4b0234b6110d5c83263f5b4bdf9f9c7239ceeaf07f3cab99b7cb1582683fbc54051ab2b686360640e256c6c03084 SHA512 f50b1b47d18538d5a9ef3888eba98cca67fa919a5f3315fda54d098cfea595edbeefb62038035b07bc1b74cad3fdb56399c136512d6cb5b71ddf240594261c98 diff --git a/dev-python/pypcap/pypcap-1.2.3.ebuild b/dev-python/pypcap/pypcap-1.2.3-r1.ebuild index 345238ce8b9f..d2b7e4073d38 100644 --- a/dev-python/pypcap/pypcap-1.2.3.ebuild +++ b/dev-python/pypcap/pypcap-1.2.3-r1.ebuild @@ -1,8 +1,9 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=6 -PYTHON_COMPAT=( python3_7 ) +EAPI=7 + +PYTHON_COMPAT=( python3_{7,8,9} ) inherit distutils-r1 DESCRIPTION="Simplified object-oriented Python extension module for libpcap" @@ -13,18 +14,25 @@ LICENSE="BSD" SLOT="0" KEYWORDS="~amd64 ~x86" -RDEPEND=" - net-libs/libpcap -" -DEPEND=" - ${RDEPEND} - dev-python/setuptools[${PYTHON_USEDEP}] -" +BDEPEND="dev-python/cython[${PYTHON_USEDEP}]" +RDEPEND="net-libs/libpcap" +DEPEND="${RDEPEND}" + PATCHES=( "${FILESDIR}"/${PN}-1.2.3-mktemp.patch ) python_compile() { local -x CFLAGS="${CFLAGS} -fno-strict-aliasing" + + # Needed to gain Python 3.9 compatibility + cython pcap.pyx || die "Failed to regenerate pcap.pyx" + + # Now build as usual distutils-r1_python_compile } + +python_test() { + cd tests || die + "${EPYTHON}" test.py || die +} |