Diff error-standalone-1.0 with a error-standalone-2.0-r1
| /usr/portage/sys-libs/error-standalone/error-standalone-2.0-r1.ebuild 2025-07-29 16:22:17.936470241 +0300 | ||
|---|---|---|
| 1 |
# Copyright 2024 Gentoo Authors |
|
| 1 |
# Copyright 2024-2025 Gentoo Authors |
|
| 2 | 2 |
# Distributed under the terms of the GNU General Public License v2 |
| 3 | 3 | |
| 4 | 4 |
EAPI=8 |
| 5 | 5 | |
| 6 |
inherit flag-o-matic toolchain-funcs |
|
| 7 | ||
| 6 | 8 |
DESCRIPTION="standalone <error.h> implementation intended for musl" |
| 7 | 9 |
HOMEPAGE="https://hacktivis.me/git/error-standalone/" |
| 8 | 10 |
SRC_URI="https://hacktivis.me/releases/error-standalone/${P}.tar.gz"
|
| 9 | 11 | |
| 10 | 12 |
LICENSE="MIT" |
| 11 | 13 |
SLOT="0" |
| 12 |
KEYWORDS="amd64 arm arm64 ~riscv x86" |
|
| 14 |
KEYWORDS="amd64 arm arm64 ~mips ppc ppc64 ~riscv x86" |
|
| 13 | 15 | |
| 14 | 16 |
RDEPEND="!sys-libs/glibc" |
| 17 | ||
| 18 |
IUSE="static-libs" |
|
| 19 | ||
| 20 |
src_compile() {
|
|
| 21 |
append-flags -fPIC |
|
| 22 | ||
| 23 |
emake CC="$(tc-getCC)" AR="$(tc-getAR)" liberror.so $(usex static-libs liberror.a '') |
|
| 24 |
} |
|
| 25 | ||
| 26 |
src_install() {
|
|
| 27 |
einstalldocs |
|
| 28 | ||
| 29 |
emake \ |
|
| 30 |
PREFIX="${EPREFIX}/usr" \
|
|
| 31 |
DESTDIR="${D}" \
|
|
| 32 |
install-shared \ |
|
| 33 |
$(usex static-libs install-static '') |
|
| 34 |
} |
|