Gentoo Archives: gentoo-commits

From: Mark Wright <gienah@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-terms/wezterm/
Date: Sun, 27 Nov 2022 08:19:09
Message-Id: 1669537111.b811725f7b72a75782d0f4be2114695c856cc416.gienah@gentoo
1 commit: b811725f7b72a75782d0f4be2114695c856cc416
2 Author: Mark Wright <gienah <AT> gentoo <DOT> org>
3 AuthorDate: Sun Nov 27 08:18:31 2022 +0000
4 Commit: Mark Wright <gienah <AT> gentoo <DOT> org>
5 CommitDate: Sun Nov 27 08:18:31 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b811725f
7
8 x11-terms/wezterm: Use timestamp in version.
9
10 Use the available system fonts. The vendor-nerd-font-symbols-font
11 option is used to bundle nerd font symbols, which are not currently
12 packaged in Gentoo.
13
14 Fix QA RedundantUriRename.
15
16 Add distro-defaults configure option to disable the package update
17 checking. Remove associated einfo messages.
18
19 Always use the --no-default-features option.
20
21 Optionally use the --features wayland option.
22
23 Add the dependency x11-themes/xcursor-themes.
24
25 Always print the einfo help message about configuing the cursor theme.
26
27 Signed-off-by: Mark Wright <gienah <AT> gentoo.org>
28
29 ...21119.ebuild => wezterm-20221119.145034.ebuild} | 47 +++++++++++-----------
30 1 file changed, 23 insertions(+), 24 deletions(-)
31
32 diff --git a/x11-terms/wezterm/wezterm-20221119.ebuild b/x11-terms/wezterm/wezterm-20221119.145034.ebuild
33 similarity index 93%
34 rename from x11-terms/wezterm/wezterm-20221119.ebuild
35 rename to x11-terms/wezterm/wezterm-20221119.145034.ebuild
36 index 5830363cb9c1..c634ffdc5112 100644
37 --- a/x11-terms/wezterm/wezterm-20221119.ebuild
38 +++ b/x11-terms/wezterm/wezterm-20221119.145034.ebuild
39 @@ -582,7 +582,7 @@ inherit bash-completion-r1 desktop cargo xdg-utils
40 DESCRIPTION="A GPU-accelerated cross-platform terminal emulator and multiplexer"
41 HOMEPAGE="https://wezfurlong.org/wezterm/"
42
43 -MY_PV="20221119-145034-49b9839f"
44 +MY_PV="$(ver_rs 1 -)-49b9839f"
45 MY_P="${PN}-${MY_PV}"
46
47 SRC_URI="
48 @@ -617,6 +617,10 @@ PATCHES=(
49 DEPEND="
50 dev-libs/openssl
51 wayland? ( dev-libs/wayland )
52 + media-fonts/jetbrains-mono
53 + media-fonts/noto
54 + media-fonts/noto-emoji
55 + media-fonts/roboto
56 media-libs/fontconfig
57 media-libs/mesa
58 sys-apps/dbus
59 @@ -627,6 +631,7 @@ DEPEND="
60 x11-libs/xcb-util-keysyms
61 x11-libs/xcb-util-wm
62 x11-themes/hicolor-icon-theme
63 + x11-themes/xcursor-themes
64 "
65 RDEPEND="${DEPEND}"
66 BDEPEND="
67 @@ -651,7 +656,7 @@ submodule_uris() {
68 SRC_URI+=" ${url}/archive/${commit}.tar.gz -> ${url##*/}-${commit}.tar.gz"
69 elif [ ${hoster} == "gitlab" ];
70 then
71 - SRC_URI+=" ${url}/-/archive/${commit}/${url##*/}-${commit}.tar.gz -> ${url##*/}-${commit}.tar.gz"
72 + SRC_URI+=" ${url}/-/archive/${commit}/${url##*/}-${commit}.tar.gz"
73 else
74 die
75 fi
76 @@ -688,14 +693,16 @@ src_prepare() {
77 }
78
79 src_configure() {
80 - if use wayland; then
81 - cargo_src_configure
82 - else
83 - local myfeatures=(
84 - $(usex wayland vendored-fonts '')
85 - )
86 - cargo_src_configure --no-default-features
87 - fi
88 + local myfeatures=(
89 + distro-defaults
90 + vendor-nerd-font-symbols-font
91 + $(usev wayland)
92 + )
93 + cargo_src_configure --verbose --no-default-features
94 +}
95 +
96 +src_compile() {
97 + cargo_src_compile --verbose
98 }
99
100 src_install() {
101 @@ -726,24 +733,16 @@ src_install() {
102
103 pkg_postinst() {
104 xdg_icon_cache_update
105 - einfo "It may be necessary to install a cursor theme, for example:"
106 - einfo "emerge x11-themes/xcursor-themes"
107 - einfo "and to configure wezterm to use the cursor theme, see:"
108 + einfo "It may be necessary to configure wezterm to use a cursor theme, see:"
109 einfo "https://wezfurlong.org/wezterm/faq.html?highlight=xcursor_theme#i-use-x11-or-wayland-and-my-mouse-cursor-theme-doesnt-seem-to-work"
110 - if use wayland; then
111 - einfo "It may be necessary to set the environment variable XCURSOR_PATH"
112 - einfo "to the directory containing the cursor icons, for example"
113 - einfo 'export XCURSOR_PATH="/usr/share/cursors/xorg-x11/"'
114 - einfo "before starting the wayland window compositor to avoid the error"
115 - einfo "ERROR window::os::wayland::frame > Unable to set cursor to left_ptr: cursor not found"
116 - fi
117 - einfo "Update checking is not implemented on Gentoo, which results in wezterm"
118 - einfo "saying an update is available when the current x11-terms/wezterm"
119 - einfo "is installed. It is recommended to disable update checking."
120 + einfo "It may be necessary to set the environment variable XCURSOR_PATH"
121 + einfo "to the directory containing the cursor icons, for example"
122 + einfo 'export XCURSOR_PATH="/usr/share/cursors/xorg-x11/"'
123 + einfo "before starting the wayland or X11 window compositor to avoid the error:"
124 + einfo "ERROR window::os::wayland::frame > Unable to set cursor to left_ptr: cursor not found"
125 einfo "For example, in the file ~/.wezterm.lua:"
126 einfo "return {"
127 einfo ' xcursor_theme = "whiteglass"'
128 - einfo " check_for_updates = false"
129 einfo "}"
130 }