summaryrefslogtreecommitdiff
blob: bcb935ea12705f2574d104d165b846282c685a39 (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
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-misc/xfkc/xfkc-0.2.ebuild,v 1.4 2008/11/08 17:09:06 armin76 Exp $

DESCRIPTION="a keyboard layout configuration tool"
HOMEPAGE="http://gauvain.tuxfamily.org/code/xfkc.html"
SRC_URI="http://gauvain.tuxfamily.org/code/archive/${PN}/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="debug nls"

RDEPEND=">=xfce-base/libxfce4util-4.4
	>=xfce-base/libxfcegui4-4.4
	>=x11-libs/libxklavier-3"
DEPEND="${RDEPEND}
	dev-util/pkgconfig
	nls? ( dev-util/intltool
		sys-devel/gettext )"

src_unpack() {
	unpack ${A}
	cd "${S}"

	echo xfce-xfkc-settings.desktop.in >> po/POTFILES.skip
}

src_compile() {
	econf --disable-dependency-tracking \
		$(use_enable nls) $(use_enable debug)
	emake || die "emake failed."
}

src_install() {
	emake DESTDIR="${D}" install || die "emake install failed."
	dodoc AUTHORS ChangeLog README
}