# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit python DESCRIPTION="Python Bindings for PAM (Pluggable Authentication Modules)" HOMEPAGE="http://www.pangalactic.org/PyPAM" SRC_URI="http://www.pangalactic.org/PyPAM/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="amd64" IUSE="" DEPEND="" RDEPEND="" src_compile() { python_version econf ${myconf} || die "Configure Failed" sed -i -e "s/python1.5/python${PYVER}/g" ${S}/PAMmodule.c || die "Sed Failed!" sed -i -e "s/python1.5/python${PYVER}/g" ${S}/Makefile || die "Sed Failed!" emake || die "Make Failed!" } src_install() { emake DESTDIR="${D}" install || die "Install Failed!" dodoc README NEWS AUTHORS INSTALL ChangeLog }