blob: 03767401d089492b91fdb82ccf2c7a7f534ce860 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit autotools
DESCRIPTION="OpenSSL Provider for TPM2 integration"
HOMEPAGE="https://github.com/tpm2-software/tpm2-openssl"
SRC_URI="https://github.com/tpm2-software/tpm2-openssl/releases/download/${PV}/${P}.tar.gz"
LICENSE="BSD"
SLOT="0/${PV}"
KEYWORDS="~amd64"
IUSE="test"
RESTRICT="!test? ( test )"
RDEPEND="
>=app-crypt/tpm2-tss-3.2.0:=
>=dev-libs/openssl-3:="
DEPEND="${RDEPEND}
test? (
app-crypt/swtpm[gnutls(+)]
app-crypt/tpm2-abrmd
app-crypt/tpm2-tools
)"
BDEPEND="
dev-build/autoconf-archive
virtual/pkgconfig"
PATCHES=(
"${FILESDIR}/${PN}-1.2.0-tests-run-with-simulator-in-container.patch"
"${FILESDIR}/${PN}-1.2.0-Makefile-add-run-with-simulator-to-extra-dists.patch"
"${FILESDIR}/${PN}-1.1.1-build-Fix-undefined-references-when-using-slibtool.patch"
)
src_prepare() {
default
eautoreconf
}
src_test() {
"${S}/test/run-with-simulator" swtpm skip-build || die
}
src_install() {
default
find "${ED}" -iname '*.la' -delete || die
}
|