summaryrefslogtreecommitdiff
blob: 4ce72faa9206ff825e416380c92c238576bfbfc9 (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
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-misc/xkbdata/xkbdata-1.0.1.ebuild,v 1.12 2008/05/28 01:36:30 dberkholz Exp $

# Must be before x-modular eclass is inherited
#SNAPSHOT="yes"

MODULE="data"
inherit x-modular multilib

DESCRIPTION="X.Org xkbdata data"

KEYWORDS="alpha amd64 arm hppa mips ppc ppc64 s390 sh sparc x86"

RDEPEND="x11-apps/xkbcomp
	!x11-misc/xkeyboard-config"
DEPEND="${RDEPEND}"

pkg_setup() {
	# (#130590) The old XKB directory can screw stuff up
	local DIR="${ROOT}usr/$(get_libdir)/X11/xkb"
	if [[ -d ${DIR} ]] ; then
		eerror "Directory ${DIR} should be"
		eerror "manually deleted/renamed/relocated before installing!"
		die "Manually remove ${DIR}"
	fi
}

src_install() {
	x-modular_src_install
	keepdir /var/lib/xkb
	dosym ../../../../var/lib/xkb /usr/share/X11/xkb/compiled
	echo "CONFIG_PROTECT=\"/usr/share/X11/xkb\"" > ${T}/10xkbdata
	doenvd ${T}/10xkbdata
}