diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /x11-misc/superswitcher |
reinit the tree, so we can have metadata
Diffstat (limited to 'x11-misc/superswitcher')
5 files changed, 151 insertions, 0 deletions
diff --git a/x11-misc/superswitcher/Manifest b/x11-misc/superswitcher/Manifest new file mode 100644 index 000000000000..d192e6d8cb92 --- /dev/null +++ b/x11-misc/superswitcher/Manifest @@ -0,0 +1,7 @@ +AUX superswitcher-0.6-glib-single-include.patch 1031 SHA256 ad7ae49413c6c1787ecaf8c1b7b3388e1431c9f6a87d27f2f6e6fee66b01c7dc SHA512 76c6d4d86f0b6d41e5aa3c4e4a4cca1ffdaefc835faeda1077eb7721c26d2c45ce1738445a0e510657e2e3af22a83a333e03c44e9e156f34139a5e7d80d72534 WHIRLPOOL b21f4613d39cc6e79333dd70368f0030f4f14cdd984d3df16bea95ba60333bc3bd997518c0f526f345c6cb48127281bbc1cdd13b6c35e04379ef689d4b844085 +AUX superswitcher-0.6-wnck-workspace.patch 1934 SHA256 1ce3037c4edae26408e51cd4ffe7add99a4f75879f600edfdd4b993a333cc932 SHA512 5800acd13ad6b4569762638d2d0c0186414987fbfccd14dff7fcadb4533209168317f7b2e36d718fc79787460d71b9ef22d676458f447b31ad91e1782d856347 WHIRLPOOL 8d0a9f5065ebfe0667b70ca916cde10db95051ff45203da31f95c488a36ab63baf444701f8dafcf400b833d1235aa651fa0784e08bb45045f8c968f788e91431 +DIST superswitcher-0.6.tar.gz 183184 SHA256 232b98d1a9443fcf4f969cf4cf00df3908c3ccb55f36059391da68873d514599 SHA512 7385c14537a81f3e78509ff7399e1caf84f46fae22ce844f70f7cd72c8865d3808af77229744443178da691dfbcf61cae908c2eb54ef1564c83473ed9ff6ae0b WHIRLPOOL 984945cca220b5144dbb7808ff3dc980d4e59fadde33beac865d9c1f9c15d03419a8a57d852057af6f7679fc34dbb906176317f16fcf78f8de62949e7f3c2ee6 +EBUILD superswitcher-0.6-r1.ebuild 909 SHA256 7e855540ab6af069a8b990f54df113b648b21d5c6f4a13bc555c4754b20dd909 SHA512 995e85e53454a9e8da710bd1d181a70e2684ed1e42bfd8f05582ddecd6814de75895ba953d1627296208ec9c55ec3e64273a8d5cba2742ce4d1a28d6e6ac3d2e WHIRLPOOL 2a07c0710a19c3ec75906649ae9200e4822220289002624c67fd0166feacf7566ed5122bdfba6928a53e08b185e729eed65061d553d10b81a5315141bb910c0b +MISC ChangeLog 2965 SHA256 15abbb33d0db7e739a8e9e378c39bb820058ddfa2950fe10e61bab7ab2732de5 SHA512 fb4e2bef63fc6f8dab2d960453c20076bc6d03b4db271875f263db5738b31cd0bf28bd4b562750829ff518aba0ff410923e9937051dab01696f353fa2f9db5e6 WHIRLPOOL 9577f6989ef244d8b909e533970cad2c6e5993127625e806b9cb7fb1daa956d2d8862ef091debe3d6f58e7a3cda07d32789f370dba8699f6b742fdc07574cd41 +MISC ChangeLog-2015 2142 SHA256 612d68b9973fc7d9a3d846644b66607c8099668940fb68f99ee309db5e66b417 SHA512 2ded010970b644385c503eb8d57aa00885084a3ea5af1f459f32177df0ec7dcf7ea90d98d9752a94a265f3213d9743df96cd0d52ff1f857e5fc25af792a688eb WHIRLPOOL ef249ece041eff5e5e4acfe369d08108ee8fd0db973a1994eb22064f2e213345b34ea218fd813f6da222afbef7a5cb32430fe788c1a5772f50f047e2be7f9361 +MISC metadata.xml 489 SHA256 dedc979aa8a00dcf2b754484299c0231d405ec5652d1b0079053f7a14277794b SHA512 3a66d6500160a23a116fbc23214e7fb14e44149d5ce75e58397e3074dfeb1f0b7446a7c99dbbbdbcd61bd0dd88cf2bf96e87fcebc58c033086e74adf040bc517 WHIRLPOOL e05525a671c79d70ef8574ce2531e347b983daced67e08be499f94a9fe8b223444ab896c5abe48d6b77d91603bd3c174c23cd9f7c78298a24fdc285f4bd2e208 diff --git a/x11-misc/superswitcher/files/superswitcher-0.6-glib-single-include.patch b/x11-misc/superswitcher/files/superswitcher-0.6-glib-single-include.patch new file mode 100644 index 000000000000..fe3249982870 --- /dev/null +++ b/x11-misc/superswitcher/files/superswitcher-0.6-glib-single-include.patch @@ -0,0 +1,27 @@ +Index: superswitcher-0.6/src/dbus-object.h +=================================================================== +--- superswitcher-0.6.orig/src/dbus-object.h ++++ superswitcher-0.6/src/dbus-object.h +@@ -4,7 +4,7 @@ + #ifndef SUPERSWITCHER_DBUS_OBJECT_H + #define SUPERSWITCHER_DBUS_OBJECT_H + +-#include <glib/gtypes.h> ++#include <glib.h> + + #include "forward_declarations.h" + +Index: superswitcher-0.6/src/forward_declarations.h +=================================================================== +--- superswitcher-0.6.orig/src/forward_declarations.h ++++ superswitcher-0.6/src/forward_declarations.h +@@ -18,8 +18,7 @@ typedef struct _SSXineramaScreen SSXiner + #define ABNORMAL_EXIT_CODE_ANOTHER_INSTANCE_IS_RUNNING 1 + #define ABNORMAL_EXIT_CODE_UNKNOWN_COMMAND_LINE_OPTION 2 + +-#include <glib/gerror.h> +-#include <glib/gtypes.h> ++#include <glib.h> + gboolean superswitcher_hide_popup (void *, GError **); + gboolean superswitcher_show_popup (void *, GError **); + gboolean superswitcher_toggle_popup (void *, GError **); diff --git a/x11-misc/superswitcher/files/superswitcher-0.6-wnck-workspace.patch b/x11-misc/superswitcher/files/superswitcher-0.6-wnck-workspace.patch new file mode 100644 index 000000000000..90919a57485b --- /dev/null +++ b/x11-misc/superswitcher/files/superswitcher-0.6-wnck-workspace.patch @@ -0,0 +1,62 @@ +It seems like wnck_window_is_skip_pager isn't all we need to check. + +--- superswitcher/src/screen.c ++++ superswitcher/src/screen.c +@@ -505,6 +505,7 @@ + static SSWindow * + add_window_to_screen (SSScreen *screen, WnckWindow *wnck_window) + { ++ WnckWorkspace *wnck_workspace; + SSWindow *window; + SSWorkspace *workspace; + int n; +@@ -513,7 +514,13 @@ + return NULL; + } + +- n = wnck_workspace_get_number (wnck_window_get_workspace (wnck_window)); ++ wnck_workspace = wnck_window_get_workspace (wnck_window); ++ ++ if (wnck_workspace == NULL) { ++ return NULL; ++ } ++ ++ n = wnck_workspace_get_number (wnck_workspace); + workspace = ss_screen_get_nth_workspace (screen, n); + + window = ss_window_new (workspace, wnck_window); +--- superswitcher/src/window.c ++++ superswitcher/src/window.c +@@ -254,6 +254,7 @@ + static void + on_workspace_changed (WnckWindow *wnck_window, gpointer data) + { ++ WnckWorkspace *wnck_workspace; + SSWindow *window; + SSWorkspace *old_workspace; + SSWorkspace *new_workspace; +@@ -261,12 +262,19 @@ + + window = (SSWindow *) data; + old_workspace = window->workspace; +- new_workspace_id = wnck_workspace_get_number (wnck_window_get_workspace (wnck_window)); +- new_workspace = ss_screen_get_nth_workspace (old_workspace->screen, new_workspace_id); +- + ss_workspace_remove_window (old_workspace, window); ++ ++ wnck_workspace = wnck_window_get_workspace (wnck_window); ++ if (wnck_workspace) { ++ new_workspace_id = wnck_workspace_get_number (wnck_workspace); ++ new_workspace = ss_screen_get_nth_workspace (old_workspace->screen, new_workspace_id); ++ ++ ss_workspace_add_window (new_workspace, window); ++ window->workspace = new_workspace; ++ } else { ++ window->workspace = NULL; ++ } ++ +- window->workspace = new_workspace; +- ss_workspace_add_window (new_workspace, window); + window->new_window_index = -1; + gtk_widget_queue_draw (gtk_widget_get_toplevel (window->widget)); + } diff --git a/x11-misc/superswitcher/metadata.xml b/x11-misc/superswitcher/metadata.xml new file mode 100644 index 000000000000..be8a2c55706f --- /dev/null +++ b/x11-misc/superswitcher/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <!-- maintainer-needed --> + <longdescription lang="en">SuperSwitcher is a (more feature-ful) replacement for the Alt-Tab window +switching behavior and Ctrl-Alt-Left/Right/Up/Down workspace switching behavior +that is currently provided by Metacity.</longdescription> + <upstream> + <remote-id type="google-code">superswitcher</remote-id> + </upstream> +</pkgmetadata> diff --git a/x11-misc/superswitcher/superswitcher-0.6-r1.ebuild b/x11-misc/superswitcher/superswitcher-0.6-r1.ebuild new file mode 100644 index 000000000000..63e4756b5b18 --- /dev/null +++ b/x11-misc/superswitcher/superswitcher-0.6-r1.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit autotools + +DESCRIPTION="A more feature-full replacement of the Alt-Tab window switching behavior" +HOMEPAGE="https://code.google.com/p/superswitcher/" +SRC_URI="https://superswitcher.googlecode.com/files/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND=" + dev-libs/dbus-glib + dev-libs/glib:2 + >=gnome-base/gconf-2:2 + x11-libs/gtk+:2 + >=x11-libs/libwnck-2.10:1 + x11-libs/libXcomposite + x11-libs/libXinerama + x11-libs/libXrender" +DEPEND="${RDEPEND} + gnome-base/gnome-common + virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}"/${P}-wnck-workspace.patch + "${FILESDIR}"/${PN}-0.6-glib-single-include.patch +) + +src_prepare() { + default + sed -i \ + -e '/-DG.*_DISABLE_DEPRECATED/d' \ + src/Makefile.am || die #338906 + + mv configure.{in,ac} || die #426262 + + eautoreconf +} |