diff options
author | Mikle Kolyada <zlogene@gentoo.org> | 2020-12-16 22:10:25 +0300 |
---|---|---|
committer | Mikle Kolyada <zlogene@gentoo.org> | 2020-12-16 22:14:05 +0300 |
commit | 748a8065d4c33e823f52c696cdf003f6bee55c4a (patch) | |
tree | 73b3990f1d9207d4cd00e632c1b11cdbf5378633 /app-crypt/p11-kit/p11-kit-0.23.22.ebuild | |
parent | media-libs/hamlib: Add python3_9 support (diff) | |
download | gentoo-748a8065d4c33e823f52c696cdf003f6bee55c4a.tar.gz gentoo-748a8065d4c33e823f52c696cdf003f6bee55c4a.tar.bz2 gentoo-748a8065d4c33e823f52c696cdf003f6bee55c4a.zip |
app-crypt/p11-kit: Version bump (v0.23.22)
Package-Manager: Portage-3.0.9, Repoman-3.0.2
Signed-off-by: Mikle Kolyada <zlogene@gentoo.org>
Diffstat (limited to 'app-crypt/p11-kit/p11-kit-0.23.22.ebuild')
-rw-r--r-- | app-crypt/p11-kit/p11-kit-0.23.22.ebuild | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/app-crypt/p11-kit/p11-kit-0.23.22.ebuild b/app-crypt/p11-kit/p11-kit-0.23.22.ebuild new file mode 100644 index 000000000000..955332bd5e51 --- /dev/null +++ b/app-crypt/p11-kit/p11-kit-0.23.22.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit multilib-minimal + +DESCRIPTION="Provides a standard configuration setup for installing PKCS#11" +HOMEPAGE="https://p11-glue.github.io/p11-glue/p11-kit.html" +SRC_URI="https://github.com/p11-glue/p11-kit/releases/download/${PV}/${P}.tar.xz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="+asn1 debug +libffi systemd +trust" +REQUIRED_USE="trust? ( asn1 )" + +RDEPEND="asn1? ( >=dev-libs/libtasn1-3.4:=[${MULTILIB_USEDEP}] ) + libffi? ( dev-libs/libffi:=[${MULTILIB_USEDEP}] ) + systemd? ( sys-apps/systemd:= ) + trust? ( app-misc/ca-certificates )" +DEPEND="${RDEPEND}" +BDEPEND="virtual/pkgconfig" + +pkg_setup() { + # disable unsafe tests, bug#502088 + export FAKED_MODE=1 +} + +src_prepare() { + if [[ ${CHOST} == *-solaris2.* && ${CHOST##*-solaris2.} -lt 11 ]] ; then + # Solaris 10 and before doesn't know about XPG7 (XOPEN_SOURCE=700) + # drop to XPG6 to make feature_tests.h happy + sed -i -e '/define _XOPEN_SOURCE/s/700/600/' common/compat.c || die + # paths.h isn't available, oddly enough also not used albeit included + sed -i -e '/#include <paths.h>/d' trust/test-trust.c || die + # we don't have SUN_LEN here + sed -i -e 's/SUN_LEN \(([^)]\+)\)/strlen (\1->sun_path)/' \ + p11-kit/server.c || die + fi + default +} + +multilib_src_configure() { + ECONF_SOURCE="${S}" econf \ + $(use_enable trust trust-module) \ + $(use_with trust trust-paths ${EPREFIX}/etc/ssl/certs/ca-certificates.crt) \ + $(use_enable debug) \ + $(use_with libffi) \ + $(use_with asn1 libtasn1) \ + $(multilib_native_use_with systemd) + + if multilib_is_native_abi; then + # re-use provided documentation + ln -s "${S}"/doc/manual/html doc/manual/html || die + fi +} + +multilib_src_install_all() { + einstalldocs + find "${D}" -name '*.la' -delete || die +} |