From bac8d703b4be7c70eb83e68e8763f2eae6a370ec Mon Sep 17 00:00:00 2001 From: Simeon Simeonov Date: Sat, 19 Feb 2022 20:46:05 +0100 Subject: Add Python 3.10 support for x11-terms/terminator --- x11-terms/terminator/Manifest | 6 ++ .../terminator/files/terminator-1.91-desktop.patch | 12 ++++ .../files/terminator-1.91-without-icon-cache.patch | 16 ++++++ x11-terms/terminator/metadata.xml | 22 ++++++++ x11-terms/terminator/terminator-2.1.1-r1.ebuild | 65 ++++++++++++++++++++++ 5 files changed, 121 insertions(+) create mode 100644 x11-terms/terminator/Manifest create mode 100644 x11-terms/terminator/files/terminator-1.91-desktop.patch create mode 100644 x11-terms/terminator/files/terminator-1.91-without-icon-cache.patch create mode 100644 x11-terms/terminator/metadata.xml create mode 100644 x11-terms/terminator/terminator-2.1.1-r1.ebuild (limited to 'x11-terms') 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 @@ +AUX terminator-1.91-desktop.patch 355 BLAKE2B c8c1488779116eee3e1c41440e04409381c6b66389e1ca8e82ebd961d970b84543133b098166008310fc035a591eb26e93c10fcc1bbb02ebc66752bb26145cbd SHA512 8944e27a6ab20f7f74c7dac9e2e93877a156ee5082c617dc7de84298bec303c7a0cf57fc1dd3cad4ae76ce2e15c50aacb8fe5587fe977727c10a6a3c48cca880 +AUX terminator-1.91-without-icon-cache.patch 567 BLAKE2B 72ebaa0eaee27491d0f93982b84c56009fd327108cb8e0b3a8e88a95a781dc324f11f6f8290e7082919a7753a1419777e7e028bafcc1437cc62e51eda465f3f3 SHA512 36f5f08f1724b6cd4bd43d37a27e5161feec66f03a9dd1de973e50eb557f5fe171329903a8074343b5fc816bcaa0fec2642060001c727c35792680a8007a7c50 +DIST terminator-2.1.1.tar.gz 1033153 BLAKE2B f92235bacf34ec5bfe2400c6bbfc8bbdee3867531fac5129fb59b84459101f2d673e3a6699eecf1fa0d19c33d30467bb043010bd19737c2bc0461cea861c71a7 SHA512 a916b9718801bb015d14bdec2eede24c89101d5ea36d22131b7d34f8dad48b9db9e79811645ce571e3c95c9e4b2f18d6b8508f519de7ff54c4246c5f7b546af2 +DIST terminator-2.1.1.tar.gz.asc 866 BLAKE2B d7362ce47f0cba18a3d10c54dca40b23001c818784cf5b5e4c98fbbd13983cf46e6ce631c4a4f5464c2badbb21e6052ce31456bf8b2d2c2deea6a647ad184b5c SHA512 ab171e0538686599fd86a35d0f5455aa9763c5f29c2c6bd5677cfd678beaeaad4dc141553e0abfecd19279a1a1653f12e07ed20f03ee09ee8ec10edbd63d6c14 +EBUILD terminator-2.1.1-r1.ebuild 1677 BLAKE2B 8bc7a7f0becdd143bc1a2960e8258f4c7d783498c4fd960c9971d15f98ef9d4523b2c1138d500ae3343465198167fd5ebc6fa98628562557215f73ca4b403270 SHA512 339493565c0e7698ce55ff5d9d15d502ac899a7bb4e430d4c56dfa86cd3e5b8bd159d4da8d669661d2628ae9cb4027cd22839cf1b032e6d02c01bfc19bd10119 +MISC 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 @@ +--- a/data/terminator.desktop.in ++++ b/data/terminator.desktop.in +@@ -9,8 +9,8 @@ + StartupNotify=true + X-Ubuntu-Gettext-Domain=terminator + X-Ayatana-Desktop-Shortcuts=NewWindow; + Keywords=terminal;shell;prompt;command;commandline; +-[NewWindow Shortcut Group] ++[X-NewWindow Shortcut Group] + Name=Open a New Window + Exec=terminator + 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 @@ +Without this patch, terminator's build script runs gtk-update-icon-cache which +causes terminator package to claim /usr/share/icons/hicolor/icon-theme.cache as +its own. To avoid that, gtk-update-icon-cache is run later, as part of +xdg_pkg_postinst in the ebuild. + +--- a/setup.py 2009-08-12 22:22:53.000000000 -0400 ++++ b/setup.py 2009-08-12 22:22:57.000000000 -0400 +@@ -25,7 +25,7 @@ + + def __init__ (self, *args): + self.without_gettext = False +- self.without_icon_cache = False ++ self.without_icon_cache = True + Distribution.__init__(self, *args) + + 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 @@ + + + + + alexey+gentoo@asokolov.org + Alexey Sokolov + + + proxy-maint@gentoo.org + Proxy Maintainers + + + Much of the behaviour of Terminator is based on GNOME Terminal, and + we are adding more features from that as time goes by, but we also + want to extend out in different directions with useful features for + sysadmins and other users. If you have any suggestions, please file + wishlist bugs! (see below for the address) + + + gnome-terminator/terminator + + 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 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{7,8,9,10} ) +inherit distutils-r1 optfeature verify-sig virtualx xdg + +DESCRIPTION="Multiple GNOME terminals in one window" +HOMEPAGE="https://github.com/gnome-terminator/terminator" +SRC_URI=" + https://github.com/gnome-terminator/terminator/releases/download/v${PV}/${P}.tar.gz + verify-sig? ( https://github.com/gnome-terminator/terminator/releases/download/v${PV}/${P}.tar.gz.asc ) +" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~ppc x86" +IUSE="test" + +RDEPEND=" + dev-libs/glib:2 + dev-python/configobj[${PYTHON_USEDEP}] + dev-python/psutil[${PYTHON_USEDEP}] + dev-python/pycairo[${PYTHON_USEDEP}] + dev-python/pygobject:3[${PYTHON_USEDEP}] + gnome-base/gsettings-desktop-schemas[introspection] + x11-libs/gtk+:3 + x11-libs/vte:2.91[introspection] +" +BDEPEND=" + dev-util/intltool + sys-devel/gettext + test? ( + dev-python/dbus-python[${PYTHON_USEDEP}] + x11-libs/libnotify[introspection] + ) + verify-sig? ( sec-keys/openpgp-keys-terminator ) +" +distutils_enable_tests pytest + +VERIFY_SIG_OPENPGP_KEY_PATH=${BROOT}/usr/share/openpgp-keys/terminator.asc + +PATCHES=( + "${FILESDIR}"/terminator-1.91-without-icon-cache.patch + "${FILESDIR}"/terminator-1.91-desktop.patch +) + +src_prepare() { + xdg_environment_reset + sed -i -e '/pytest-runner/d' setup.py || die + distutils-r1_src_prepare +} + +src_test() { + virtx distutils-r1_src_test +} + +pkg_postinst() { + xdg_pkg_postinst + + optfeature "D-Bus" dev-python/dbus-python + optfeature "desktop notifications" "x11-libs/libnotify[introspection]" + optfeature "global keyboard shortcuts" "dev-libs/keybinder:3[introspection]" +} -- cgit v1.3