blob: e347fb307f94f32d41deb635ad4847e63048c6e4 (
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
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-misc/xxkb/xxkb-1.11.ebuild,v 1.1 2008/04/16 08:54:14 phosphan Exp $
inherit eutils
DESCRIPTION="eXtended XKB - assign different keymaps to different windows"
HOMEPAGE="http://sourceforge.net/projects/xxkb/"
SRC_URI="mirror://sourceforge/${PN}/${P}-src.tar.gz"
LICENSE="Artistic"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE="svg"
RDEPEND="x11-libs/libX11
x11-libs/libXt
x11-libs/libXpm
svg? ( >=dev-libs/glib-2
>=x11-libs/gtk+-2
gnome-base/librsvg )"
DEPEND="${RDEPEND}
app-text/rman
x11-misc/imake
svg? ( dev-util/pkgconfig )"
S=${WORKDIR}/${PN}
src_compile() {
local myconf
use svg && myconf="-DWITH_SVG_SUPPORT"
xmkmf ${myconf} || die "xmkmf failed."
emake EXTRA_LIBRARIES="-lXext" PROJECTROOT=/usr PIXMAPDIR=/usr/share/xxkb || die "emake failed."
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
emake DESTDIR="${D}" install.man || die "emake install.man failed"
insinto /usr/share/xxkb
doins "${FILESDIR}"/*.xpm
dodoc README* CHANGES*
}
|