speedie-overlay/x11-terms/st-spde/st-spde-9999.ebuild

59 lines
1.3 KiB
Bash
Raw Normal View History

2022-11-11 15:48:06 +01:00
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit desktop savedconfig toolchain-funcs
2023-02-23 16:17:32 +01:00
DESCRIPTION="speedie's fork of simple terminal with .Xresources, alpha, sixel and more."
2023-05-08 23:35:34 +02:00
HOMEPAGE="https://speedie.site"
2022-11-11 15:48:06 +01:00
2022-11-15 18:36:36 +01:00
if [[ ${PV} == 9999 ]]; then
inherit git-r3
2023-05-08 23:35:34 +02:00
EGIT_REPO_URI="https://git.speedie.site/st"
2022-11-15 18:36:36 +01:00
else
2023-05-08 23:35:34 +02:00
SRC_URI="https://ls.speedie.site/releases/st-spde/${P}.tar.gz"
2022-11-15 18:36:36 +01:00
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~m68k ~ppc64 ~riscv ~x86"
fi
2022-11-11 15:48:06 +01:00
LICENSE="MIT-with-advertising"
SLOT="0"
RDEPEND="
>=sys-libs/ncurses-6.0:0=
media-libs/fontconfig
x11-libs/libX11
x11-libs/libXft
media-libs/harfbuzz
media-libs/gd
2023-02-23 16:17:32 +01:00
dev-lang/tcc
2022-11-11 15:48:06 +01:00
"
2022-11-15 18:36:36 +01:00
2022-11-11 15:48:06 +01:00
DEPEND="
${RDEPEND}
x11-base/xorg-proto
"
BDEPEND="virtual/pkgconfig"
src_prepare() {
default
restore_config options.h
}
src_install() {
2022-11-15 18:36:36 +01:00
emake DESTDIR="${D}" PREFIX="${EPREFIX}"/usr PKG_CONFIG="$(tc-getPKG_CONFIG)" CC="tcc" install
2022-11-11 15:48:06 +01:00
save_config options.h
}
pkg_postinst() {
if ! [[ "${REPLACING_VERSIONS}" ]]; then
elog "Please ensure a usable font is installed, like"
2023-02-23 16:17:32 +01:00
elog " media-fonts/fantasque-sans-mono"
elog " media-fonts/terminus-font"
2022-11-11 15:48:06 +01:00
elog " media-fonts/dejavu"
elog " media-fonts/urw-fonts"
2023-02-23 16:17:32 +01:00
elog " "
elog "For emojis to display, an emoji font must be installed, like"
elog " media-fonts/noto-emoji"
2022-11-11 15:48:06 +01:00
fi
}