dev-libs/libb64: EAPI=8, add dot-a.eclass, use CC & AR

Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
This commit is contained in:
Arthur Zamarin
2025-05-30 18:47:57 +03:00
parent 6a2bf3c6f0
commit e5ff376b77

View File

@@ -1,7 +1,9 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
EAPI=8
inherit dot-a toolchain-funcs
DESCRIPTION="Fast Base64 encoding/decoding routines"
HOMEPAGE="https://github.com/libb64/libb64/"
@@ -15,6 +17,11 @@ KEYWORDS="amd64 ~arm64 x86"
BDEPEND="app-arch/unzip"
src_configure() {
lto-guarantee-fat
tc-export CC AR
}
src_compile() {
# override -O3, -Werror non-sense
emake -C src CFLAGS="${CFLAGS} -I../include"
@@ -25,4 +32,5 @@ src_install() {
insinto /usr/include
doins -r include/b64
einstalldocs
strip-lto-bytecode
}