Gentoo Archives: gentoo-commits

From: Matt Turner <mattst88@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: gui-libs/vte/
Date: Sun, 19 Mar 2023 03:58:20
Message-Id: 1679198052.c2409fa5f0ea1196a8f1df8db5f9353e14170536.mattst88@gentoo
1 commit: c2409fa5f0ea1196a8f1df8db5f9353e14170536
2 Author: Guillermo Joandet <gjoandet <AT> gmail <DOT> com>
3 AuthorDate: Sat Mar 18 18:01:17 2023 +0000
4 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
5 CommitDate: Sun Mar 19 03:54:12 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c2409fa5
7
8 gui-libs/vte: Version bump to 0.72.0
9
10 Signed-off-by: Guillermo Joandet <gjoandet <AT> gmail.com>
11 Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>
12
13 gui-libs/vte/Manifest | 1 +
14 gui-libs/vte/vte-0.72.0.ebuild | 101 +++++++++++++++++++++++++++++++++++++++++
15 2 files changed, 102 insertions(+)
16
17 diff --git a/gui-libs/vte/Manifest b/gui-libs/vte/Manifest
18 index 601993c40d8f..0816a5b8387d 100644
19 --- a/gui-libs/vte/Manifest
20 +++ b/gui-libs/vte/Manifest
21 @@ -1,3 +1,4 @@
22 DIST vte-0.70.0-command-notify.patch.xz 9040 BLAKE2B 108dd05d00409af90b1fd3e9b5c3b0e5586ac80204cef8840fda935204cbc480fec1193e2a0a2782f98e2b094c3caebbfe61cf18631b16921df05cf3808afd22 SHA512 92123e7f5cb6ef876f2b2b108dbef59bce212efebd64cd790d49d9ee3215344acd848eec5d326fe2c3bd236846ed3b896148024390093491b2f6e2f7c46e2bd1
23 DIST vte-0.70.2.tar.bz2 502395 BLAKE2B ae127d8262c7038b3a2cda9a9622e9a075dfc1e06a7710810a4bb894a6646155790776553f663677cb86c3479e6d3faf92c38b5b97dd6970df37cee92dd963fa SHA512 1e113da0591830c057358dd78cfe2f814dd0bfabd037973369266823a9a4936a200b5b23faab3757ced4d08aa96a76d6b1120419815a181598493e35d2ea58d0
24 DIST vte-0.70.3.tar.bz2 502706 BLAKE2B 1fee46dee38618137781d62b27730893b0c6969cf3badfa157628621a608983be48e35ef4d8e58099c93b8be91434b257d120cab2e7a943cfecaf37ff7b3fd5d SHA512 5520bc58b0ad2f803da27985e30862de987ecc31c0137895c6945c53f99a7c16ee0281646b9e04362de934364ee7beaa1acf47dad9baf5a16ab9898d5f746d2d
25 +DIST vte-0.72.0.tar.bz2 503848 BLAKE2B 4c87f5648b17a269072a7fbe520e9cf086325d8740050b9868fd6e0d812ed78e240a3d3dc882729435bbae30fbbbfe35c0e92f36cd62e6aa8e581350b81a3f90 SHA512 198ea27d0991d825cc993746422e89b0e7b2b225e9cbdb072477dcf5b5866e79a27920233e8da63a412c5f270769e6d333470f5368d0b09b39e15d53ddbe6dd6
26
27 diff --git a/gui-libs/vte/vte-0.72.0.ebuild b/gui-libs/vte/vte-0.72.0.ebuild
28 new file mode 100644
29 index 000000000000..b9c4b4743126
30 --- /dev/null
31 +++ b/gui-libs/vte/vte-0.72.0.ebuild
32 @@ -0,0 +1,101 @@
33 +# Copyright 1999-2023 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=8
37 +PYTHON_COMPAT=( python3_{9..11} )
38 +
39 +inherit gnome.org meson python-any-r1 vala xdg
40 +
41 +DESCRIPTION="Library providing a virtual terminal emulator widget"
42 +HOMEPAGE="https://wiki.gnome.org/Apps/Terminal/VTE"
43 +
44 +# Once SIXEL support ships (0.66 or later), might need xterm license (but code might be considered upgraded to LGPL-3+)
45 +LICENSE="LGPL-3+ GPL-3+"
46 +SLOT="2.91-gtk4" # vte_api_version + "-gtk4" in meson.build
47 +IUSE="+crypt debug gtk-doc +icu +introspection systemd +vala vanilla"
48 +KEYWORDS="~amd64 ~arm ~arm64 ~ia64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
49 +REQUIRED_USE="
50 + gtk-doc? ( introspection )
51 + vala? ( introspection )
52 +"
53 +
54 +# Upstream is hostile and refuses to upload tarballs.
55 +SRC_URI="https://gitlab.gnome.org/GNOME/${PN}/-/archive/${PV}/${P}.tar.bz2"
56 +SRC_URI="${SRC_URI} !vanilla? ( https://dev.gentoo.org/~mattst88/distfiles/${PN}-0.70.0-command-notify.patch.xz )"
57 +
58 +DEPEND="
59 + >=gui-libs/gtk-4.0.1:4[introspection?]
60 + >=dev-libs/fribidi-1.0.0
61 + >=dev-libs/glib-2.60:2
62 + crypt? ( >=net-libs/gnutls-3.2.7:0= )
63 + icu? ( dev-libs/icu:= )
64 + >=x11-libs/pango-1.22.0
65 + >=dev-libs/libpcre2-10.21:=
66 + systemd? ( >=sys-apps/systemd-220:= )
67 + sys-libs/zlib
68 + introspection? ( >=dev-libs/gobject-introspection-1.56:= )
69 + x11-libs/pango[introspection?]
70 +"
71 +RDEPEND="${DEPEND}
72 + ~gui-libs/vte-common-${PV}[systemd?]
73 +"
74 +BDEPEND="
75 + ${PYTHON_DEPS}
76 + dev-libs/libxml2:2
77 + dev-util/glib-utils
78 + gtk-doc? ( dev-util/gi-docgen )
79 + >=sys-devel/gettext-0.19.8
80 + virtual/pkgconfig
81 + vala? ( $(vala_depend) )
82 +"
83 +
84 +src_prepare() {
85 + default
86 + use vala && vala_setup
87 + xdg_environment_reset
88 +
89 + use elibc_musl && eapply "${FILESDIR}"/${PN}-0.66.2-musl-W_EXITCODE.patch
90 +
91 + if ! use vanilla; then
92 + # Part of https://src.fedoraproject.org/rpms/vte291/raw/f37/f/vte291-cntnr-precmd-preexec-scroll.patch
93 + # Adds OSC 777 support for desktop notifications in gnome-terminal or elsewhere
94 + eapply "${WORKDIR}"/${PN}-0.70.0-command-notify.patch
95 + fi
96 +
97 + # -Ddebugg option enables various debug support via VTE_DEBUG, but also ggdb3; strip the latter
98 + sed -e '/ggdb3/d' -i meson.build || die
99 + sed -i 's/vte_gettext_domain = vte_api_name/vte_gettext_domain = vte_gtk4_api_name/' meson.build || die
100 +}
101 +
102 +src_configure() {
103 + local emesonargs=(
104 + -Da11y=true
105 + $(meson_use debug debugg)
106 + $(meson_use gtk-doc docs)
107 + $(meson_use introspection gir)
108 + -Dfribidi=true # pulled in by pango anyhow
109 + -Dglade=true
110 + $(meson_use crypt gnutls)
111 + -Dgtk3=false
112 + -Dgtk4=true
113 + $(meson_use icu)
114 + $(meson_use systemd _systemd)
115 + $(meson_use vala vapi)
116 + )
117 + meson_src_configure
118 +}
119 +
120 +src_install() {
121 + meson_install # not meson_src_install because this would include einstalldocs, which would result in file collisions with x11-libs/vte
122 + # Remove files that are provided by gui-libs/vte-common
123 + rm "${ED}"/usr/libexec/vte-urlencode-cwd || die
124 + rm "${ED}"/etc/profile.d/vte.sh || die
125 + rm "${ED}"/etc/profile.d/vte.csh || die
126 + if use systemd; then
127 + rm "${ED}"/usr/lib/systemd/user/vte-spawn-.scope.d/defaults.conf || die
128 + fi
129 + if use gtk-doc; then
130 + mkdir -p "${ED}"/usr/share/gtk-doc/ || die
131 + mv "${ED}"/usr/share/doc/vte-${SLOT} "${ED}"/usr/share/gtk-doc/ || die
132 + fi
133 +}