x11-terms/wezterm-nightly-bin: standard cleanup(s)

- using standard eclasses
- remove wildcards

Signed-off-by: tooknox <yt+gentoo@sysv.in>
This commit is contained in:
tooknox
2026-06-25 21:40:17 +05:30
parent e139932ede
commit 61ceb1dc2c

View File

@@ -3,7 +3,7 @@
EAPI=8 EAPI=8
inherit xdg inherit desktop xdg shell-completion
DESCRIPTION="A GPU-accelerated cross-platform terminal emulator and multiplexer" DESCRIPTION="A GPU-accelerated cross-platform terminal emulator and multiplexer"
HOMEPAGE="https://wezterm.org/" HOMEPAGE="https://wezterm.org/"
@@ -15,6 +15,7 @@ S="${WORKDIR}/wezterm"
LICENSE="MIT" LICENSE="MIT"
SLOT="0" SLOT="0"
KEYWORDS="" KEYWORDS=""
PROPERTIES="live"
IUSE="wayland" IUSE="wayland"
RESTRICT="mirror strip network-sandbox" RESTRICT="mirror strip network-sandbox"
@@ -68,28 +69,46 @@ src_unpack() {
} }
src_install() { src_install() {
local bin
# gaurd against upstream archive changes
[[ -d "${S}/usr/bin" ]] || die "archive layout changed: missing usr/bin/" [[ -d "${S}/usr/bin" ]] || die "archive layout changed: missing usr/bin/"
[[ -d "${S}/usr/share" ]] || die "archive layout changed: missing usr/share/" [[ -d "${S}/usr/share" ]] || die "archive layout changed: missing usr/share/"
[[ -d "${S}/etc" ]] || die "archive layout changed: missing etc/" [[ -d "${S}/etc" ]] || die "archive layout changed: missing etc/"
for bin in "${S}"/usr/bin/*; do # install binaries
[[ -f "${bin}" ]] || continue dobin "${S}"/usr/bin/open-wezterm-here
dobin "${bin}" dobin "${S}"/usr/bin/strip-ansi-escapes
done dobin "${S}"/usr/bin/wezterm
dobin "${S}"/usr/bin/wezterm-gui
dobin "${S}"/usr/bin/wezterm-mux-server
insinto /usr/share # install desktop file
doins -r "${S}"/usr/share/* domenu "${S}"/usr/share/applications/org.wezfurlong.wezterm.desktop
# install icon
doicon -s 128 "${S}"/usr/share/icons/hicolor/128x128/apps/org.wezfurlong.wezterm.png
# install completion file
dobashcomp "${S}"/usr/share/bash-completion/completions/wezterm
dozshcomp "${S}"/usr/share/zsh/functions/Completion/Unix/_wezterm
# install env/shell init script
insinto /etc/profile.d
doins "${S}"/etc/profile.d/wezterm.sh
# install extra files
insinto /usr/share/metainfo
doins "${S}"/usr/share/metainfo/org.wezfurlong.wezterm.appdata.xml
insinto /usr/share/nautilus-python/extensions
doins "${S}"/usr/share/nautilus-python/extensions/wezterm-nautilus.py
insinto /etc
doins -r "${S}"/etc/*
} }
pkg_postinst() { pkg_postinst() {
xdg_icon_cache_update xdg_pkg_postinst
} }
pkg_postrm() { pkg_postrm() {
xdg_icon_cache_update xdg_pkg_postrm
} }