summaryrefslogtreecommitdiff
path: root/x11-plugins/fvwmkb/fvwmkb-0.3.2-r2.ebuild
blob: 87811afd2db9626f2bfe8438f736ea7fdba651f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# 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
}