/[gentoo-x86]/dev-python/pypam/pypam-0.5.0.ebuild
Gentoo

Contents of /dev-python/pypam/pypam-0.5.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Sun Mar 23 03:00:45 2014 UTC (6 years, 4 months ago) by idella4
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +1 -1 lines
FILE REMOVED
keyworded ~arm, built on cubieboard2, (required for xen-tools), rm old

(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 0xB8072B0D)

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

  ViewVC Help
Powered by ViewVC 1.1.20