-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
app-crypt/tpm-tools: revbump to depend on app-crypt/trousers-0.3.15-r1
Closes: https://bugs.gentoo.org/713444 Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be> Closes: #29384 Signed-off-by: Sam James <sam@gentoo.org>
- Loading branch information
1 parent
818d848
commit 37ecf6b
Showing
1 changed file
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# Copyright 1999-2023 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.15-r1 | ||
dev-libs/openssl:0= | ||
pkcs11? ( dev-libs/opencryptoki )" | ||
RDEPEND="${DEPEND}" | ||
BDEPEND="nls? ( sys-devel/gettext )" | ||
|
||
src_prepare() { | ||
default | ||
|
||
# upstream didn't generate the tarball correctly so we must bootstrap | ||
# ouselves | ||
mkdir -p po || die | ||
mkdir -p m4 || die | ||
cp -R po_/* po/ || die | ||
touch po/Makefile.in.in || die | ||
touch m4/Makefile.am || die | ||
|
||
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 | ||
} |