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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Sat Aug 1 10:22:57 2015 UTC (5 years ago) by patrick
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +2 -2 lines
Add py3.4 hugs, fix test deps

(Portage version: 2.2.20/cvs/Linux x86_64, unsigned Manifest commit)

1 # Copyright 1999-2015 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-r3.ebuild,v 1.3 2015/06/17 07:31:44 ago Exp $
4
5 EAPI=5
6 PYTHON_COMPAT=( python{2_7,3_3,3_4} )
7
8 inherit distutils-r1 flag-o-matic
9
10 MY_PN="PyPAM"
11 MY_P="${MY_PN}-${PV}"
12
13 DESCRIPTION="Python Bindings for PAM (Pluggable Authentication Modules)"
14 HOMEPAGE="http://www.pangalactic.org/PyPAM"
15 SRC_URI="http://www.pangalactic.org/PyPAM/${MY_P}.tar.gz"
16
17 LICENSE="LGPL-2.1"
18 SLOT="0"
19 KEYWORDS="amd64 ~arm ~arm64 x86"
20 IUSE=""
21
22 DEPEND=">=sys-libs/pam-0.64"
23 RDEPEND="${DEPEND}"
24
25 S="${WORKDIR}/${MY_P}"
26
27 DOCS=( AUTHORS examples/pamtest.py )
28
29 PATCHES=(
30 # Pull patches from fedora.
31 "${FILESDIR}/PyPAM-${PV}-dealloc.patch"
32 "${FILESDIR}/PyPAM-${PV}-nofree.patch"
33 "${FILESDIR}/PyPAM-${PV}-memory-errors.patch"
34 "${FILESDIR}/PyPAM-${PV}-return-value.patch"
35 "${FILESDIR}/PyPAM-python3-support.patch"
36 # Fix a missing include.
37 "${FILESDIR}/${P}-stricter.patch"
38 )
39
40 src_compile() {
41 append-cflags -fno-strict-aliasing
42 distutils-r1_src_compile
43 }
44
45 python_test() {
46 "${PYTHON}" tests/PamTest.py
47 }

  ViewVC Help
Powered by ViewVC 1.1.20