Gentoo Archives: gentoo-commits

From: Yixun Lan <dlan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pypam/
Date: Thu, 30 Apr 2020 14:46:05
Message-Id: 1588257751.2826275d584e67d81d323706b7dab09d94fc76ed.dlan@gentoo
1 commit: 2826275d584e67d81d323706b7dab09d94fc76ed
2 Author: Tomáš Mózes <hydrapolic <AT> gmail <DOT> com>
3 AuthorDate: Tue Apr 28 14:16:25 2020 +0000
4 Commit: Yixun Lan <dlan <AT> gentoo <DOT> org>
5 CommitDate: Thu Apr 30 14:42:31 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2826275d
7
8 dev-python/pypam: add python3.{7,8} support
9
10 Bug: https://bugs.gentoo.org/719426
11 Signed-off-by: Tomáš Mózes <hydrapolic <AT> gmail.com>
12 Signed-off-by: Yixun Lan <dlan <AT> gentoo.org>
13
14 dev-python/pypam/pypam-0.5.0-r4.ebuild | 46 ++++++++++++++++++++++++++++++++++
15 1 file changed, 46 insertions(+)
16
17 diff --git a/dev-python/pypam/pypam-0.5.0-r4.ebuild b/dev-python/pypam/pypam-0.5.0-r4.ebuild
18 new file mode 100644
19 index 00000000000..d26ff5f7409
20 --- /dev/null
21 +++ b/dev-python/pypam/pypam-0.5.0-r4.ebuild
22 @@ -0,0 +1,46 @@
23 +# Copyright 1999-2020 Gentoo Authors
24 +# Distributed under the terms of the GNU General Public License v2
25 +
26 +EAPI=5
27 +PYTHON_COMPAT=( python2_7 python3_{6,7,8} )
28 +
29 +inherit distutils-r1 flag-o-matic
30 +
31 +MY_PN="PyPAM"
32 +MY_P="${MY_PN}-${PV}"
33 +
34 +DESCRIPTION="Python Bindings for PAM (Pluggable Authentication Modules)"
35 +HOMEPAGE="http://www.pangalactic.org/PyPAM"
36 +SRC_URI="http://www.pangalactic.org/PyPAM/${MY_P}.tar.gz"
37 +
38 +LICENSE="LGPL-2.1"
39 +SLOT="0"
40 +KEYWORDS="~amd64 ~arm ~arm64 ~x86"
41 +IUSE=""
42 +
43 +DEPEND=">=sys-libs/pam-0.64"
44 +RDEPEND="${DEPEND}"
45 +
46 +S="${WORKDIR}/${MY_P}"
47 +
48 +DOCS=( AUTHORS examples/pamtest.py )
49 +
50 +PATCHES=(
51 + # Pull patches from fedora.
52 + "${FILESDIR}/PyPAM-${PV}-dealloc.patch"
53 + "${FILESDIR}/PyPAM-${PV}-nofree.patch"
54 + "${FILESDIR}/PyPAM-${PV}-memory-errors.patch"
55 + "${FILESDIR}/PyPAM-${PV}-return-value.patch"
56 + "${FILESDIR}/PyPAM-python3-support.patch"
57 + # Fix a missing include.
58 + "${FILESDIR}/${P}-stricter.patch"
59 +)
60 +
61 +src_compile() {
62 + append-cflags -fno-strict-aliasing
63 + distutils-r1_src_compile
64 +}
65 +
66 +python_test() {
67 + "${PYTHON}" tests/PamTest.py
68 +}