/[gentoo-x86]/x11-misc/xkeyboard-config/xkeyboard-config-0.8.ebuild
Gentoo

Contents of /x11-misc/xkeyboard-config/xkeyboard-config-0.8.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.12 - (show annotations) (download)
Thu Jan 31 04:41:37 2008 UTC (10 years, 4 months ago) by dberkholz
Branch: MAIN
CVS Tags: HEAD
Changes since 1.11: +1 -1 lines
FILE REMOVED
Clean up.
(Portage version: 2.1.4)

1 # Copyright 1999-2006 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/x11-misc/xkeyboard-config/xkeyboard-config-0.8.ebuild,v 1.11 2006/08/16 18:06:04 ranger Exp $
4
5 inherit eutils multilib
6
7 DESCRIPTION="X keyboard configuration database"
8 KEYWORDS="alpha amd64 arm hppa ia64 m68k mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd"
9 HOMEPAGE="http://www.freedesktop.org/wiki/Software/XKeyboardConfig"
10 SRC_URI="http://xlibs.freedesktop.org/xkbdesc/${P}.tar.bz2"
11
12 LICENSE="MIT"
13 SLOT="0"
14
15 RDEPEND="x11-apps/xkbcomp
16 !x11-misc/xkbdata"
17 DEPEND="${RDEPEND}
18 dev-perl/XML-Parser"
19
20 pkg_setup() {
21 # (#130590) The old XKB directory can screw stuff up
22 local DIR="${ROOT}usr/$(get_libdir)/X11/xkb"
23 if [[ -d ${DIR} ]] ; then
24 eerror "Directory ${DIR} should be"
25 eerror "manually deleted/renamed/relocated before installing!"
26 die "Manually remove ${DIR}"
27 fi
28
29 # The old xkbdata 'pc' directory can screw stuff up, because portage won't
30 # let us overwrite a directory with a file
31 local PC="${ROOT}usr/share/X11/xkb/symbols/pc"
32 if [[ -d ${PC} ]] ; then
33 eerror "Directory ${PC} should be"
34 eerror "manually deleted/renamed/relocated before installing!"
35 die "Manually remove ${PC}"
36 fi
37 }
38
39 src_compile() {
40 econf \
41 --with-xkb-base=/usr/share/X11/xkb \
42 --enable-compat-rules \
43 --disable-xkbcomp-symlink \
44 --with-xkb-rules-symlink=xorg \
45 || die "configure failed"
46
47 emake || die "make failed"
48 }
49
50 src_install() {
51 make DESTDIR="${D}" install || die "install failed"
52 echo "CONFIG_PROTECT=\"/usr/share/X11/xkb\"" > "${T}"/10xkeyboard-config
53 doenvd "${T}"/10xkeyboard-config
54 }

  ViewVC Help
Powered by ViewVC 1.1.20