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

56 lines
1.2 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
# This is not a vanilla build of st. This is my personal build of st.
EAPI=7
inherit desktop savedconfig toolchain-funcs
DESCRIPTION="speedie's fork of st with .Xresources, pywal, alpha, column reflow and more"
HOMEPAGE="https://speedie.gq"
2022-11-15 18:36:36 +01:00
if [[ ${PV} == 9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://codeberg.org/speedie/st.git"
else
SRC_URI="https://codeberg.org/speedie/st/releases/download/${PV}/${P}.tar.gz"
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
2022-11-15 18:36:36 +01:00
sys-devel/gcc
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"
elog " media-fonts/corefonts"
elog " media-fonts/dejavu"
elog " media-fonts/urw-fonts"
fi
}