blob: 75dffbdbb0b20cd8647edcf7770e5251de73e39f (
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
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-libs/libxklavier/libxklavier-5.1.ebuild,v 1.9 2012/05/05 03:52:30 jdhore Exp $
EAPI="3"
inherit gnome.org eutils libtool multilib
DESCRIPTION="High level XKB library"
HOMEPAGE="http://www.freedesktop.org/Software/LibXklavier"
LICENSE="LGPL-2"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 sh sparc x86 ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~x86-solaris"
IUSE="doc"
RDEPEND="x11-misc/xkeyboard-config
x11-libs/libX11
>=x11-libs/libXi-1.1.3
x11-apps/xkbcomp
x11-libs/libxkbfile
>=dev-libs/glib-2.16:2
dev-libs/libxml2
app-text/iso-codes"
DEPEND="${RDEPEND}
virtual/pkgconfig
sys-devel/gettext
doc? ( >=dev-util/gtk-doc-1.4 )"
src_configure() {
econf \
--disable-dependency-tracking \
--disable-static \
--with-html-dir="${EPREFIX}/usr/share/doc/${PF}/html" \
--with-xkb-base="${EPREFIX}/usr/share/X11/xkb" \
--with-xkb-bin-base="${EPREFIX}/usr/bin" \
$(use_enable doc gtk-doc)
}
src_install() {
emake DESTDIR="${D}" install || die
dodoc AUTHORS ChangeLog CREDITS NEWS README || die
# Remove unnecessary la files
find "${D}" -name '*.la' -exec rm -f '{}' + || die
}
pkg_postinst() {
preserve_old_lib_notify /usr/$(get_libdir)/libxklavier.so.15
}
|