[sys-libs/pam_wrapper] add abi_x86_32 "fix"

This commit is contained in:
Robert Förster 2020-09-16 01:01:14 +02:00
parent 4d9567ce8f
commit 0ffb6b924c
3 changed files with 60 additions and 0 deletions

View File

@ -0,0 +1,3 @@
DIST pam_wrapper-1.1.3.tar.gz 118034 BLAKE2B 3c05e74959f3c6dfd35575cc5f9187f4a328bfd7ce002e327fc135c82a4ff1513add87678360992d2010c124f7fd95e4bdb3c0a4d63418d9711069cbc200e417 SHA512 3b7cbd25ae7dd73f4a0c64a7762cdeb38cc7ba6e8b4e18e79aceffea09241d520aa884de88e4105b5957b2b18ec682be6568a6bfccf82b9354a3510cd2cd98eb
EBUILD pam_wrapper-1.1.3.ebuild 1102 BLAKE2B 82db0090e910936fb1b5cd4eb210a2b7c34147c347257b09004308eca330c346234fcc19dd39c9bf849cdc3d00b5eb9663e73ecd89d8f5738e9c7052b2e56079 SHA512 c488ac32a5e040d1d3652398393cf437a24f7b3e09bcf9edc5defe15c1551f7daa764fe9f27d8b6977e80b7649de1061f5bf61f821143253839ede1f9151c1f5
MISC metadata.xml 249 BLAKE2B 274f77317bba157c3ad4c3e9827ce5ce934c855b8bd41e603df69f1343c296abf7faec755a56f5f8d0e76f43058156e95480a386494265385604401e70484acf SHA512 940515e5f54189b5ba3c1118ea45f679182c9075091ade1959b197a6dc5fba894cd52cd0289e00a4a139b1cd3c6563771a1e21d2baa460a25892b0fa20e819a8

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>samba@gentoo.org</email>
<name>Samba Team</name>
</maintainer>
</pkgmetadata>

View File

@ -0,0 +1,49 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{7..9} )
CMAKE_ECLASS=cmake
inherit cmake-multilib python-single-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="+python test"
RESTRICT="!test? ( test )"
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
RDEPEND="python? ( ${PYTHON_DEPS} )
sys-libs/pam:0=[${MULTILIB_USEDEP}]"
DEPEND="${RDEPEND}
test? ( dev-util/cmocka[${MULTILIB_USEDEP}] )"
multilib_src_configure() {
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
)
if multilib_is_native_abi && use python; then
local mycmakeargs+=(
-DPYTHON3_INCLUDE_DIR="$(python_get_includedir)"
-DPYTHON3_SITELIB="$(python_get_sitedir)"
)
else
local mycmakeargs+=(
-DPYTHON3_LIBRARY="/dev/null" # Disabled
)
fi
cmake_src_configure
}