Files
gentoo/dev-libs/libgrapheme/libgrapheme-3.0.0.ebuild
Ionen Wolkens 5780d51cd4 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@gentoo.org>
2025-12-24 09:46:36 -05:00

46 lines
1.1 KiB
Bash

# 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
}