diff options
author | Arsen Arsenović <arsen@gentoo.org> | 2023-04-04 00:30:26 +0200 |
---|---|---|
committer | Arsen Arsenović <arsen@gentoo.org> | 2023-04-04 00:30:30 +0200 |
commit | ca9ba7ca8efc79f3b27661d012a0ae4305c3820b (patch) | |
tree | 7ae935a85929d11e4241733d413d695b12d0dc3b /gui-apps/foot/foot-1.14.0.ebuild | |
parent | sys-cluster/charliecloud: add version 0.32 (diff) | |
download | gentoo-ca9ba7ca8efc79f3b27661d012a0ae4305c3820b.tar.gz gentoo-ca9ba7ca8efc79f3b27661d012a0ae4305c3820b.tar.bz2 gentoo-ca9ba7ca8efc79f3b27661d012a0ae4305c3820b.zip |
gui-apps/foot: add 1.14.0
Signed-off-by: Arsen Arsenović <arsen@gentoo.org>
Diffstat (limited to 'gui-apps/foot/foot-1.14.0.ebuild')
-rw-r--r-- | gui-apps/foot/foot-1.14.0.ebuild | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/gui-apps/foot/foot-1.14.0.ebuild b/gui-apps/foot/foot-1.14.0.ebuild new file mode 100644 index 000000000000..4a517a0cbb60 --- /dev/null +++ b/gui-apps/foot/foot-1.14.0.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit meson xdg systemd + +DESCRIPTION="Fast, lightweight and minimalistic Wayland terminal emulator" +HOMEPAGE="https://codeberg.org/dnkl/foot" +SRC_URI="https://codeberg.org/dnkl/foot/archive/${PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/${PN}" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm64" +IUSE="+grapheme-clustering" + +COMMON_DEPEND=" + dev-libs/wayland + media-libs/fcft + media-libs/fontconfig + x11-libs/libxkbcommon + x11-libs/pixman + grapheme-clustering? ( + dev-libs/libutf8proc:= + media-libs/fcft[harfbuzz] + ) +" +DEPEND=" + ${COMMON_DEPEND} + dev-libs/tllist + dev-libs/wayland-protocols +" +RDEPEND=" + ${COMMON_DEPEND} + || ( + >=sys-libs/ncurses-6.3[-minimal] + ~gui-apps/foot-terminfo-${PV} + ) +" +BDEPEND=" + app-text/scdoc + dev-util/wayland-scanner +" + +src_prepare() { + default + # disable the systemd dep, we install the unit file manually + sed -i "s/systemd', required: false)$/', required: false)/" "${S}"/meson.build || die +} + +src_configure() { + local emesonargs=( + $(meson_feature grapheme-clustering) + -Dthemes=true + -Dime=true + -Dterminfo=disabled + ) + meson_src_configure + + sed 's|@bindir@|/usr/bin|g' "${S}/"/foot-server@.service.in > foot-server@.service +} + +src_install() { + local DOCS=( CHANGELOG.md README.md LICENSE ) + meson_src_install + + # foot unconditionally installs CHANGELOG.md, README.md and LICENSE. + # we handle this via DOCS and dodoc instead. + rm -r "${ED}/usr/share/doc/${PN}" || die + systemd_douserunit foot-server@.service "${S}"/foot-server@.socket +} |