diff options
| author | Simeon Simeonov | 2020-05-04 09:57:42 +0200 |
|---|---|---|
| committer | Simeon Simeonov | 2020-05-04 09:57:42 +0200 |
| commit | 1227bee3d2916a208a995430db2e5e0288354f43 (patch) | |
| tree | 668e0e23a495048de167c2b35068e3b1e4187887 /x11-terms/terminator | |
| parent | d6adfb5477c8172991833262bdefab30992a7a52 (diff) | |
Add x11-terms/terminator
Diffstat (limited to 'x11-terms/terminator')
| -rw-r--r-- | x11-terms/terminator/Manifest | 6 | ||||
| -rw-r--r-- | x11-terms/terminator/files/terminator-1.91-desktop.patch | 12 | ||||
| -rw-r--r-- | x11-terms/terminator/files/terminator-1.91-without-icon-cache.patch | 16 | ||||
| -rw-r--r-- | x11-terms/terminator/files/terminator-1.92-single-tab.patch | 25 | ||||
| -rw-r--r-- | x11-terms/terminator/metadata.xml | 21 | ||||
| -rw-r--r-- | x11-terms/terminator/terminator-1.92.ebuild | 59 |
6 files changed, 139 insertions, 0 deletions
diff --git a/x11-terms/terminator/Manifest b/x11-terms/terminator/Manifest new file mode 100644 index 0000000..9c2efa6 --- /dev/null +++ b/x11-terms/terminator/Manifest | |||
| @@ -0,0 +1,6 @@ | |||
| 1 | AUX terminator-1.91-desktop.patch 355 BLAKE2B c8c1488779116eee3e1c41440e04409381c6b66389e1ca8e82ebd961d970b84543133b098166008310fc035a591eb26e93c10fcc1bbb02ebc66752bb26145cbd SHA512 8944e27a6ab20f7f74c7dac9e2e93877a156ee5082c617dc7de84298bec303c7a0cf57fc1dd3cad4ae76ce2e15c50aacb8fe5587fe977727c10a6a3c48cca880 | ||
| 2 | AUX terminator-1.91-without-icon-cache.patch 567 BLAKE2B 72ebaa0eaee27491d0f93982b84c56009fd327108cb8e0b3a8e88a95a781dc324f11f6f8290e7082919a7753a1419777e7e028bafcc1437cc62e51eda465f3f3 SHA512 36f5f08f1724b6cd4bd43d37a27e5161feec66f03a9dd1de973e50eb557f5fe171329903a8074343b5fc816bcaa0fec2642060001c727c35792680a8007a7c50 | ||
| 3 | AUX terminator-1.92-single-tab.patch 1024 BLAKE2B 4611e9275573233bb3c9f618f13348fbc36f880e4a9e239a8d1ee20e2795e90bdbb41c61f5126e166f39008d7b9d917708bc66a73c0fe1445145e74da43b967d SHA512 fda7d93d015d9a8a7847f9ebff222c15372437763b823194e5502be0d592d1ecad54f9050464bdfbda786fcbcc0e9e9f1feac5ee3b2097b3823e3096a31d3be4 | ||
| 4 | DIST terminator-1.92.tar.gz 910613 BLAKE2B d7a665f81011b21da14837492f04204158e95d846aaf876d2393fe4a236113d9718be9b3946f38e1385168bbcec72fd65b895b5f476727c8a67bbc6e51016a63 SHA512 9a63d1993582d94711b7be6cad0ecde3969b3a5d297ab388677b485161fae308a93d559f84bc4cb7ff71c8755cac6c2511b3677a8ab1da3da6427c53c68529f1 | ||
| 5 | EBUILD terminator-1.92.ebuild 1380 BLAKE2B fa520b244a25e89ba98599257023caa1607444fa543c9c467edfb23af9fbdaa2299ccba28d921042ac827ae11f38e98c5c9f752c72491e65836d15f4078847db SHA512 023c77d76adadcc427cc961596f81d05def1ca3be023ff6d856d359809eab457a4f5c36e27d5171b8c57d6adbc86d33cc253abcdca069c2489ff1e13dad87797 | ||
| 6 | MISC metadata.xml 834 BLAKE2B 59ff943ca3ecfe92e3029c6573d69fb4e9ed09e0a0bcec160545dabf12baace6cdb7424920fafb6f90e0d7d2c2466978fe60b2aa3058936beca7b3b7a583d7e8 SHA512 1a1e181b6cb668239ff8973545b7a8d13908c892c2106bf702f9e8d4d22530cb812c2af57ba93ef41be2ddc566c9ff48588597210cf90ea001e5c7a10075f341 | ||
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 @@ | |||
| 1 | Without this patch, terminator's build script runs gtk-update-icon-cache which | ||
| 2 | causes terminator package to claim /usr/share/icons/hicolor/icon-theme.cache as | ||
| 3 | its own. To avoid that, gtk-update-icon-cache is run later, as part of | ||
| 4 | xdg_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/files/terminator-1.92-single-tab.patch b/x11-terms/terminator/files/terminator-1.92-single-tab.patch new file mode 100644 index 0000000..1ad215a --- /dev/null +++ b/x11-terms/terminator/files/terminator-1.92-single-tab.patch | |||
| @@ -0,0 +1,25 @@ | |||
| 1 | diff -rupN terminator-1.92.old/terminatorlib/terminal.py terminator-1.92/terminatorlib/terminal.py | ||
| 2 | --- terminator-1.92.old/terminatorlib/terminal.py 2020-04-18 12:36:56.385817800 +0200 | ||
| 3 | +++ terminator-1.92/terminatorlib/terminal.py 2020-05-04 09:45:38.714358482 +0200 | ||
| 4 | @@ -887,6 +887,21 @@ class Terminal(Gtk.VBox): | ||
| 5 | # FIXME: Does keybindings really want to live in Terminator()? | ||
| 6 | mapping = self.terminator.keybindings.lookup(event) | ||
| 7 | |||
| 8 | + # sgs patch | ||
| 9 | + if ( | ||
| 10 | + mapping and ( | ||
| 11 | + mapping.startswith('switch_to_tab') or | ||
| 12 | + mapping in ('next_tab', 'prev_tab') | ||
| 13 | + ) | ||
| 14 | + ): | ||
| 15 | + window = self.get_toplevel() | ||
| 16 | + child = window.get_children()[0] | ||
| 17 | + if isinstance(child, Terminal): | ||
| 18 | + # not a Notebook instance => a single tab is used | ||
| 19 | + # .get_n_pages() can not be used | ||
| 20 | + return(False) | ||
| 21 | + # | ||
| 22 | + | ||
| 23 | if mapping == "hide_window": | ||
| 24 | return(False) | ||
| 25 | |||
diff --git a/x11-terms/terminator/metadata.xml b/x11-terms/terminator/metadata.xml new file mode 100644 index 0000000..fff37e0 --- /dev/null +++ b/x11-terms/terminator/metadata.xml | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | <?xml version="1.0" encoding="UTF-8"?> | ||
| 2 | <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> | ||
| 3 | <pkgmetadata> | ||
| 4 | <maintainer type="person"> | ||
| 5 | <email>sgs@pichove.org</email> | ||
| 6 | <name>Simeon Simeonov</name> | ||
| 7 | </maintainer> | ||
| 8 | <longdescription> | ||
| 9 | Much of the behaviour of Terminator is based on GNOME Terminal, and | ||
| 10 | we are adding more features from that as time goes by, but we also | ||
| 11 | want to extend out in different directions with useful features for | ||
| 12 | sysadmins and other users. If you have any suggestions, please file | ||
| 13 | wishlist bugs! (see below for the address) (patched by sgs) | ||
| 14 | </longdescription> | ||
| 15 | <use> | ||
| 16 | <flag name="libnotify">Enables desktop notifications via<pkg>dev-python/notify-python</pkg></flag> | ||
| 17 | </use> | ||
| 18 | <upstream> | ||
| 19 | <remote-id type="github">gnome-terminator/terminator</remote-id> | ||
| 20 | </upstream> | ||
| 21 | </pkgmetadata> | ||
diff --git a/x11-terms/terminator/terminator-1.92.ebuild b/x11-terms/terminator/terminator-1.92.ebuild new file mode 100644 index 0000000..a0deaff --- /dev/null +++ b/x11-terms/terminator/terminator-1.92.ebuild | |||
| @@ -0,0 +1,59 @@ | |||
| 1 | # Copyright 1999-2020 Gentoo Authors | ||
| 2 | # Distributed under the terms of the GNU General Public License v2 | ||
| 3 | |||
| 4 | EAPI=7 | ||
| 5 | |||
| 6 | PYTHON_COMPAT=( python3_{6,7,8} ) | ||
| 7 | inherit distutils-r1 virtualx xdg-utils | ||
| 8 | |||
| 9 | DESCRIPTION="Multiple GNOME terminals in one window (patched by sgs)" | ||
| 10 | HOMEPAGE="https://github.com/gnome-terminator/terminator" | ||
| 11 | SRC_URI="https://github.com/gnome-terminator/terminator/releases/download/v${PV}/${P}.tar.gz" | ||
| 12 | |||
| 13 | LICENSE="GPL-2" | ||
| 14 | SLOT="0" | ||
| 15 | KEYWORDS="amd64 ~ppc ~x86" | ||
| 16 | IUSE="dbus +libnotify test" | ||
| 17 | RESTRICT="!test? ( test )" | ||
| 18 | |||
| 19 | RDEPEND=" | ||
| 20 | >=dev-libs/glib-2.32:2 | ||
| 21 | dev-libs/keybinder:3[introspection] | ||
| 22 | dev-python/configobj[${PYTHON_USEDEP}] | ||
| 23 | dev-python/psutil[${PYTHON_USEDEP}] | ||
| 24 | dev-python/pycairo[${PYTHON_USEDEP}] | ||
| 25 | dev-python/pygobject:3[${PYTHON_USEDEP}] | ||
| 26 | >=x11-libs/gtk+-3.16:3 | ||
| 27 | x11-libs/vte:2.91[introspection] | ||
| 28 | dbus? ( sys-apps/dbus ) | ||
| 29 | libnotify? ( x11-libs/libnotify[introspection] ) | ||
| 30 | " | ||
| 31 | BDEPEND=" | ||
| 32 | dev-util/intltool | ||
| 33 | test? ( ${RDEPEND} ) | ||
| 34 | " | ||
| 35 | |||
| 36 | PATCHES=( | ||
| 37 | "${FILESDIR}"/terminator-1.91-without-icon-cache.patch | ||
| 38 | "${FILESDIR}"/terminator-1.91-desktop.patch | ||
| 39 | "${FILESDIR}"/${P}-single-tab.patch | ||
| 40 | ) | ||
| 41 | |||
| 42 | src_prepare() { | ||
| 43 | xdg_environment_reset | ||
| 44 | distutils-r1_src_prepare | ||
| 45 | } | ||
| 46 | |||
| 47 | python_test() { | ||
| 48 | virtx esetup.py test || die "tests fail with ${EPYTHON}" | ||
| 49 | } | ||
| 50 | |||
| 51 | pkg_postinst() { | ||
| 52 | xdg_desktop_database_update | ||
| 53 | xdg_icon_cache_update | ||
| 54 | } | ||
| 55 | |||
| 56 | pkg_postrm() { | ||
| 57 | xdg_desktop_database_update | ||
| 58 | xdg_icon_cache_update | ||
| 59 | } | ||
