sys-apps/roccat-tools: Fix build with pango-1.44
authorLars Wendler <polynomial-c@gentoo.org>
Wed, 1 Jan 2020 13:52:17 +0000 (14:52 +0100)
committerLars Wendler <polynomial-c@gentoo.org>
Wed, 1 Jan 2020 14:33:23 +0000 (15:33 +0100)
Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
sys-apps/roccat-tools/roccat-tools-5.9.0.ebuild

index 9be7384e3244bd0f72e1f5c815652b430ed1929d..131d60810454f13dfb6359e28d65461bdb7db70a 100644 (file)
@@ -1,9 +1,9 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
 
-inherit readme.gentoo-r1 cmake udev user xdg
+inherit readme.gentoo-r1 cmake flag-o-matic udev user xdg
 
 DESCRIPTION="Utility for advanced configuration of Roccat devices"
 
@@ -62,6 +62,9 @@ RDEPEND="
 DEPEND="
        ${RDEPEND}
 "
+BDEPEND="
+       virtual/pkgconfig
+"
 
 DOCS=( Changelog KNOWN_LIMITATIONS README )
 
@@ -80,6 +83,11 @@ src_prepare() {
 }
 
 src_configure() {
+       if has_version \>=x11-libs/pango-1.44.0 ; then
+               # Fix build with pango-1.44
+               append-cflags "$(pkg-config --cflags harfbuzz)"
+       fi
+
        mycmakeargs=(
                -DDEVICES="${USED_MODELS/;/}"
                -DUDEVDIR="${EPREFIX}$(get_udevdir)/rules.d"