blob: fc656c19f1c07d9666780c489876093c6ca6f0fa (
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
|
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit dot-a toolchain-funcs
DESCRIPTION="Fast Base64 encoding/decoding routines"
HOMEPAGE="https://github.com/libb64/libb64/"
SRC_URI="
https://github.com/libb64/libb64/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="CC-PD"
# static library, so always rebuild
SLOT="0/${PVR}"
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"
}
src_install() {
dolib.a src/libb64.a
insinto /usr/include
doins -r include/b64
einstalldocs
strip-lto-bytecode
}
|