Files
guru/gui-apps/foot/foot-9999.ebuild
Ryan Fox 710c075533 gui-apps/foot: Support ncurses terminfo
The gui-apps/foot-terminfo package conflicts with versions of ncurses
past 2021-07-31. To prevent conflicts, this package will not install the
separate terminfo if a recent version of ncurses is installed.

This requires users to manually remove gui-apps/foot-terminfo before
upgrading sys-libs/ncurses. I would prefer if that wasn't necessary, but
I'm not sure how to get around it.

Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Ryan Fox <flewkey@2a03.party>
2021-11-21 01:05:08 -08:00

60 lines
1.1 KiB
Bash

# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit meson xdg
if [[ ${PV} != *9999* ]]; then
SRC_URI="https://codeberg.org/dnkl/foot/archive/${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
S="${WORKDIR}/${PN}"
else
inherit git-r3
EGIT_REPO_URI="https://codeberg.org/dnkl/foot.git"
fi
DESCRIPTION="A fast, lightweight and minimalistic Wayland terminal emulator"
HOMEPAGE="https://codeberg.org/dnkl/foot"
LICENSE="MIT"
SLOT="0"
IUSE="ime +grapheme-clustering"
DEPEND="
dev-libs/libutf8proc
dev-libs/wayland
media-libs/fcft
media-libs/fontconfig
media-libs/freetype
x11-libs/libxkbcommon
x11-libs/pixman
"
RDEPEND="
${DEPEND}
|| (
>=sys-libs/ncurses-6.3
gui-apps/foot-terminfo
)
"
BDEPEND="
app-text/scdoc
dev-libs/tllist
dev-libs/wayland-protocols
sys-libs/ncurses
"
src_configure() {
local emesonargs=(
$(meson_use ime)
$(meson_feature grapheme-clustering)
"-Dterminfo=disabled"
"-Dwerror=false"
)
meson_src_configure
}
src_install() {
meson_src_install
mv "${D}/usr/share/doc/${PN}" "${D}/usr/share/doc/${PF}" || die
}