From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- x11-misc/wmctrl/Manifest | 6 ++++++ x11-misc/wmctrl/files/amd64-Xlib.patch | 28 ++++++++++++++++++++++++++++ x11-misc/wmctrl/metadata.xml | 15 +++++++++++++++ x11-misc/wmctrl/wmctrl-1.07-r2.ebuild | 33 +++++++++++++++++++++++++++++++++ 4 files changed, 82 insertions(+) create mode 100644 x11-misc/wmctrl/Manifest create mode 100644 x11-misc/wmctrl/files/amd64-Xlib.patch create mode 100644 x11-misc/wmctrl/metadata.xml create mode 100644 x11-misc/wmctrl/wmctrl-1.07-r2.ebuild (limited to 'x11-misc/wmctrl') diff --git a/x11-misc/wmctrl/Manifest b/x11-misc/wmctrl/Manifest new file mode 100644 index 000000000000..e0893a1c588d --- /dev/null +++ b/x11-misc/wmctrl/Manifest @@ -0,0 +1,6 @@ +AUX amd64-Xlib.patch 1126 SHA256 501bebfd7fc99e42d2ba8e6a4636d2bd9d33bda0f33019a23f7673acee74c853 SHA512 8db78cf8c267bf2af30e3e91bcd334ea3c6fc8bb5e76afe4a6d9923341631402bf09c7ad55975c8c74f7b54ae288fae7dfdfe737227a72663785b02ec3416f63 WHIRLPOOL 051594867d30715d1e7d103a3ca2b3fa687de691a725dc76eca2ea48588d752f039aeff97049ef91f93d3c142a8fde74078d6ca8033799fcf0522737c0477128 +DIST wmctrl-1.07.tar.gz 87820 SHA256 d78a1efdb62f18674298ad039c5cbdb1edb6e8e149bb3a8e3a01a4750aa3cca9 SHA512 4c77ad1e204e8d444f682ad1d05c0993bcab9097ac6d4b6a944556ab85acbe713f549dbaf443cd4d1226a162ce7d46fbd209c92652e87fc8e609feee74907daa WHIRLPOOL a0c5112704b94c93e6ac1fd945222c04567f152359713e2224623291f654b68cf77c03612d16a2cc78166af59a2e6dc29835bae843e26ac96815cc9f8b38deef +EBUILD wmctrl-1.07-r2.ebuild 677 SHA256 0698d90eae49b2c3ab7c75b46f2556c7547cb1b22356388cd019d1cb453dfbbe SHA512 98319c2ce08a001f81817cb8240d55b69096d4612171e2e77ef14f331f4912776384ecb08bba6f7a4effb7051686fad8aa27bd932bf1d9188c625eb47c972d48 WHIRLPOOL 92288903bfe66ee0271a24819478e5665debeb5ca750db016ed5baee481a6725bfab3d1a6e102fb58b88c400f2a00621461084b07bf11dcdbe70eda78f28a40b +MISC ChangeLog 2548 SHA256 1a2ebc92c6b713d6ab3195fce3e8fedc580dc4c74771edfd114c8d6075c2164a SHA512 2593ccc807e2b2afa104ba7bae1d3e4e7420633d9ec66b05ab9466b173a9548f6f17d9dc26e48d7f7f103226564ad1257429a349e744dc21a2d253da7a7f4ab3 WHIRLPOOL 2568b18ecbfc48d0f5a1384725d0b5610557d429692e9482bd067f8dad3a0efb961688a2ce35bb7dffd02ca59d8d4e815083cab85774108a8119492012206aaa +MISC ChangeLog-2015 2829 SHA256 f1750b2c3e5bea5195282b177d6dc9cf8778714b16a7ebfe566824740caca616 SHA512 63a886c927b45d02f58df5eebe76674a67578c273882044bf376cb7974af14d6b977d8958e7450a2c3a9c38f6c14607ace13b74846b6d62b270cfb8b996a5eec WHIRLPOOL 5fdc99214879e5d340d228ea6b868145f1f7c2f80e1312e64784479423eed3cc5f82d4366c37a1c913e37eb7854f9fe964df91bfbe0dcb5a21e00694dd5d7d96 +MISC metadata.xml 738 SHA256 95397e4e3a428606c7fd616d97ff42e2aab6f718ec8bb75ae80cbdc809adbb72 SHA512 64b8e06c832fccd5de75607562f73a1287a9948e624d6a11a229c2772856cdbe0ef2beb968913795b50bebc0fe55407a69d0f3b9181ad2e0e50736a1794c0609 WHIRLPOOL 93727bc21188d195ed2ff1c71afe13220ac565cea752c64e1a444314c7d12b9081d6c517770e378fbba0fd3bdf959de1a99f54d729e5318d88f2fdf40bb7a158 diff --git a/x11-misc/wmctrl/files/amd64-Xlib.patch b/x11-misc/wmctrl/files/amd64-Xlib.patch new file mode 100644 index 000000000000..a1039a825023 --- /dev/null +++ b/x11-misc/wmctrl/files/amd64-Xlib.patch @@ -0,0 +1,28 @@ +--- wmctrl-1.07.orig/main.c ++++ wmctrl-1.07/main.c +@@ -1425,6 +1425,16 @@ + * + * long_length = Specifies the length in 32-bit multiples of the + * data to be retrieved. ++ * ++ * NOTE: see ++ * http://mail.gnome.org/archives/wm-spec-list/2003-March/msg00067.html ++ * In particular: ++ * ++ * When the X window system was ported to 64-bit architectures, a ++ * rather peculiar design decision was made. 32-bit quantities such ++ * as Window IDs, atoms, etc, were kept as longs in the client side ++ * APIs, even when long was changed to 64 bits. ++ * + */ + if (XGetWindowProperty(disp, win, xa_prop_name, 0, MAX_PROPERTY_VALUE_LEN / 4, False, + xa_prop_type, &xa_ret_type, &ret_format, +@@ -1441,6 +1451,8 @@ + + /* null terminate the result to make string handling easier */ + tmp_size = (ret_format / 8) * ret_nitems; ++ /* Correct 64 Architecture implementation of 32 bit data */ ++ if(ret_format==32) tmp_size *= sizeof(long)/4; + ret = g_malloc(tmp_size + 1); + memcpy(ret, ret_prop, tmp_size); + ret[tmp_size] = '\0'; diff --git a/x11-misc/wmctrl/metadata.xml b/x11-misc/wmctrl/metadata.xml new file mode 100644 index 000000000000..de4a42db7c4a --- /dev/null +++ b/x11-misc/wmctrl/metadata.xml @@ -0,0 +1,15 @@ + + + + + + The wmctrl program is a command line tool to interact with an + EWMH/NetWM compatible X Window Manager. It provides command line + access to almost all the features defined in the EWMH specification. + Using it, it's possible to, for example, obtain information about the + window manager, get a detailed list of desktops and managed windows, + switch and resize desktops, change number of desktops, make windows + full-screen, always-above or sticky, and activate, close, move, + resize, maximize and minimize them. + + diff --git a/x11-misc/wmctrl/wmctrl-1.07-r2.ebuild b/x11-misc/wmctrl/wmctrl-1.07-r2.ebuild new file mode 100644 index 000000000000..25168a125bdf --- /dev/null +++ b/x11-misc/wmctrl/wmctrl-1.07-r2.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +DESCRIPTION="command line tool to interact with an EWMH/NetWM compatible X Window Manager" +HOMEPAGE="http://tomas.styblo.name/wmctrl/" +SRC_URI="http://tomas.styblo.name/${PN}/dist/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc ~sparc x86 ~x86-linux" +IUSE="" + +RDEPEND=" + >=dev-libs/glib-2:2 + x11-libs/libX11 + x11-libs/libXt + x11-libs/libXmu" + +DEPEND=" + ${RDEPEND} + virtual/pkgconfig + x11-proto/xproto" + +PATCHES=( "${FILESDIR}/amd64-Xlib.patch" ) + +DOCS=( AUTHORS ChangeLog NEWS README ) + +src_install () { + emake DESTDIR="${D}" install + einstalldocs +} -- cgit v1.2.3