This change fixes the issues addressed during the code review at
https://github.com/gentoo/gentoo/pull/8648 .
Fixes:
ed1d845779b0 ("app-crypt/efitools: support "static" USE flag")
Closes: https://github.com/gentoo/gentoo/pull/8755
EAPI=6
-inherit flag-o-matic
+inherit flag-o-matic toolchain-funcs
DESCRIPTION="Tools for manipulating UEFI secure boot platforms"
HOMEPAGE="https://git.kernel.org/cgit/linux/kernel/git/jejb/efitools.git"
DEPEND="${RDEPEND}
app-crypt/sbsigntool
dev-perl/File-Slurp
- static? (
- ${LIB_DEPEND}
- dev-util/pkgconfig
- )
+ static? ( ${LIB_DEPEND} )
sys-apps/help2man
sys-boot/gnu-efi
virtual/pkgconfig"
src_prepare() {
if use static; then
append-ldflags -static
- sed -i 's/-lcrypto/`pkg-config --static --libs libcrypto`/g' Makefile || die
+ sed -i "s/-lcrypto\b/$($(tc-getPKG_CONFIG) --static --libs libcrypto)/g" \
+ Makefile || die
fi
# Respect users CFLAGS