summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2019-10-25 18:32:54 +0200
committerJeroen Roovers <jer@gentoo.org>2019-10-25 18:34:06 +0200
commite9967076bde798bb95538c41c93910ec3353b77d (patch)
tree783763be2c21863e3d972ed7968859f1195675e3 /x11-misc/xxkb
parentdev-perl/Net-SSLeay: Remove old (diff)
downloadgentoo-e9967076bde798bb95538c41c93910ec3353b77d.tar.gz
gentoo-e9967076bde798bb95538c41c93910ec3353b77d.tar.bz2
gentoo-e9967076bde798bb95538c41c93910ec3353b77d.zip
x11-misc/xxkb: Set CC, EAPI=7
Package-Manager: Portage-2.3.78, Repoman-2.3.17 Signed-off-by: Jeroen Roovers <jer@gentoo.org>
Diffstat (limited to 'x11-misc/xxkb')
-rw-r--r--x11-misc/xxkb/xxkb-1.11.1-r1.ebuild79
1 files changed, 79 insertions, 0 deletions
diff --git a/x11-misc/xxkb/xxkb-1.11.1-r1.ebuild b/x11-misc/xxkb/xxkb-1.11.1-r1.ebuild
new file mode 100644
index 000000000000..3cc40778ed9f
--- /dev/null
+++ b/x11-misc/xxkb/xxkb-1.11.1-r1.ebuild
@@ -0,0 +1,79 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+inherit multilib toolchain-funcs
+
+DESCRIPTION="eXtended XKB - assign different keymaps to different windows"
+HOMEPAGE="https://sourceforge.net/projects/xxkb/"
+SRC_URI="
+ mirror://sourceforge/${PN}/${P}-src.tar.gz
+ svg? ( https://dev.gentoo.org/~jer/${PN}-flags.tar.bz2 )
+"
+
+LICENSE="Artistic-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="svg"
+
+RDEPEND="
+ x11-libs/libX11
+ x11-libs/libXpm
+ x11-libs/libXt
+ svg? (
+ dev-libs/glib:2
+ gnome-base/librsvg:2
+ x11-libs/gtk+:2
+ )
+"
+DEPEND="
+ ${RDEPEND}
+ app-text/rman
+ svg? ( virtual/pkgconfig )
+ x11-misc/imake
+"
+
+src_prepare() {
+ if use svg; then
+ mv "${WORKDIR}"/flags . || die
+ eapply "${FILESDIR}"/svg-flags.patch
+ eapply "${FILESDIR}"/svg-appdefaults.patch
+ fi
+
+ eapply "${FILESDIR}"/missing_init.patch
+
+ default
+}
+
+src_configure() {
+ xmkmf $(usex svg -DWITH_SVG_SUPPORT '') || die
+}
+
+src_compile() {
+ emake \
+ CC="$(tc-getCC)" \
+ CDEBUGFLAGS="${CFLAGS}" \
+ EXTRA_LIBRARIES="-lXext" \
+ LOCAL_LDFLAGS="${LDFLAGS}" \
+ PIXMAPDIR=/usr/share/xxkb \
+ PROJECTROOT=/usr
+}
+
+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
+ rm -r "${D}"/usr/$(get_libdir)/X11/app-defaults || die
+
+ emake DESTDIR="${D}" install.man
+
+ insinto /usr/share/xxkb
+ use svg || doins "${FILESDIR}"/*.xpm
+ dodoc README* CHANGES*
+}