# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI="2" inherit eutils DESCRIPTION="Small dynamic tiling window manager for X11 that tries to stay out of the way so that valuable screen real estate can be used for much more important stuff." HOMEPAGE="http://www.scrotwm.org" SRC_URI="http://peereboom.us/scrotwm/snapshot/${P}.tgz" LICENSE="ISC" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="xft" DEPEND="x11-libs/libX11 x11-proto/xproto >x11-libs/libXrandr-1.0 xft? ( x11-libs/libXft )" RDEPEND="${DEPEND}" src_unpack() { unpack ${A} cd "${S}" if use xft; then epatch "${FILESDIR}/use-xft.diff" fi } src_compile() { cd "${S}/linux" emake || die "emake failed" } src_install() { DESTTREE=/usr/local cd "${S}" cd "${S}/linux" emake install DESTDIR=${D} || die "install failed" cd "${S}" doman *.1 dodir /usr/share/scrotwm insinto /usr/share/scrotwm insopts -m0755 doins scrotwm.conf doins baraction.sh doins initscreen.sh doins screenshot.sh elog "Scrotwm successfully installed" elog "In /usr/share/scrotwm you will find a sample conf file, along with some useful scripts. Don't forget to copy scrotwm.conf into your homedir, and rename it as .scrotwm.conf ." }