blob: 0d60a0bec681a7e3e161ed847132190ccc8abcba (
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
45
46
47
48
49
50
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-misc/xkeyboard-config/xkeyboard-config-1.7.ebuild,v 1.12 2010/04/18 22:32:06 abcd Exp $
EAPI=3
if [[ ${PV} = 9999* ]]; then
GIT_ECLASS="git"
EGIT_REPO_URI="git://anongit.freedesktop.org/git/xkeyboard-config"
else
GIT_ECLASS=
SRC_URI="http://xlibs.freedesktop.org/xkbdesc/${P}.tar.bz2"
fi
inherit ${GIT_ECLASS} autotools
DESCRIPTION="X keyboard configuration database"
HOMEPAGE="http://www.freedesktop.org/wiki/Software/XKeyboardConfig"
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x86-solaris"
IUSE=""
LICENSE="MIT"
SLOT="0"
RDEPEND="x11-apps/xkbcomp"
DEPEND="${RDEPEND}
>=dev-util/intltool-0.30
dev-perl/XML-Parser"
src_prepare() {
if [[ ${PV} = 9999* ]]; then
intltoolize
eautoreconf
fi
}
src_configure() {
econf \
--with-xkb-base="${EPREFIX}"/usr/share/X11/xkb \
--enable-compat-rules \
--disable-xkbcomp-symlink \
--with-xkb-rules-symlink=xorg
}
src_install() {
emake DESTDIR="${D}" install || die "install failed"
echo "CONFIG_PROTECT=\"/usr/share/X11/xkb\"" > "${T}"/10xkeyboard-config
doenvd "${T}"/10xkeyboard-config
}
|