summaryrefslogtreecommitdiff
path: root/x11-wm
diff options
context:
space:
mode:
authorTim Harder <radhermit@gentoo.org>2012-11-13 05:03:09 +0000
committerTim Harder <radhermit@gentoo.org>2012-11-13 05:03:09 +0000
commit9456c809ab8d216b6704cb8ab2aad0cfadbd5bb0 (patch)
treece67db23718f7e861d1fe172e8f157d42f6a6874 /x11-wm
parentDev channel bump. (diff)
downloadgentoo-2-9456c809ab8d216b6704cb8ab2aad0cfadbd5bb0.tar.gz
gentoo-2-9456c809ab8d216b6704cb8ab2aad0cfadbd5bb0.tar.bz2
gentoo-2-9456c809ab8d216b6704cb8ab2aad0cfadbd5bb0.zip
Initial import, ebuild by me (bug #442820).
(Portage version: 2.2.0_alpha142/cvs/Linux x86_64, signed Manifest commit with key 4AB3E85B4F064CA3)
Diffstat (limited to 'x11-wm')
-rw-r--r--x11-wm/qtile/ChangeLog11
-rw-r--r--x11-wm/qtile/Manifest6
-rw-r--r--x11-wm/qtile/files/qtile-session89
-rw-r--r--x11-wm/qtile/metadata.xml8
-rw-r--r--x11-wm/qtile/qtile-0.5.ebuild61
-rw-r--r--x11-wm/qtile/qtile-9999.ebuild62
6 files changed, 237 insertions, 0 deletions
diff --git a/x11-wm/qtile/ChangeLog b/x11-wm/qtile/ChangeLog
new file mode 100644
index 000000000000..ae3451c40a46
--- /dev/null
+++ b/x11-wm/qtile/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for x11-wm/qtile
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/x11-wm/qtile/ChangeLog,v 1.1 2012/11/13 05:03:09 radhermit Exp $
+
+*qtile-9999 (13 Nov 2012)
+*qtile-0.5 (13 Nov 2012)
+
+ 13 Nov 2012; Tim Harder <radhermit@gentoo.org> +qtile-0.5.ebuild,
+ +qtile-9999.ebuild, +files/qtile-session, +metadata.xml:
+ Initial import, ebuild by me (bug #442820).
+
diff --git a/x11-wm/qtile/Manifest b/x11-wm/qtile/Manifest
new file mode 100644
index 000000000000..1e04cd2d7514
--- /dev/null
+++ b/x11-wm/qtile/Manifest
@@ -0,0 +1,6 @@
+AUX qtile-session 1854 SHA256 848ebde7357aa27e94c7b2e6d4f0eb670ce9ddf0528b58e8019944cada4f7131 SHA512 4d7418316f6baeaa28b254f341c74641004bd58444c425f626c92e44bff046ec108d128a9e91c10daae75b222c5758e8f0e8a5e3b778b2af36409f4d4b778cbe WHIRLPOOL fc591eb8c5ef8f3457f847e7577f915c8dbee381607760a556204114c6ea88ab0071624070d7dafd849b3888d7a930a77ff55bac1fcb267e9bab74d0fe5961bf
+DIST qtile-0.5.tar.gz 317041 SHA256 f80cd73d6655ab53baa6ae11afb9561f724515052e4ba570e6e978abc78c1167 SHA512 2af8a13dcc355b4f556e77a7c78235eb39e9112631750d6680cc1d96c7895ffd3c8ac937ec8b796f4e3f841d39b10aafb930b440addfd8e2fc951e2010e3dc98 WHIRLPOOL d88f70906de570d129aae38ff9ca7a829aa1d9b6d61a179a0cf4ad798d9314c9364a905739168a60b9c37384c13034172920c76cef0981a26df04544e94fe472
+EBUILD qtile-0.5.ebuild 1275 SHA256 3e7c52a77740d7594bfa6b92908fc9c3e7315321f7d4a1b2e9ae8cc44aa70125 SHA512 08fb353746995904613f04ffc82426b5f25aaa45cbf7675e265603176c5c548b5a9370c263c4dd52100240a50b943dadc76356ec141c1cc0c29e2b9b839c6359 WHIRLPOOL ed43df1341417e06b367dda55b4a80b9fa85bb33b58fb339c8c33eaba5b740ad5bdc0f6b98a7c3d77ff910bedf78545dd40c60a6a16c0c670e453452c8938e8d
+EBUILD qtile-9999.ebuild 1229 SHA256 9284c610fb702a50e6a74efef2ace0cd064bf3cafb91e9fb44a84ca725fe8002 SHA512 c042820d041e495a0981c9acb64d8afa8f608a59d35b050dd120414167bdf47726c6270f60529b0c4affb1414705aa0b899b73e2002d87435483e76e0a6a417b WHIRLPOOL 8525eead892e9744bd581c0771d978471498e7d1ebc73302f84d8a44357a28c9ca628f24f8879ce48d921a69e89a9bfd661a7c3ea324ac0205eec11176b0be53
+MISC ChangeLog 339 SHA256 b0863665284eb5b5d2f491f209163829a2a167442634d1010aaf3d1f9568610b SHA512 fc88078a72a885db96bcbfce092efa7f1243fe8218a054b3414aa3ce73b92213bc2d1601b8c6f9fe1cfbdc7ed2776aecfb4d2d3b96f6f2e47ffd81ace0a3ec83 WHIRLPOOL 048e84e2ddfa6e5b7bbb3e21e661ef56fb8398701abfc4d072312b06dd9b473ae054b0496b64a2e821d536f216e7483c0f44be10466ce30b809cdd9cdadf1946
+MISC metadata.xml 232 SHA256 a778e40f66cb2fa35529e4f45cb8356c8b1b109163cd939396f02e8ea6aa5f1a SHA512 6952f63da1c92a4ed7ddb87b5eb4003d123f0b7af6ffdbc9118159c97ddf18917e8ac7727285a42c07c64e52a40335bc2ef9f17261557617beb8c2226a391873 WHIRLPOOL 0a4441f075f8af01588da2aac3e03732f93463b8bea5e46749d37e1468452735d15f45243b930b3346c93734f8aa235a492030445fee471a95d2c5998f08e7de
diff --git a/x11-wm/qtile/files/qtile-session b/x11-wm/qtile/files/qtile-session
new file mode 100644
index 000000000000..56a96ddd79ea
--- /dev/null
+++ b/x11-wm/qtile/files/qtile-session
@@ -0,0 +1,89 @@
+#!/bin/sh
+# qtile Xsession starter, based on Xsession from x11-apps/xinit
+
+# redirect errors to a file in user's home directory if we can
+for errfile in "$HOME/.qtile-errors" "${TMPDIR-/tmp}/qtile-$USER" "/tmp/qtile-$USER"
+do
+ if ( cp /dev/null "$errfile" 2> /dev/null )
+ then
+ chmod 600 "$errfile"
+ exec > "$errfile" 2>&1
+ break
+ fi
+done
+
+userresources=$HOME/.Xresources
+usermodmap=$HOME/.Xmodmap
+userxkbmap=$HOME/.Xkbmap
+
+sysresources=/etc/X11/Xresources
+sysmodmap=/etc/X11/Xmodmap
+sysxkbmap=/etc/X11/Xkbmap
+
+rh6sysresources=/etc/X11/xinit/Xresources
+rh6sysmodmap=/etc/X11/xinit/Xmodmap
+
+# merge in defaults
+if [ -f "$rh6sysresources" ]; then
+ xrdb -merge "$rh6sysresources"
+fi
+
+if [ -f "$sysresources" ]; then
+ xrdb -merge "$sysresources"
+fi
+
+if [ -f "$userresources" ]; then
+ xrdb -merge "$userresources"
+fi
+
+# merge in keymaps
+if [ -f "$sysxkbmap" ]; then
+ setxkbmap `cat "$sysxkbmap"`
+ XKB_IN_USE=yes
+fi
+
+if [ -f "$userxkbmap" ]; then
+ setxkbmap `cat "$userxkbmap"`
+ XKB_IN_USE=yes
+fi
+
+#
+# Eeek, this seems like too much magic here
+#
+if [ -z "$XKB_IN_USE" -a ! -L /etc/X11/X ]; then
+ if grep '^exec.*/Xsun' /etc/X11/X > /dev/null 2>&1 && [ -f /etc/X11/XF86Config ]; then
+ xkbsymbols=`sed -n -e 's/^[ ]*XkbSymbols[ ]*"\(.*\)".*$/\1/p' /etc/X11/XF86Config /etc/X11/xorg.conf`
+ if [ -n "$xkbsymbols" ]; then
+ setxkbmap -symbols "$xkbsymbols"
+ XKB_IN_USE=yes
+ fi
+ fi
+fi
+
+# xkb and xmodmap don't play nice together
+if [ -z "$XKB_IN_USE" ]; then
+ if [ -f "$rh6sysmodmap" ]; then
+ xmodmap "$rh6sysmodmap"
+ fi
+
+ if [ -f "$sysmodmap" ]; then
+ xmodmap "$sysmodmap"
+ fi
+
+ if [ -f "$usermodmap" ]; then
+ xmodmap "$usermodmap"
+ fi
+fi
+
+unset XKB_IN_USE
+
+# run all system xinitrc shell scripts.
+if [ -d /etc/X11/xinit/xinitrc.d ]; then
+ for i in /etc/X11/xinit/xinitrc.d/* ; do
+ if [ -x "$i" ]; then
+ . "$i"
+ fi
+ done
+fi
+
+exec /usr/bin/qtile
diff --git a/x11-wm/qtile/metadata.xml b/x11-wm/qtile/metadata.xml
new file mode 100644
index 000000000000..157326a7e891
--- /dev/null
+++ b/x11-wm/qtile/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>radhermit@gentoo.org</email>
+ <name>Tim Harder</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/x11-wm/qtile/qtile-0.5.ebuild b/x11-wm/qtile/qtile-0.5.ebuild
new file mode 100644
index 000000000000..1d3c029cc79d
--- /dev/null
+++ b/x11-wm/qtile/qtile-0.5.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/x11-wm/qtile/qtile-0.5.ebuild,v 1.1 2012/11/13 05:03:09 radhermit Exp $
+
+EAPI="5"
+
+PYTHON_DEPEND="2"
+SUPPORT_PYTHON_ABIS="1"
+RESTRICT_PYTHON_ABIS="3.*"
+PYTHON_MODNAME="libqtile"
+DISTUTILS_SRC_TEST="nosetests"
+
+inherit distutils vcs-snapshot virtualx
+
+DESCRIPTION="A full-featured, hackable tiling window manager written in Python"
+HOMEPAGE="http://qtile.org/"
+SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc test"
+
+RDEPEND=">=dev-python/pycairo-1.10.0-r3[xcb]
+ dev-python/pygtk:2
+ >=x11-libs/xpyb-1.3.1"
+DEPEND="doc? ( dev-python/sphinx )
+ test? (
+ ${RDEPEND}
+ dev-python/python-xlib
+ x11-base/xorg-server[kdrive]
+ )"
+
+# tests fail due to xauth errors from python-xlib
+RESTRICT="test"
+
+DOCS="TODO.rst"
+
+src_compile() {
+ distutils_src_compile
+ use doc && emake -C docs html
+}
+
+src_test() {
+ testing() {
+ VIRTUALX_COMMAND="nosetests"
+ PYTHONPATH="build-${PYTHON_ABI}/lib" virtualmake
+ }
+ python_execute_function testing
+}
+
+src_install() {
+ distutils_src_install
+ use doc && dohtml -r docs/_build/html/*
+
+ insinto /usr/share/xsessions
+ doins resources/qtile.desktop
+
+ exeinto /etc/X11/Sessions
+ newexe "${FILESDIR}"/${PN}-session ${PN}
+}
diff --git a/x11-wm/qtile/qtile-9999.ebuild b/x11-wm/qtile/qtile-9999.ebuild
new file mode 100644
index 000000000000..1108acc1d020
--- /dev/null
+++ b/x11-wm/qtile/qtile-9999.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/x11-wm/qtile/qtile-9999.ebuild,v 1.1 2012/11/13 05:03:09 radhermit Exp $
+
+EAPI="5"
+
+PYTHON_DEPEND="2"
+SUPPORT_PYTHON_ABIS="1"
+RESTRICT_PYTHON_ABIS="3.*"
+PYTHON_MODNAME="libqtile"
+DISTUTILS_SRC_TEST="nosetests"
+
+inherit git-2 distutils virtualx
+
+EGIT_REPO_URI="git://github.com/qtile/qtile.git"
+
+DESCRIPTION="A full-featured, hackable tiling window manager written in Python"
+HOMEPAGE="http://qtile.org/"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS=""
+IUSE="doc test"
+
+RDEPEND=">=dev-python/pycairo-1.10.0-r3[xcb]
+ dev-python/pygtk:2
+ >=x11-libs/xpyb-1.3.1"
+DEPEND="doc? ( dev-python/sphinx )
+ test? (
+ ${RDEPEND}
+ dev-python/python-xlib
+ x11-base/xorg-server[kdrive]
+ )"
+
+# tests fail due to xauth errors from python-xlib
+RESTRICT="test"
+
+DOCS="TODO.rst"
+
+src_compile() {
+ distutils_src_compile
+ use doc && emake -C docs html
+}
+
+src_test() {
+ testing() {
+ VIRTUALX_COMMAND="nosetests"
+ PYTHONPATH="build-${PYTHON_ABI}/lib" virtualmake
+ }
+ python_execute_function testing
+}
+
+src_install() {
+ distutils_src_install
+ use doc && dohtml -r docs/_build/html/*
+
+ insinto /usr/share/xsessions
+ doins resources/qtile.desktop
+
+ exeinto /etc/X11/Sessions
+ newexe "${FILESDIR}"/${PN}-session ${PN}
+}