/[gentoo-x86]/x11-misc/xxkb/xxkb-1.11-r3.ebuild
Gentoo

Contents of /x11-misc/xxkb/xxkb-1.11-r3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Fri Oct 31 15:47:08 2014 UTC (6 years, 1 month ago) by nimiux
Branch: MAIN
Changes since 1.2: +2 -2 lines
Stable for amd64 wrt bug #523158

(Portage version: 2.2.8-r2/cvs/Linux x86_64, signed Manifest commit with key F253DB15)

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/x11-misc/xxkb/xxkb-1.11-r3.ebuild,v 1.2 2014/09/21 10:53:26 jer Exp $
4
5 EAPI=5
6 inherit eutils multilib
7
8 DESCRIPTION="eXtended XKB - assign different keymaps to different windows"
9 HOMEPAGE="http://sourceforge.net/projects/xxkb/"
10 SRC_URI="
11 mirror://sourceforge/${PN}/${P}-src.tar.gz
12 svg? ( https://dev.gentoo.org/~jer/${PN}-flags.tar.bz2 )
13 "
14
15 LICENSE="Artistic"
16 SLOT="0"
17 KEYWORDS="amd64 ~ppc ~x86"
18 IUSE="svg"
19
20 RDEPEND="
21 x11-libs/libX11
22 x11-libs/libXpm
23 x11-libs/libXt
24 svg? (
25 dev-libs/glib:2
26 gnome-base/librsvg:2
27 x11-libs/gtk+:2
28 )
29 "
30 DEPEND="
31 ${RDEPEND}
32 app-text/rman
33 svg? ( virtual/pkgconfig )
34 x11-misc/imake
35 "
36
37 S="${WORKDIR}/${PN}"
38
39 src_prepare() {
40 if use svg; then
41 mv "${WORKDIR}"/flags . || die
42 epatch "${FILESDIR}"/svg-flags.patch
43 fi
44
45 epatch "${FILESDIR}"/missing_init.patch
46 }
47
48 src_configure() {
49 xmkmf $(usex svg -DWITH_SVG_SUPPORT '') || die
50 }
51
52 src_compile() {
53 emake \
54 CDEBUGFLAGS="${CFLAGS}" \
55 EXTRA_LIBRARIES="-lXext" \
56 LOCAL_LDFLAGS="${LDFLAGS}" \
57 PIXMAPDIR=/usr/share/xxkb \
58 PROJECTROOT=/usr
59 }
60
61 src_install() {
62 local myopts
63 if use svg; then
64 myopts="PIXMAPS=flags/de.svg flags/pl.svg flags/il.svg flags/by.svg \
65 flags/ua.svg flags/su.svg flags/ru.svg flags/bg.svg flags/en.svg"
66 else
67 myopts="FOOBAR=buzz"
68 fi
69
70 emake "${myopts}" DESTDIR="${D}" install
71 rm -r "${D}"/usr/$(get_libdir)/X11/app-defaults || die
72
73 emake DESTDIR="${D}" install.man
74
75 insinto /usr/share/xxkb
76 use svg || doins "${FILESDIR}"/*.xpm
77 dodoc README* CHANGES*
78 }

  ViewVC Help
Powered by ViewVC 1.1.20