1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 PYTHON_COMPAT=( python{2_7,3_6} )
7 inherit distutils-r1 flag-o-matic
12 DESCRIPTION="Python Bindings for PAM (Pluggable Authentication Modules)"
13 HOMEPAGE="http://www.pangalactic.org/PyPAM"
14 SRC_URI="http://www.pangalactic.org/PyPAM/${MY_P}.tar.gz"
18 KEYWORDS="amd64 ~arm ~arm64 x86"
21 DEPEND=">=sys-libs/pam-0.64"
24 S="${WORKDIR}/${MY_P}"
26 DOCS=( AUTHORS examples/pamtest.py )
29 # Pull patches from fedora.
30 "${FILESDIR}/PyPAM-${PV}-dealloc.patch"
31 "${FILESDIR}/PyPAM-${PV}-nofree.patch"
32 "${FILESDIR}/PyPAM-${PV}-memory-errors.patch"
33 "${FILESDIR}/PyPAM-${PV}-return-value.patch"
34 "${FILESDIR}/PyPAM-python3-support.patch"
35 # Fix a missing include.
36 "${FILESDIR}/${P}-stricter.patch"
40 append-cflags -fno-strict-aliasing
41 distutils-r1_src_compile
45 "${PYTHON}" tests/PamTest.py