blob: 2f87a05d5456f81b2a9b3c396371cba93d49cb26 (
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
50
|
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit autotools flag-o-matic
DESCRIPTION="TrouSerS' support tools for the Trusted Platform Modules"
HOMEPAGE="http://trousers.sourceforge.net"
SRC_URI="mirror://sourceforge/trousers/${PN}/${P}.tar.gz"
LICENSE="CPL-1.0"
SLOT="0"
KEYWORDS="amd64 ~arm arm64 ~m68k ~s390 x86"
IUSE="nls pkcs11 debug"
DEPEND=">=app-crypt/trousers-0.3.0
dev-libs/openssl:0=
pkcs11? ( dev-libs/opencryptoki )"
RDEPEND="${DEPEND}"
BDEPEND="nls? ( sys-devel/gettext )"
S="${WORKDIR}"
PATCHES=(
"${FILESDIR}/${P}-openssl-1.1.patch"
)
src_prepare() {
default
sed -i -r \
-e '/CFLAGS/s/ -m64//' \
configure.ac || die
eautoreconf
}
src_configure() {
append-cppflags $(usex debug -DDEBUG -DNDEBUG)
econf \
$(use_enable nls) \
$(use pkcs11 || echo --disable-pkcs11-support)
}
src_install() {
default
find "${D}" -name '*.la' -delete || die
}
|