# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="A framing/tiling window manager" HOMEPAGE="http://www.relex.ru/~yarick/trswm/" SRC_URI="http://www.relex.ru/~yarick/trswm/${P}.tar.gz http://www.relex.ru/~yarick/trswm/${PN}-config.tar.gz" LICENSE="freedist" SLOT="0" KEYWORDS="~x86" IUSE="" DEPEND=">=dev-lang/lua-4* virtual/x11" S=${WORKDIR} src_compile() { cd ${WORKDIR}/${PN} cp Options Options.orig sed -e "s:^CFLAGS=:CFLAGS=${CFLAGS} :" Options.orig > Options emake || die cd ${WORKDIR}/${PN}-config cp trswm.lua trswm.lua.orig sed -e "s:/home/yarick/Work/trswm/[^/]\+:/usr/lib/${PN}:" \ -e "s:/home/yarick/.trswm-devel:/etc/X11/${PN}:" \ trswm.lua.orig > trswm.lua } src_install() { dobin trswm insinto /usr/lib/${PN} doins */*.so insinto /etc/X11/trswm doins ../${PN}-config/*.lua echo -e "#!/bin/sh\n/usr/bin/trswm" > trswm exeinto /etc/X11/Sessions doexe trswm } pkg_postinst() { einfo "Before you can use trswm you must copy the configuration" einfo "files to ~/.trswm-devel, i.e." einfo " cp -r /etc/X11/trswm ~/.trswm-devel" }