commit:     9f5615198ca1d3166eca3cb34d1124d5c705449f
Author:     Tomáš Mózes <hydrapolic <AT> gmail <DOT> com>
AuthorDate: Mon Dec 20 20:27:51 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Dec 21 01:27:32 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9f561519

dev-python/pypam: update to EAPI 8, add Python 3.10

Signed-off-by: Tomáš Mózes <hydrapolic <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-python/pypam/pypam-0.5.0-r7.ebuild | 45 ++++++++++++++++++++++++++++++++++
 1 file changed, 45 insertions(+)

diff --git a/dev-python/pypam/pypam-0.5.0-r7.ebuild 
b/dev-python/pypam/pypam-0.5.0-r7.ebuild
new file mode 100644
index 000000000000..a7a3593a67d9
--- /dev/null
+++ b/dev-python/pypam/pypam-0.5.0-r7.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_SETUPTOOLS=no
+MY_P="PyPAM-${PV}"
+PYTHON_COMPAT=( python3_{7..10} )
+inherit distutils-r1 flag-o-matic
+
+DESCRIPTION="Python Bindings for PAM (Pluggable Authentication Modules)"
+HOMEPAGE="http://www.pangalactic.org/PyPAM";
+SRC_URI="http://www.pangalactic.org/PyPAM/${MY_P}.tar.gz
+       https://distfiles.gentoo.org/distfiles/ad/PyPAM-0.5.0.tar.gz";
+S="${WORKDIR}/${MY_P}"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86"
+IUSE=""
+
+DEPEND=">=sys-libs/pam-0.64"
+RDEPEND="${DEPEND}"
+
+DOCS=( AUTHORS examples/pamtest.py )
+
+PATCHES=(
+       # Pull patches from fedora.
+       "${FILESDIR}/PyPAM-${PV}-dealloc.patch"
+       "${FILESDIR}/PyPAM-${PV}-nofree.patch"
+       "${FILESDIR}/PyPAM-${PV}-memory-errors.patch"
+       "${FILESDIR}/PyPAM-${PV}-return-value.patch"
+       "${FILESDIR}/PyPAM-python3-support.patch"
+       # Fix a missing include.
+       "${FILESDIR}/${P}-stricter.patch"
+)
+
+src_compile() {
+       append-cflags -fno-strict-aliasing
+       distutils-r1_src_compile
+}
+
+python_test() {
+       "${PYTHON}" tests/PamTest.py || die
+}

Reply via email to