diff options
author | 2012-08-13 12:11:22 -0400 | |
---|---|---|
committer | 2012-08-13 12:12:48 -0400 | |
commit | fab8a4e0cb0e3d01f3843b58e9a83937e62eccc5 (patch) | |
tree | c8d6531c96b38dae8fbde84916a98ddaea34ee25 /x11-wm | |
parent | fix bug with openafs 1.6.1 and gentoo-sources 3.5 (diff) | |
download | jtriley-fab8a4e0cb0e3d01f3843b58e9a83937e62eccc5.tar.gz jtriley-fab8a4e0cb0e3d01f3843b58e9a83937e62eccc5.tar.bz2 jtriley-fab8a4e0cb0e3d01f3843b58e9a83937e62eccc5.zip |
awesome: add 3.4.13 ebuild from bug 421025
Remove once 421025 is closed.
Diffstat (limited to 'x11-wm')
-rw-r--r-- | x11-wm/awesome/Manifest | 1 | ||||
-rw-r--r-- | x11-wm/awesome/awesome-3.4.13.ebuild | 108 | ||||
-rw-r--r-- | x11-wm/awesome/files/awesome-session | 90 | ||||
-rw-r--r-- | x11-wm/awesome/files/awesome.desktop | 8 |
4 files changed, 207 insertions, 0 deletions
diff --git a/x11-wm/awesome/Manifest b/x11-wm/awesome/Manifest new file mode 100644 index 0000000..0111925 --- /dev/null +++ b/x11-wm/awesome/Manifest @@ -0,0 +1 @@ +DIST awesome-3.4.13.tar.bz2 765638 SHA256 369334656b054e94a5e81d85f6484e6c6fe9fd6254c197fa16a09933ebd57848 SHA512 9b30667c43c7f84f5347fbec7fbe669fbd78533c863536f3c530e3eb7183e6f2f855fcb5b0ffe18f02f67c1626f6bd121e029ddb67b54272f66d59e917edaccb WHIRLPOOL 818f29221f11459d40e6b8ce6854330f89f0e6fc9ea2ecc4cf82cedec9e65923f71a4efdca9f42cafd965e4d5a39ef2f8766e444c56523669f6269b3de8f74e9 diff --git a/x11-wm/awesome/awesome-3.4.13.ebuild b/x11-wm/awesome/awesome-3.4.13.ebuild new file mode 100644 index 0000000..6efe736 --- /dev/null +++ b/x11-wm/awesome/awesome-3.4.13.ebuild @@ -0,0 +1,108 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="3" +CMAKE_MIN_VERSION="2.8" +inherit cmake-utils eutils + +DESCRIPTION="A dynamic floating and tiling window manager" +HOMEPAGE="http://awesome.naquadah.org/" +SRC_URI="http://awesome.naquadah.org/download/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~arm ppc ppc64 x86 ~x86-fbsd" +IUSE="dbus doc elibc_FreeBSD" + +COMMON_DEPEND=">=dev-lang/lua-5.1 + dev-libs/libev + >=dev-libs/libxdg-basedir-1 + media-libs/imlib2[png] + x11-libs/cairo[xcb] + || ( <x11-libs/libX11-1.3.99.901[xcb] >=x11-libs/libX11-1.3.99.901 ) + >=x11-libs/libxcb-1.6 + >=x11-libs/pango-1.19.3 + >=x11-libs/startup-notification-0.10_p20110426 + >=x11-libs/xcb-util-0.3.8 + dbus? ( >=sys-apps/dbus-1 ) + elibc_FreeBSD? ( dev-libs/libexecinfo )" + +# graphicsmagick's 'convert -channel' has no Alpha support, bug #352282 +DEPEND="${COMMON_DEPEND} + >=app-text/asciidoc-8.4.5 + app-text/xmlto + dev-util/gperf + virtual/pkgconfig + media-gfx/imagemagick[png] + >=x11-proto/xcb-proto-1.5 + >=x11-proto/xproto-7.0.15 + doc? ( + app-doc/doxygen + dev-lua/luadoc + media-gfx/graphviz + )" + +RDEPEND="${COMMON_DEPEND} + || ( + x11-misc/gxmessage + x11-apps/xmessage + )" + +# bug #321433: Need one of these to for awsetbg. +# imagemagick provides 'display' and is further down the default list, but +# listed here for completeness. 'display' however is only usable with +# x11-apps/xwininfo also present. +RDEPEND="${RDEPEND} + || ( + ( x11-apps/xwininfo + || ( media-gfx/imagemagick media-gfx/graphicsmagick[imagemagick] ) + ) + x11-misc/habak + media-gfx/feh + x11-misc/hsetroot + media-gfx/qiv + media-gfx/xv + x11-misc/xsri + media-gfx/xli + x11-apps/xsetroot + )" + +DOCS="AUTHORS BUGS PATCHES README STYLE" + +src_configure() { + mycmakeargs=( + -DCMAKE_INSTALL_PREFIX="${EPREFIX}"/usr + -DSYSCONFDIR="${EPREFIX}"/etc + $(cmake-utils_use_with dbus DBUS) + $(cmake-utils_use doc GENERATE_LUADOC) + ) + + cmake-utils_src_configure +} + +src_compile() { + local myargs="all" + + if use doc ; then + myargs="${myargs} doc" + fi + cmake-utils_src_make ${myargs} +} + +src_install() { + cmake-utils_src_install + + if use doc ; then + ( + cd "${CMAKE_BUILD_DIR}"/doc + mv html doxygen + dohtml -r doxygen || die + ) + mv "${ED}"/usr/share/doc/${PN}/luadoc "${ED}"/usr/share/doc/${PF}/html/luadoc || die + fi + rm -rf "${ED}"/usr/share/doc/${PN} || die + + exeinto /etc/X11/Sessions + newexe "${FILESDIR}"/${PN}-session ${PN} || die +} diff --git a/x11-wm/awesome/files/awesome-session b/x11-wm/awesome/files/awesome-session new file mode 100644 index 0000000..fe76946 --- /dev/null +++ b/x11-wm/awesome/files/awesome-session @@ -0,0 +1,90 @@ +#!/bin/sh +# Awesome Xsession starter, based on Xsession shipped by x11-apps/xinit-1.0.5-r1 + +# redirect errors to a file in user's home directory if we can +for errfile in "$HOME/.awesome-errors" "${TMPDIR-/tmp}/awesome-$USER" "/tmp/awesome-$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/awesome diff --git a/x11-wm/awesome/files/awesome.desktop b/x11-wm/awesome/files/awesome.desktop new file mode 100644 index 0000000..2341f83 --- /dev/null +++ b/x11-wm/awesome/files/awesome.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Encoding=UTF-8 +Name=awesome +Comment=awesome the window manager +Exec=/etc/X11/Sessions/awesome +TryExec=awesome +Icon= +Type=Application |