summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimeon Simeonov2022-02-19 20:46:05 +0100
committerSimeon Simeonov2022-02-19 20:46:05 +0100
commitbac8d703b4be7c70eb83e68e8763f2eae6a370ec (patch)
tree883683d4f126672d7af2b97cb19533089145e476
parentb9b68e271cdbddae1dacb900ed5162da49dada9f (diff)
Add Python 3.10 support for x11-terms/terminator
-rw-r--r--x11-terms/terminator/Manifest6
-rw-r--r--x11-terms/terminator/files/terminator-1.91-desktop.patch12
-rw-r--r--x11-terms/terminator/files/terminator-1.91-without-icon-cache.patch16
-rw-r--r--x11-terms/terminator/metadata.xml22
-rw-r--r--x11-terms/terminator/terminator-2.1.1-r1.ebuild65
5 files changed, 121 insertions, 0 deletions
diff --git a/x11-terms/terminator/Manifest b/x11-terms/terminator/Manifest
new file mode 100644
index 0000000..e6fc9e3
--- /dev/null
+++ b/x11-terms/terminator/Manifest
@@ -0,0 +1,6 @@
1AUX terminator-1.91-desktop.patch 355 BLAKE2B c8c1488779116eee3e1c41440e04409381c6b66389e1ca8e82ebd961d970b84543133b098166008310fc035a591eb26e93c10fcc1bbb02ebc66752bb26145cbd SHA512 8944e27a6ab20f7f74c7dac9e2e93877a156ee5082c617dc7de84298bec303c7a0cf57fc1dd3cad4ae76ce2e15c50aacb8fe5587fe977727c10a6a3c48cca880
2AUX terminator-1.91-without-icon-cache.patch 567 BLAKE2B 72ebaa0eaee27491d0f93982b84c56009fd327108cb8e0b3a8e88a95a781dc324f11f6f8290e7082919a7753a1419777e7e028bafcc1437cc62e51eda465f3f3 SHA512 36f5f08f1724b6cd4bd43d37a27e5161feec66f03a9dd1de973e50eb557f5fe171329903a8074343b5fc816bcaa0fec2642060001c727c35792680a8007a7c50
3DIST terminator-2.1.1.tar.gz 1033153 BLAKE2B f92235bacf34ec5bfe2400c6bbfc8bbdee3867531fac5129fb59b84459101f2d673e3a6699eecf1fa0d19c33d30467bb043010bd19737c2bc0461cea861c71a7 SHA512 a916b9718801bb015d14bdec2eede24c89101d5ea36d22131b7d34f8dad48b9db9e79811645ce571e3c95c9e4b2f18d6b8508f519de7ff54c4246c5f7b546af2
4DIST terminator-2.1.1.tar.gz.asc 866 BLAKE2B d7362ce47f0cba18a3d10c54dca40b23001c818784cf5b5e4c98fbbd13983cf46e6ce631c4a4f5464c2badbb21e6052ce31456bf8b2d2c2deea6a647ad184b5c SHA512 ab171e0538686599fd86a35d0f5455aa9763c5f29c2c6bd5677cfd678beaeaad4dc141553e0abfecd19279a1a1653f12e07ed20f03ee09ee8ec10edbd63d6c14
5EBUILD terminator-2.1.1-r1.ebuild 1677 BLAKE2B 8bc7a7f0becdd143bc1a2960e8258f4c7d783498c4fd960c9971d15f98ef9d4523b2c1138d500ae3343465198167fd5ebc6fa98628562557215f73ca4b403270 SHA512 339493565c0e7698ce55ff5d9d15d502ac899a7bb4e430d4c56dfa86cd3e5b8bd159d4da8d669661d2628ae9cb4027cd22839cf1b032e6d02c01bfc19bd10119
6MISC metadata.xml 859 BLAKE2B 315ffd413597c4b0b5e847e4869c330be0f9092f3c272dcb362fdce1b89423a65a887a6e63b2770253aa2125cc3e6368adb058491f0fd420594d315047279c83 SHA512 2a56b28dcc37b9697c778de2482b7e191fc83907f1e8930a015b3e60a8a672faeec18a6602565ad60c0883f7857b956a1abccf06800f4a4276f72cd643449030
diff --git a/x11-terms/terminator/files/terminator-1.91-desktop.patch b/x11-terms/terminator/files/terminator-1.91-desktop.patch
new file mode 100644
index 0000000..4cbbfa4
--- /dev/null
+++ b/x11-terms/terminator/files/terminator-1.91-desktop.patch
@@ -0,0 +1,12 @@
1--- a/data/terminator.desktop.in
2+++ b/data/terminator.desktop.in
3@@ -9,8 +9,8 @@
4 StartupNotify=true
5 X-Ubuntu-Gettext-Domain=terminator
6 X-Ayatana-Desktop-Shortcuts=NewWindow;
7 Keywords=terminal;shell;prompt;command;commandline;
8-[NewWindow Shortcut Group]
9+[X-NewWindow Shortcut Group]
10 Name=Open a New Window
11 Exec=terminator
12 TargetEnvironment=Unity
diff --git a/x11-terms/terminator/files/terminator-1.91-without-icon-cache.patch b/x11-terms/terminator/files/terminator-1.91-without-icon-cache.patch
new file mode 100644
index 0000000..c924de3
--- /dev/null
+++ b/x11-terms/terminator/files/terminator-1.91-without-icon-cache.patch
@@ -0,0 +1,16 @@
1Without this patch, terminator's build script runs gtk-update-icon-cache which
2causes terminator package to claim /usr/share/icons/hicolor/icon-theme.cache as
3its own. To avoid that, gtk-update-icon-cache is run later, as part of
4xdg_pkg_postinst in the ebuild.
5
6--- a/setup.py 2009-08-12 22:22:53.000000000 -0400
7+++ b/setup.py 2009-08-12 22:22:57.000000000 -0400
8@@ -25,7 +25,7 @@
9
10 def __init__ (self, *args):
11 self.without_gettext = False
12- self.without_icon_cache = False
13+ self.without_icon_cache = True
14 Distribution.__init__(self, *args)
15
16
diff --git a/x11-terms/terminator/metadata.xml b/x11-terms/terminator/metadata.xml
new file mode 100644
index 0000000..dbf43bc
--- /dev/null
+++ b/x11-terms/terminator/metadata.xml
@@ -0,0 +1,22 @@
1<?xml version="1.0" encoding="UTF-8"?>
2<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
3<pkgmetadata>
4 <maintainer type="person" proxied="yes">
5 <email>alexey+gentoo@asokolov.org</email>
6 <name>Alexey Sokolov</name>
7 </maintainer>
8 <maintainer type="project" proxied="proxy">
9 <email>proxy-maint@gentoo.org</email>
10 <name>Proxy Maintainers</name>
11 </maintainer>
12 <longdescription>
13 Much of the behaviour of Terminator is based on GNOME Terminal, and
14 we are adding more features from that as time goes by, but we also
15 want to extend out in different directions with useful features for
16 sysadmins and other users. If you have any suggestions, please file
17 wishlist bugs! (see below for the address)
18 </longdescription>
19 <upstream>
20 <remote-id type="github">gnome-terminator/terminator</remote-id>
21 </upstream>
22</pkgmetadata>
diff --git a/x11-terms/terminator/terminator-2.1.1-r1.ebuild b/x11-terms/terminator/terminator-2.1.1-r1.ebuild
new file mode 100644
index 0000000..e42cdf2
--- /dev/null
+++ b/x11-terms/terminator/terminator-2.1.1-r1.ebuild
@@ -0,0 +1,65 @@
1# Copyright 1999-2022 Gentoo Authors
2# Distributed under the terms of the GNU General Public License v2
3
4EAPI=7
5
6PYTHON_COMPAT=( python3_{7,8,9,10} )
7inherit distutils-r1 optfeature verify-sig virtualx xdg
8
9DESCRIPTION="Multiple GNOME terminals in one window"
10HOMEPAGE="https://github.com/gnome-terminator/terminator"
11SRC_URI="
12 https://github.com/gnome-terminator/terminator/releases/download/v${PV}/${P}.tar.gz
13 verify-sig? ( https://github.com/gnome-terminator/terminator/releases/download/v${PV}/${P}.tar.gz.asc )
14"
15
16LICENSE="GPL-2"
17SLOT="0"
18KEYWORDS="amd64 ~ppc x86"
19IUSE="test"
20
21RDEPEND="
22 dev-libs/glib:2
23 dev-python/configobj[${PYTHON_USEDEP}]
24 dev-python/psutil[${PYTHON_USEDEP}]
25 dev-python/pycairo[${PYTHON_USEDEP}]
26 dev-python/pygobject:3[${PYTHON_USEDEP}]
27 gnome-base/gsettings-desktop-schemas[introspection]
28 x11-libs/gtk+:3
29 x11-libs/vte:2.91[introspection]
30"
31BDEPEND="
32 dev-util/intltool
33 sys-devel/gettext
34 test? (
35 dev-python/dbus-python[${PYTHON_USEDEP}]
36 x11-libs/libnotify[introspection]
37 )
38 verify-sig? ( sec-keys/openpgp-keys-terminator )
39"
40distutils_enable_tests pytest
41
42VERIFY_SIG_OPENPGP_KEY_PATH=${BROOT}/usr/share/openpgp-keys/terminator.asc
43
44PATCHES=(
45 "${FILESDIR}"/terminator-1.91-without-icon-cache.patch
46 "${FILESDIR}"/terminator-1.91-desktop.patch
47)
48
49src_prepare() {
50 xdg_environment_reset
51 sed -i -e '/pytest-runner/d' setup.py || die
52 distutils-r1_src_prepare
53}
54
55src_test() {
56 virtx distutils-r1_src_test
57}
58
59pkg_postinst() {
60 xdg_pkg_postinst
61
62 optfeature "D-Bus" dev-python/dbus-python
63 optfeature "desktop notifications" "x11-libs/libnotify[introspection]"
64 optfeature "global keyboard shortcuts" "dev-libs/keybinder:3[introspection]"
65}