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 5592F158086 for ; Wed, 20 Oct 2021 03:26:26 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 17858E0831; Wed, 20 Oct 2021 03:26:25 +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-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 993F3E0824 for ; Wed, 20 Oct 2021 03:26:24 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 6F15F3433AC for ; Wed, 20 Oct 2021 03:26:23 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D7293164 for ; Wed, 20 Oct 2021 03:26:21 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1634700367.cdd0363be9f629c0d0527e0e4d4994117eca9230.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-libs/pam_wrapper/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-libs/pam_wrapper/pam_wrapper-1.1.3-r1.ebuild X-VCS-Directories: sys-libs/pam_wrapper/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: cdd0363be9f629c0d0527e0e4d4994117eca9230 X-VCS-Branch: master Date: Wed, 20 Oct 2021 03:26:21 +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: 086f88d8-6fbf-4f11-983e-4bff3a7bd3a3 X-Archives-Hash: 423ac9cca5955d03904892c264f210c6 commit: cdd0363be9f629c0d0527e0e4d4994117eca9230 Author: Marco Scardovi scardovi com> AuthorDate: Mon Jul 5 20:00:23 2021 +0000 Commit: Sam James gentoo org> CommitDate: Wed Oct 20 03:26:07 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cdd0363b sys-libs/pam_wrapper: merge fprintd and pam_wrapper Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Marco Scardovi scardovi.com> Signed-off-by: Sam James gentoo.org> sys-libs/pam_wrapper/pam_wrapper-1.1.3-r1.ebuild | 60 ++++++++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/sys-libs/pam_wrapper/pam_wrapper-1.1.3-r1.ebuild b/sys-libs/pam_wrapper/pam_wrapper-1.1.3-r1.ebuild new file mode 100644 index 00000000000..a95f837c4bb --- /dev/null +++ b/sys-libs/pam_wrapper/pam_wrapper-1.1.3-r1.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{8..10} ) +CMAKE_ECLASS=cmake + +inherit cmake-multilib python-r1 + +DESCRIPTION="A tool to test PAM applications and PAM modules" +HOMEPAGE="https://cwrap.org/pam_wrapper.html" +SRC_URI=" + https://www.samba.org/ftp/pub/cwrap/${P}.tar.gz + https://ftp.samba.org/pub/cwrap/${P}.tar.gz +" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="test" + +RESTRICT="!test? ( test )" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND=" + ${PYTHON_DEPS} + sys-libs/pam:0=[${MULTILIB_USEDEP}] +" + +DEPEND=" + ${RDEPEND} + test? ( dev-util/cmocka[${MULTILIB_USEDEP}] ) +" + +multilib_src_configure() { + configure_for_python() { + local libpam="${EPREFIX}" + multilib_is_native_abi || libpam+="/usr" + libpam+="/$(get_libdir)/libpam.so.0" + + local mycmakeargs=( + -DPAM_LIBRARY="${libpam}" + -DUNIT_TESTING=$(usex test) + -DPYTHON2_LIBRARY="/dev/null" # Disabled + -DPYTHON3_INCLUDE_DIR="$(python_get_includedir)" + -DPYTHON3_SITELIB="$(python_get_sitedir)" + ) + cmake_src_configure + } + python_foreach_impl configure_for_python +} + +multilib_src_compile() { + python_foreach_impl cmake_src_compile +} + +multilib_src_install() { + python_foreach_impl cmake_src_install +}