2021-07-07 18:20:27 +02:00
|
|
|
# Copyright 1999-2021 Gentoo Authors
|
2020-01-22 04:21:48 +01:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=7
|
2020-10-23 16:40:04 +02:00
|
|
|
inherit git-r3 multilib savedconfig toolchain-funcs
|
2020-01-22 04:21:48 +01:00
|
|
|
|
|
|
|
DESCRIPTION="Simple terminal implementation for X with Xresources support and other patches"
|
|
|
|
HOMEPAGE="https://github.com/gnotclub/xst"
|
|
|
|
EGIT_REPO_URI="${HOMEPAGE}"
|
|
|
|
|
|
|
|
SLOT="0"
|
|
|
|
LICENSE="MIT-with-advertising"
|
|
|
|
|
|
|
|
IUSE="savedconfig"
|
|
|
|
|
|
|
|
RDEPEND="
|
|
|
|
>=sys-libs/ncurses-6.0:0=
|
|
|
|
media-libs/fontconfig
|
|
|
|
x11-libs/libX11
|
|
|
|
x11-libs/libXft
|
|
|
|
"
|
|
|
|
DEPEND="${RDEPEND}
|
|
|
|
virtual/pkgconfig
|
|
|
|
x11-base/xorg-proto
|
|
|
|
"
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
emake DESTDIR="${D}" PREFIX="${EPREFIX}"/usr install
|
|
|
|
|
|
|
|
make_desktop_entry ${PN} xst utilities-terminal 'System;TerminalEmulator;' ''
|
|
|
|
}
|
|
|
|
|
|
|
|
pkg_postinst() {
|
|
|
|
if ! [[ "${REPLACING_VERSIONS}" ]]; then
|
|
|
|
elog "Please ensure a usable font is installed, like"
|
|
|
|
elog " media-fonts/terminus-font"
|
|
|
|
elog " media-fonts/dina"
|
|
|
|
fi
|
|
|
|
}
|