-# Copyright 1999-2013 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
-EAPI="4"
+EAPI=6
inherit eutils flag-o-matic
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
-IUSE=""
PDEPEND="~x11-themes/emerald-themes-${THEMES_RELEASE}"
src_prepare() {
# Fix pkg-config file pollution wrt #380197
- epatch "${FILESDIR}"/${P}-pkgconfig-pollution.patch
+ eapply "${FILESDIR}/${P}-pkgconfig-pollution.patch"
+ # Fix crashes with some UTF-8 characters in window title
+ eapply "${FILESDIR}/${P}-fix-cairo-crash.patch"
# fix build with gtk+-2.22 - bug 341143
sed -i -e '/#define G[DT]K_DISABLE_DEPRECATED/s:^://:' \
include/emerald.h || die
# Fix underlinking
append-libs -ldl -lm
- epatch_user
+ eapply_user
}
src_configure() {
--- /dev/null
+https://github.com/compiz-reloaded/emerald/commit/7f712c5f4fb2dbc8bbe298acc8fef239815aea08\r
+\r
+--- a/src/main.c 2011-04-21 16:06:20.000000000 +0400\r
++++ b/src/main.c 2016-09-01 14:35:08.142020100 +0300\r
+@@ -1644,6 +1644,7 @@\r
+ \r
+ /* ===================active text colors */\r
+ cairo_set_source_alpha_color(cr, &fs->text_halo);\r
++ pango_cairo_update_layout(cr, d->layout);\r
+ pango_cairo_layout_path(cr, d->layout);\r
+ cairo_stroke(cr);\r
+ \r
---- libengine/emeraldengine.pc.in
-+++ libengine/emeraldengine.pc.in
+--- a/libengine/emeraldengine.pc.in
++++ b/libengine/emeraldengine.pc.in
@@ -7,6 +7,7 @@
Description: Library for Emerald Engines
Version: @VERSION@