blob: 676316bb984ad7288761c4a3c99c5adce06c7690 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/pypam/pypam-0.5.0.ebuild,v 1.6 2011/11/29 23:36:57 chainsaw Exp $
EAPI="3"
PYTHON_DEPEND="2"
SUPPORT_PYTHON_ABIS="1"
RESTRICT_PYTHON_ABIS="3.* *-jython"
inherit distutils eutils
MY_PN="PyPAM"
MY_P="${MY_PN}-${PV}"
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"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
DEPEND=">=sys-libs/pam-0.64"
RDEPEND="${DEPEND}"
S="${WORKDIR}/${MY_P}"
PYTHON_CFLAGS=("2.* + -fno-strict-aliasing")
DOCS="AUTHORS examples/pamtest.py"
src_prepare() {
distutils_src_prepare
# Fix a PyObject/PyMEM mixup.
epatch "${FILESDIR}/${P}-python-2.5.patch"
# Fix a missing include.
epatch "${FILESDIR}/${P}-stricter.patch"
}
src_test() {
testing() {
PYTHONPATH="$(ls -d build-${PYTHON_ABI}/lib.*)" "$(PYTHON)" tests/PamTest.py
}
python_execute_function testing
}
|