2 |
2 |
# Distributed under the terms of the GNU General Public License v2
|
3 |
3 |
|
4 |
4 |
EAPI=8
|
5 |
|
PYTHON_COMPAT=( python3_{9..11} )
|
|
5 |
PYTHON_COMPAT=( python3_{10..12} )
|
6 |
6 |
inherit gnome.org gnome2-utils meson python-any-r1 readme.gentoo-r1 xdg
|
7 |
7 |
|
8 |
8 |
DESCRIPTION="A terminal emulator for GNOME"
|
9 |
|
HOMEPAGE="https://wiki.gnome.org/Apps/Terminal/ https://gitlab.gnome.org/GNOME/gnome-terminal"
|
|
9 |
HOMEPAGE="https://wiki.gnome.org/Apps/Terminal"
|
10 |
10 |
|
11 |
11 |
LICENSE="GPL-3+"
|
12 |
12 |
SLOT="0"
|
13 |
13 |
IUSE="debug +gnome-shell +nautilus vanilla"
|
14 |
|
SRC_URI+=" !vanilla? ( https://dev.gentoo.org/~mattst88/distfiles/${PN}-3.44.0-cntr-ntfy-autottl-ts.patch.xz )"
|
15 |
14 |
|
16 |
|
KEYWORDS="~alpha amd64 ~arm arm64 ~mips ~ppc ~ppc64 ~riscv x86 ~amd64-linux ~x86-linux"
|
|
15 |
# Upstream is hostile and refuses to upload tarballs.
|
|
16 |
SRC_URI="https://gitlab.gnome.org/GNOME/${PN}/-/archive/${PV}/${P}.tar.bz2"
|
|
17 |
SRC_URI+=" !vanilla? ( https://dev.gentoo.org/~mattst88/distfiles/${PN}-3.48.1-cntr-ntfy-autottl-ts.patch.xz )"
|
|
18 |
|
|
19 |
KEYWORDS="amd64 ~arm arm64 ~loong ~ppc ~ppc64 ~riscv x86"
|
17 |
20 |
|
18 |
21 |
# FIXME: automagic dependency on gtk+[X], just transitive but needs proper control, bug 624960
|
19 |
22 |
RDEPEND="
|
20 |
23 |
>=dev-libs/glib-2.52:2
|
21 |
24 |
>=x11-libs/gtk+-3.22.27:3
|
22 |
|
>=x11-libs/vte-0.68.0:2.91[!vanilla?]
|
|
25 |
>=x11-libs/vte-0.72.2:2.91[!vanilla?]
|
23 |
26 |
>=dev-libs/libpcre2-10
|
24 |
|
>=gnome-base/dconf-0.14
|
25 |
27 |
>=gnome-base/gsettings-desktop-schemas-0.1.0
|
26 |
28 |
sys-apps/util-linux
|
27 |
29 |
gnome-shell? ( gnome-base/gnome-shell )
|
28 |
|
nautilus? ( >=gnome-base/nautilus-3.28.0 )
|
|
30 |
nautilus? ( >=gnome-base/nautilus-43.0 )
|
29 |
31 |
"
|
30 |
32 |
DEPEND="${RDEPEND}"
|
31 |
33 |
# itstool required for help/* with non-en LINGUAS, see bug #549358
|
... | ... | |
47 |
49 |
. /etc/profile.d/vte-2.91.sh"
|
48 |
50 |
|
49 |
51 |
src_prepare() {
|
50 |
|
eapply "${FILESDIR}"/${P}-fix-missing-wexitcode.patch
|
|
52 |
eapply "${FILESDIR}"/${PN}-3.44.1-fix-missing-wexitcode.patch
|
51 |
53 |
if ! use vanilla; then
|
52 |
54 |
# https://bugzilla.gnome.org/show_bug.cgi?id=695371
|
53 |
55 |
# Fedora patches:
|
... | ... | |
57 |
59 |
# Automatic title updating based on currently running foreground process
|
58 |
60 |
# https://src.fedoraproject.org/rpms/gnome-terminal/raw/f31/f/gnome-terminal-cntr-ntfy-autottl-ts.patch
|
59 |
61 |
# Depends on vte[-vanilla] for OSC 777 and the preexec/precmd/etc patches in VTE
|
60 |
|
eapply "${WORKDIR}"/${PN}-3.44.0-cntr-ntfy-autottl-ts.patch
|
|
62 |
eapply "${WORKDIR}"/${PN}-3.48.1-cntr-ntfy-autottl-ts.patch
|
61 |
63 |
fi
|
62 |
64 |
default
|
63 |
65 |
}
|