commit:     b811725f7b72a75782d0f4be2114695c856cc416
Author:     Mark Wright <gienah <AT> gentoo <DOT> org>
AuthorDate: Sun Nov 27 08:18:31 2022 +0000
Commit:     Mark Wright <gienah <AT> gentoo <DOT> org>
CommitDate: Sun Nov 27 08:18:31 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b811725f

x11-terms/wezterm: Use timestamp in version.

Use the available system fonts. The vendor-nerd-font-symbols-font
option is used to bundle nerd font symbols, which are not currently
packaged in Gentoo.

Fix QA RedundantUriRename.

Add distro-defaults configure option to disable the package update
checking. Remove associated einfo messages.

Always use the --no-default-features option.

Optionally use the --features wayland option.

Add the dependency x11-themes/xcursor-themes.

Always print the einfo help message about configuing the cursor theme.

Signed-off-by: Mark Wright <gienah <AT> gentoo.org>

 ...21119.ebuild => wezterm-20221119.145034.ebuild} | 47 +++++++++++-----------
 1 file changed, 23 insertions(+), 24 deletions(-)

diff --git a/x11-terms/wezterm/wezterm-20221119.ebuild 
b/x11-terms/wezterm/wezterm-20221119.145034.ebuild
similarity index 93%
rename from x11-terms/wezterm/wezterm-20221119.ebuild
rename to x11-terms/wezterm/wezterm-20221119.145034.ebuild
index 5830363cb9c1..c634ffdc5112 100644
--- a/x11-terms/wezterm/wezterm-20221119.ebuild
+++ b/x11-terms/wezterm/wezterm-20221119.145034.ebuild
@@ -582,7 +582,7 @@ inherit bash-completion-r1 desktop cargo xdg-utils
 DESCRIPTION="A GPU-accelerated cross-platform terminal emulator and 
multiplexer"
 HOMEPAGE="https://wezfurlong.org/wezterm/";
 
-MY_PV="20221119-145034-49b9839f"
+MY_PV="$(ver_rs 1 -)-49b9839f"
 MY_P="${PN}-${MY_PV}"
 
 SRC_URI="
@@ -617,6 +617,10 @@ PATCHES=(
 DEPEND="
        dev-libs/openssl
        wayland? ( dev-libs/wayland )
+       media-fonts/jetbrains-mono
+       media-fonts/noto
+       media-fonts/noto-emoji
+       media-fonts/roboto
        media-libs/fontconfig
        media-libs/mesa
        sys-apps/dbus
@@ -627,6 +631,7 @@ DEPEND="
        x11-libs/xcb-util-keysyms
        x11-libs/xcb-util-wm
        x11-themes/hicolor-icon-theme
+       x11-themes/xcursor-themes
 "
 RDEPEND="${DEPEND}"
 BDEPEND="
@@ -651,7 +656,7 @@ submodule_uris() {
                        SRC_URI+=" ${url}/archive/${commit}.tar.gz -> 
${url##*/}-${commit}.tar.gz"
                elif [ ${hoster} == "gitlab" ];
                then
-                       SRC_URI+=" 
${url}/-/archive/${commit}/${url##*/}-${commit}.tar.gz -> 
${url##*/}-${commit}.tar.gz"
+                       SRC_URI+=" 
${url}/-/archive/${commit}/${url##*/}-${commit}.tar.gz"
                else
                        die
                fi
@@ -688,14 +693,16 @@ src_prepare() {
 }
 
 src_configure() {
-       if use wayland; then
-               cargo_src_configure
-       else
-               local myfeatures=(
-                       $(usex wayland vendored-fonts '')
-               )
-               cargo_src_configure --no-default-features
-       fi
+       local myfeatures=(
+               distro-defaults
+               vendor-nerd-font-symbols-font
+               $(usev wayland)
+       )
+       cargo_src_configure --verbose --no-default-features
+}
+
+src_compile() {
+       cargo_src_compile --verbose
 }
 
 src_install() {
@@ -726,24 +733,16 @@ src_install() {
 
 pkg_postinst() {
        xdg_icon_cache_update
-       einfo "It may be necessary to install a cursor theme, for example:"
-       einfo "emerge x11-themes/xcursor-themes"
-       einfo "and to configure wezterm to use the cursor theme, see:"
+       einfo "It may be necessary to configure wezterm to use a cursor theme, 
see:"
        einfo 
"https://wezfurlong.org/wezterm/faq.html?highlight=xcursor_theme#i-use-x11-or-wayland-and-my-mouse-cursor-theme-doesnt-seem-to-work";
-       if use wayland; then
-               einfo "It may be necessary to set the environment variable 
XCURSOR_PATH"
-               einfo "to the directory containing the cursor icons, for 
example"
-               einfo 'export XCURSOR_PATH="/usr/share/cursors/xorg-x11/"'
-               einfo "before starting the wayland window compositor to avoid 
the error"
-               einfo "ERROR  window::os::wayland::frame > Unable to set cursor 
to left_ptr: cursor not found"
-       fi
-       einfo "Update checking is not implemented on Gentoo, which results in 
wezterm"
-       einfo "saying an update is available when the current x11-terms/wezterm"
-       einfo "is installed. It is recommended to disable update checking."
+       einfo "It may be necessary to set the environment variable XCURSOR_PATH"
+       einfo "to the directory containing the cursor icons, for example"
+       einfo 'export XCURSOR_PATH="/usr/share/cursors/xorg-x11/"'
+       einfo "before starting the wayland or X11 window compositor to avoid 
the error:"
+       einfo "ERROR  window::os::wayland::frame > Unable to set cursor to 
left_ptr: cursor not found"
        einfo "For example, in the file ~/.wezterm.lua:"
        einfo "return {"
        einfo '  xcursor_theme = "whiteglass"'
-       einfo "  check_for_updates = false"
        einfo "}"
 }
 

Reply via email to