summaryrefslogtreecommitdiff
blob: 3b52d269160e82007b5fa94baca7f346e41a3e67 (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
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-libs/libxklavier/libxklavier-1.00.ebuild,v 1.10 2004/06/24 22:06:04 agriffis 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="~x86 ~ppc ~sparc amd64 ~hppa ~alpha ~ia64"
IUSE="doc"

RDEPEND="virtual/x11
	dev-libs/libxml2"

DEPEND="${RDEPEND}
	dev-util/pkgconfig
	doc? ( app-doc/doxygen )"

src_unpack() {
	unpack ${A}

	cd ${S}
	use sparc && epatch ${FILESDIR}/sun-keymaps.patch
}

src_compile() {

	econf `use_enable doc doxygen` || die
	emake || die

}

src_install() {

	einstall || die

	insinto /usr/share/libxklavier
	use sparc && doins ${FILESDIR}/sun.xml

	dodoc "AUTHORS COPYING* CREDITS ChangeLog INSTALL NEWS README"

}