commit: 055efe211af854c3cc4d25e166f4b378776b8efd Author: Haelwenn (lanodan) Monnier <contact <AT> hacktivis <DOT> me> AuthorDate: Sat Dec 14 05:30:02 2024 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sat Dec 14 10:42:42 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=055efe21
sys-libs/error-standalone: add 2.0 Closes: https://bugs.gentoo.org/946390 Signed-off-by: Haelwenn (lanodan) Monnier <contact <AT> hacktivis.me> Signed-off-by: Sam James <sam <AT> gentoo.org> sys-libs/error-standalone/Manifest | 1 + .../error-standalone/error-standalone-2.0.ebuild | 30 ++++++++++++++++++++++ 2 files changed, 31 insertions(+) diff --git a/sys-libs/error-standalone/Manifest b/sys-libs/error-standalone/Manifest index 08ab1c2311d9..2354d840bfe2 100644 --- a/sys-libs/error-standalone/Manifest +++ b/sys-libs/error-standalone/Manifest @@ -1 +1,2 @@ DIST error-standalone-1.0.tar.gz 1947 BLAKE2B a6cc182caab990b841c708fd78e3539e2a0488355f7eb3e7cbe2bcf3d796c2b7c5046dd99defd005e155581363f858a4b52ac586d729a6e0d543c0d11cf1006f SHA512 4561f17896d411932fb02e8dc435b23e22c3874ccde668dcb5bc2c843383c4d774c45d295ce50607fcc32df0356f826792d7fbd14ecc768ad64b9021549135e3 +DIST error-standalone-2.0.tar.gz 2329 BLAKE2B 2f2291056b46adbaeb655b39e57acd159b597add0a79ef8cbcd3a75b3de325975253338235e993f68973490aebe5eb5e1d3f88262770cb319e3b5aa9f1365a6b SHA512 bb5cf17dd58bc022b6f18b8044460ec1f32bbdda3ac9c9ccc71d4bdf0115cc1869ae8de85b3e66726ebbfb891d7b5f85b5eec8018d53643eeb81bcbc751fcf58 diff --git a/sys-libs/error-standalone/error-standalone-2.0.ebuild b/sys-libs/error-standalone/error-standalone-2.0.ebuild new file mode 100644 index 000000000000..ed2a9dce4f91 --- /dev/null +++ b/sys-libs/error-standalone/error-standalone-2.0.ebuild @@ -0,0 +1,30 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +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 ~riscv ~x86" + +RDEPEND="!sys-libs/glibc" + +IUSE="static-libs" + +src_compile() { + emake liberror.so $(usex static-libs liberror.a '') +} + +src_install() { + einstalldocs + + emake \ + PREFIX="${EPREFIX}/usr" \ + DESTDIR="${D}" \ + install-shared \ + $(usex static-libs install-static '') +}
