From 56bd759df1d0c750a065b8c845e93d5dfa6b549d Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Sat, 8 Aug 2015 13:49:04 -0700 Subject: proj/gentoo: Initial commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson X-Thanks: Alec Warner - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring - wrote much python to improve cvs2svn X-Thanks: Rich Freeman - validation scripts X-Thanks: Patrick Lauer - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed --- x11-misc/wmctrl/Manifest | 1 + x11-misc/wmctrl/files/amd64-Xlib.patch | 28 ++++++++++++++++++++++++++++ x11-misc/wmctrl/metadata.xml | 15 +++++++++++++++ x11-misc/wmctrl/wmctrl-1.07-r1.ebuild | 33 +++++++++++++++++++++++++++++++++ 4 files changed, 77 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-r1.ebuild (limited to 'x11-misc/wmctrl') diff --git a/x11-misc/wmctrl/Manifest b/x11-misc/wmctrl/Manifest new file mode 100644 index 000000000000..1fdd3695c9cc --- /dev/null +++ b/x11-misc/wmctrl/Manifest @@ -0,0 +1 @@ +DIST wmctrl-1.07.tar.gz 87820 SHA256 d78a1efdb62f18674298ad039c5cbdb1edb6e8e149bb3a8e3a01a4750aa3cca9 SHA512 4c77ad1e204e8d444f682ad1d05c0993bcab9097ac6d4b6a944556ab85acbe713f549dbaf443cd4d1226a162ce7d46fbd209c92652e87fc8e609feee74907daa WHIRLPOOL a0c5112704b94c93e6ac1fd945222c04567f152359713e2224623291f654b68cf77c03612d16a2cc78166af59a2e6dc29835bae843e26ac96815cc9f8b38deef 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..a0142a499218 --- /dev/null +++ b/x11-misc/wmctrl/metadata.xml @@ -0,0 +1,15 @@ + + + +maintainer-needed@gentoo.org + + 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-r1.ebuild b/x11-misc/wmctrl/wmctrl-1.07-r1.ebuild new file mode 100644 index 000000000000..bab0a2937e3a --- /dev/null +++ b/x11-misc/wmctrl/wmctrl-1.07-r1.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit eutils + +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 + x11-libs/libX11 + x11-libs/libXt + x11-libs/libXmu" +DEPEND="${RDEPEND} + virtual/pkgconfig + x11-proto/xproto" + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}/amd64-Xlib.patch" || die "Patch failed" +} + +src_install () { + make DESTDIR="${D}" install || die "make install failed" + dodoc AUTHORS ChangeLog NEWS README +} -- cgit v1.2.3-65-gdbad