summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2013-01-24 00:14:51 +0000
committerMike Gilbert <floppym@gentoo.org>2013-01-24 00:14:51 +0000
commit51db08c993e54dc4e69e32385ec912b9064abfd9 (patch)
tree5a170e8afa7789c22ff5a0b2005e4fae352b5a14 /dev-python/pypam/pypam-0.5.0-r2.ebuild
parentrevbump: bump eapi, update icon cache, respect CFLAGS wrt #453150 (diff)
downloadgentoo-2-51db08c993e54dc4e69e32385ec912b9064abfd9.tar.gz
gentoo-2-51db08c993e54dc4e69e32385ec912b9064abfd9.tar.bz2
gentoo-2-51db08c993e54dc4e69e32385ec912b9064abfd9.zip
Properly append -fno-strict-aliasing to CFLAGS.
(Portage version: 2.2.0_alpha159/cvs/Linux x86_64, signed Manifest commit with key 0BBEEA1FEA4843A4)
Diffstat (limited to 'dev-python/pypam/pypam-0.5.0-r2.ebuild')
-rw-r--r--dev-python/pypam/pypam-0.5.0-r2.ebuild43
1 files changed, 43 insertions, 0 deletions
diff --git a/dev-python/pypam/pypam-0.5.0-r2.ebuild b/dev-python/pypam/pypam-0.5.0-r2.ebuild
new file mode 100644
index 000000000000..0ea9461fbe21
--- /dev/null
+++ b/dev-python/pypam/pypam-0.5.0-r2.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2013 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-r2.ebuild,v 1.1 2013/01/24 00:14:51 floppym Exp $
+
+EAPI=5
+PYTHON_COMPAT=( python{2_5,2_6,2_7} )
+
+inherit distutils-r1 flag-o-matic
+
+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}"
+
+DOCS=( AUTHORS examples/pamtest.py )
+
+PATCHES=(
+ # Fix a PyObject/PyMEM mixup.
+ "${FILESDIR}/${P}-python-2.5.patch"
+ # Fix a missing include.
+ "${FILESDIR}/${P}-stricter.patch"
+)
+
+src_compile() {
+ append-cflags -fno-strict-aliasing
+ distutils-r1_src_compile
+}
+
+python_test() {
+ "${PYTHON}" tests/PamTest.py
+}