blob: 654b43fabe51cacc6897af7efece5a4c4292b364 (
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
48
49
50
51
52
|
# Copyright 1999-2007 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.2 2007/06/24 14:18:26 angelos Exp $
inherit distutils eutils
MY_P=${P/pypam/PyPAM}
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}
DOCS="AUTHORS examples/pamtest.py"
src_unpack() {
unpack ${A}
cd "${S}"
# Fix a PyObject/PyMEM mixup.
epatch "${FILESDIR}/${P}-python-2.5.patch"
# Fix a missing include.
epatch "${FILESDIR}/${P}-stricter.patch"
}
src_test() {
"${python}" setup.py install --home="${T}/test" \
|| die "testinstall failed"
PYTHONPATH="${T}/test/$(get_libdir)/python" "${python}" tests/PamTest.py \
|| die "tests failed"
}
pkg_postinst() {
# HACK: we do not install any .py files, so there is no reason to
# run python_mod_optimize here, like distutils_pkg_postrm does.
:
}
pkg_postrm() {
# HACK: we do not install any .py files, so there is no reason to
# run python_mod_cleanup here, like distutils_pkg_postrm does.
:
}
|