blob: 3c398cf864e6d1857eed42597467a9d5ffd0b787 (
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
51
52
53
54
55
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-libs/libxklavier/libxklavier-2.2.ebuild,v 1.14 2007/07/22 02:58:03 dberkholz Exp $
inherit eutils
DESCRIPTION="High level XKB library"
HOMEPAGE="http://www.freedesktop.org/Software/LibXklavier"
SRC_URI="mirror://sourceforge/gswitchit/${P}.tar.gz"
LICENSE="LGPL-2"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 m68k ppc ppc64 s390 sh sparc x86"
IUSE="doc"
RDEPEND="|| ( x11-misc/xkeyboard-config x11-misc/xkbdata )
x11-apps/xkbcomp
x11-libs/libX11
x11-libs/libxkbfile
dev-libs/libxml2"
DEPEND="${RDEPEND}
dev-util/pkgconfig
doc? ( app-doc/doxygen )"
src_unpack() {
unpack ${A}
cd "${S}"
# Do not error on warnings (for gcc4 support). Patch from Fedora.
epatch "${FILESDIR}"/${PN}-1.14-werror.patch
}
src_compile() {
local xkbbase
# see bug #113108
if has_version x11-apps/xkbcomp ; then
xkbbase=/usr/share/X11/xkb
else
xkbbase=/usr/$(get_libdir)/X11/xkb
fi
econf \
--with-xkb-base=${xkbbase} \
--with-xkb-bin-base=/usr/bin \
$(use_enable doc doxygen) || die
emake || die "emake failed"
}
src_install() {
make install DESTDIR="${D}" || die
insinto /usr/share/libxklavier
use sparc && doins "${FILESDIR}/sun.xml"
dodoc AUTHORS CREDITS ChangeLog NEWS README
}
|