From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id C308B138350 for ; Thu, 30 Apr 2020 14:46:05 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 02BCBE0970; Thu, 30 Apr 2020 14:46:05 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E133BE0970 for ; Thu, 30 Apr 2020 14:46:04 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9D5E034EFDE for ; Thu, 30 Apr 2020 14:46:02 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0E3301F1 for ; Thu, 30 Apr 2020 14:46:01 +0000 (UTC) From: "Yixun Lan" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Yixun Lan" Message-ID: <1588257751.2826275d584e67d81d323706b7dab09d94fc76ed.dlan@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pypam/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/pypam/pypam-0.5.0-r4.ebuild X-VCS-Directories: dev-python/pypam/ X-VCS-Committer: dlan X-VCS-Committer-Name: Yixun Lan X-VCS-Revision: 2826275d584e67d81d323706b7dab09d94fc76ed X-VCS-Branch: master Date: Thu, 30 Apr 2020 14:46:01 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: e568ccf4-da67-4c12-a655-d33c109158ec X-Archives-Hash: 39ab155ee37c966309a56841f371afe4 commit: 2826275d584e67d81d323706b7dab09d94fc76ed Author: Tomáš Mózes gmail com> AuthorDate: Tue Apr 28 14:16:25 2020 +0000 Commit: Yixun Lan gentoo org> CommitDate: Thu Apr 30 14:42:31 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2826275d dev-python/pypam: add python3.{7,8} support Bug: https://bugs.gentoo.org/719426 Signed-off-by: Tomáš Mózes gmail.com> Signed-off-by: Yixun Lan gentoo.org> dev-python/pypam/pypam-0.5.0-r4.ebuild | 46 ++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/dev-python/pypam/pypam-0.5.0-r4.ebuild b/dev-python/pypam/pypam-0.5.0-r4.ebuild new file mode 100644 index 00000000000..d26ff5f7409 --- /dev/null +++ b/dev-python/pypam/pypam-0.5.0-r4.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +PYTHON_COMPAT=( python2_7 python3_{6,7,8} ) + +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 ~arm ~arm64 ~x86" +IUSE="" + +DEPEND=">=sys-libs/pam-0.64" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/${MY_P}" + +DOCS=( AUTHORS examples/pamtest.py ) + +PATCHES=( + # Pull patches from fedora. + "${FILESDIR}/PyPAM-${PV}-dealloc.patch" + "${FILESDIR}/PyPAM-${PV}-nofree.patch" + "${FILESDIR}/PyPAM-${PV}-memory-errors.patch" + "${FILESDIR}/PyPAM-${PV}-return-value.patch" + "${FILESDIR}/PyPAM-python3-support.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 +}