commit: 5780d51cd469b7746a30eb00fc5752b64871c838 Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org> AuthorDate: Wed Dec 24 14:39:58 2025 +0000 Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org> CommitDate: Wed Dec 24 14:46:36 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5780d51c
dev-libs/libgrapheme: add 3.0.0 (unkeyworded) Hitting hundreds of conformance test failures. Unclear if that is expected or not, and haven't spent time on this yet. Keeping unkeyworded for now. ./test/line: 18594/19338 conformance tests passed. Tests for 2.0.2 are still passing on the other hand. Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org> dev-libs/libgrapheme/Manifest | 1 + dev-libs/libgrapheme/libgrapheme-3.0.0.ebuild | 45 +++++++++++++++++++++++++++ 2 files changed, 46 insertions(+) diff --git a/dev-libs/libgrapheme/Manifest b/dev-libs/libgrapheme/Manifest index b1f7e97a6966..d75da1fdbe81 100644 --- a/dev-libs/libgrapheme/Manifest +++ b/dev-libs/libgrapheme/Manifest @@ -1 +1,2 @@ DIST libgrapheme-2.0.2.tar.gz 846990 BLAKE2B ade6c3ca8481bf3c3e1b1512a3c02caa9f7f2bcb3e9a59f0f3c5af7a1603c2ff2bf4f689d25e47e156d663d95c4e9e209e03504fcde27a9daf1791bc4954663e SHA512 640fb0926f8f46ae98aaba708f8bd1539f7485f150d4b8021195268813ff361ebfc05a49f27ef6eaca9f2051e648912e70b9dac7fbbef84cedefdd4f2cdcb45e +DIST libgrapheme-3.0.0.tar.gz 2815602 BLAKE2B f38706554bc97d73a09aaf3dfc0f0f04e883c3505b860c6d3629b04248f747c83f48adad6970cf0e3ccc85d3965e12fdbf5ad58fe60980b0a41f11d050bccaed SHA512 92cb1ad5f86392bd7af24bcc75b7e8fec2a4ab1726879b6c4209b49703cd7c7fb64cfab78cb304a9ddf3538e5e03a7718060de457fecfa6236feebfaff5b73d6 diff --git a/dev-libs/libgrapheme/libgrapheme-3.0.0.ebuild b/dev-libs/libgrapheme/libgrapheme-3.0.0.ebuild new file mode 100644 index 000000000000..f1a84136fd06 --- /dev/null +++ b/dev-libs/libgrapheme/libgrapheme-3.0.0.ebuild @@ -0,0 +1,45 @@ +# Copyright 2021-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit flag-o-matic toolchain-funcs + +DESCRIPTION="Unicode string library" +HOMEPAGE="https://libs.suckless.org/libgrapheme/" +SRC_URI="https://dl.suckless.org/libgrapheme/${P}.tar.gz" + +LICENSE="ISC Unicode-DFS-2016" +SLOT="0/$(ver_cut 1-2)" +# keeping unkeyworded for now, several test failures and have not spent +# time to look into it yet +#KEYWORDS="~amd64 ~arm64 ~riscv ~x86" +# upstream suggests keeping the static option, others have requested it too +IUSE="static-libs" + +src_prepare() { + default + + append-cflags ${CPPFLAGS} + tc-export CC AR RANLIB + tc-export_build_env BUILD_CC + sed -Ei '/^(BUILD_|)(CC|AR|RANLIB|CFLAGS|LDFLAGS|LDCONFIG).*=/d' config.mk || die + + # does use libc and dropping this avoids QA noise with clang (bug #895068) + sed -i 's/-nostdlib //' config.mk || die +} + +src_configure() { :; } + +src_install() { + local emakeargs=( + DESTDIR="${D}" + PREFIX="${EPREFIX}"/usr + LIBPREFIX="${EPREFIX}"/usr/$(get_libdir) + ) + + emake "${emakeargs[@]}" install + einstalldocs + + use static-libs || rm "${ED}"/usr/$(get_libdir)/${PN}.a || die +}
