mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-10-12 17:51:11 -04:00
Per 981770, musl systems require libbsd to build qman. This commit conditionally adds it as a dependency and configures meson accordingly. This also backports a patch to 1.5.0 that fixed remaining musl issues (more context on that can be found in the .patch file). -9999 doesn't need this patch since EGIT_BRANCH="devel", where the patch already exists. (I originally assumed this was arm64-exclusive given the linked bug, but it seems to apply to any system running musl libc regardless of architecture, or at least on amd64 too.) Closes: https://bugs.gentoo.org/981770 Signed-off-by: Dustin Smith <d.usty360@gmail.com> Signed-off-by: Gilles Dartiguelongue <gilles.dartiguelongue@esiee.org>
44 lines
766 B
Bash
44 lines
766 B
Bash
# Copyright 1999-2026 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit meson git-r3
|
|
|
|
DESCRIPTION="A more modern manual page viewer for our terminals"
|
|
HOMEPAGE="https://github.com/plp13/qman"
|
|
EGIT_REPO_URI="https://github.com/plp13/qman.git"
|
|
EGIT_BRANCH="devel"
|
|
|
|
LICENSE="BSD-2"
|
|
SLOT="0"
|
|
KEYWORDS=""
|
|
IUSE="+doc test"
|
|
RESTRICT="!test? ( test )"
|
|
|
|
DEPEND="
|
|
sys-libs/ncurses:=
|
|
dev-libs/inih
|
|
virtual/zlib:=
|
|
elibc_musl? (
|
|
dev-libs/libbsd
|
|
)
|
|
"
|
|
BDEPEND="
|
|
dev-python/cogapp
|
|
test? (
|
|
dev-util/cunit
|
|
)
|
|
"
|
|
RDEPEND="${DEPEND}"
|
|
|
|
src_configure() {
|
|
local emesonargs=(
|
|
$(meson_feature doc docs)
|
|
$(meson_feature test tests)
|
|
$(meson_feature elibc_musl libbsd)
|
|
-Ddocdir="/usr/share/doc/${PF}"
|
|
)
|
|
meson_src_configure
|
|
}
|