# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils autotools DESCRIPTION="A keyboard layout switcher module for fvwm window manager" HOMEPAGE="http://sourceforge.net/projects/fvwmkb/" SRC_URI="mirror://sourceforge/fvwmkb/FvwmKb-${PV}.tar.gz" LICENSE="GPL-2" KEYWORDS="~x86 ~amd64" SLOT="0" RDEPEND="x11-wm/fvwm" DEPEND="${RDEPEND} sys-devel/autoconf sys-devel/automake " S=${WORKDIR}/FvwmKb-${PV} src_unpack() { unpack ${A} cd ${S} epatch ${FILESDIR}/${PF}.patch eautoreconf } src_compile() { econf \ --with-moduledir="$(fvwm-config -m)" \ || die "econf failed" emake || die "emake failed" } src_install () { dodir `fvwm-config -m` emake DESTDIR="${D}" install || die "emake install failed" dodoc AUTHORS COPYING ChangeLog INSTALL INSTALL.FvwmKb INSTALL.FvwmKb.koi8 NEWS README README.koi8 TODO doc/*.sample dodir /usr/share/pixmaps insinto /usr/share/pixmaps doins pixmaps/*.xpm }