summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Kursawe <phosphan@gentoo.org>2012-05-22 20:36:30 +0000
committerPatrick Kursawe <phosphan@gentoo.org>2012-05-22 20:36:30 +0000
commit15f8c7667d345784b5b8764ae8d754b86a831a32 (patch)
treea1876b1dd83c6bc54c2f5ea5b6045ed392009a74 /x11-misc/xxkb/xxkb-1.11-r2.ebuild
parentDirectory src/m is gone. (diff)
downloadgentoo-2-15f8c7667d345784b5b8764ae8d754b86a831a32.tar.gz
gentoo-2-15f8c7667d345784b5b8764ae8d754b86a831a32.tar.bz2
gentoo-2-15f8c7667d345784b5b8764ae8d754b86a831a32.zip
Removing obsolete version, adding user supplied patch from bug #407127.
(Portage version: 2.1.10.49/cvs/Linux i686)
Diffstat (limited to 'x11-misc/xxkb/xxkb-1.11-r2.ebuild')
-rw-r--r--x11-misc/xxkb/xxkb-1.11-r2.ebuild62
1 files changed, 62 insertions, 0 deletions
diff --git a/x11-misc/xxkb/xxkb-1.11-r2.ebuild b/x11-misc/xxkb/xxkb-1.11-r2.ebuild
new file mode 100644
index 000000000000..812bc99a1574
--- /dev/null
+++ b/x11-misc/xxkb/xxkb-1.11-r2.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/x11-misc/xxkb/xxkb-1.11-r2.ebuild,v 1.1 2012/05/22 20:36:30 phosphan Exp $
+
+EAPI="1"
+
+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:2 )"
+DEPEND="${RDEPEND}
+ app-text/rman
+ x11-misc/imake
+ svg? ( virtual/pkgconfig )"
+
+S="${WORKDIR}/${PN}"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ mkdir flags
+ epatch "${FILESDIR}/svg-flags.patch"
+ use svg && epatch "${FILESDIR}/svg-appdefaults.patch"
+ epatch "${FILESDIR}/missing_init.patch"
+}
+
+src_compile() {
+ local myconf
+ use svg && myconf="-DWITH_SVG_SUPPORT"
+ xmkmf ${myconf} || die "xmkmf failed."
+ emake CDEBUGFLAGS="${CFLAGS}" EXTRA_LIBRARIES="-lXext" PROJECTROOT=/usr \
+ PIXMAPDIR=/usr/share/xxkb LOCAL_LDFLAGS="${LDFLAGS}" || die "emake failed."
+}
+
+src_install() {
+ local myopts
+ if use svg; then
+ myopts="PIXMAPS=flags/de.svg flags/pl.svg flags/il.svg flags/by.svg \
+ flags/ua.svg flags/su.svg flags/ru.svg flags/bg.svg flags/en.svg"
+ else
+ myopts="FOOBAR=buzz"
+ fi
+ emake "${myopts}" DESTDIR="${D}" install || die "emake install failed"
+ emake DESTDIR="${D}" install.man || die "emake install.man failed"
+
+ insinto /usr/share/xxkb
+ use svg || doins "${FILESDIR}"/*.xpm
+ dodoc README* CHANGES*
+}