error-standalone-2.0-r1gentoo
download
# Copyright 2024-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit flag-o-matic toolchain-funcs
DESCRIPTION="standalone <error.h> implementation intended for musl"
HOMEPAGE="https://hacktivis.me/git/error-standalone/"
SRC_URI="https://hacktivis.me/releases/error-standalone/${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64 arm arm64 ~m68k ~mips ppc ppc64 ~riscv x86"
RDEPEND="!sys-libs/glibc"
IUSE="static-libs"
src_compile() {
append-flags -fPIC
emake CC="$(tc-getCC)" AR="$(tc-getAR)" liberror.so $(usex static-libs liberror.a '')
}
src_install() {
einstalldocs
emake \
PREFIX="${EPREFIX}/usr" \
LIBDIR='${PREFIX}'/"$(get_libdir)" \
DESTDIR="${D}" \
install-shared \
$(usex static-libs install-static '')
}