commit:     5b88c3d7cb122ae546843a3f58139bd890d86bac
Author:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
AuthorDate: Mon Jan 13 11:41:15 2020 +0000
Commit:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Mon Jan 13 11:41:15 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5b88c3d7

sys-apps/roccat-tools: Ebuild adjustments

Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>

 sys-apps/roccat-tools/roccat-tools-5.9.0.ebuild | 15 ++++-----------
 1 file changed, 4 insertions(+), 11 deletions(-)

diff --git a/sys-apps/roccat-tools/roccat-tools-5.9.0.ebuild 
b/sys-apps/roccat-tools/roccat-tools-5.9.0.ebuild
index 131d6081045..3cc91e932e0 100644
--- a/sys-apps/roccat-tools/roccat-tools-5.9.0.ebuild
+++ b/sys-apps/roccat-tools/roccat-tools-5.9.0.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=7
 
-inherit readme.gentoo-r1 cmake flag-o-matic udev user xdg
+inherit readme.gentoo-r1 cmake flag-o-matic toolchain-funcs udev user xdg
 
 DESCRIPTION="Utility for advanced configuration of Roccat devices"
 
@@ -84,8 +84,9 @@ 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)"
+               # Fix build with pango-1.44 which depends on harfbuzz
+               local PKGCONF="$(tc-getPKG_CONFIG)"
+               append-cflags "$(${PKGCONF} --cflags harfbuzz)"
        fi
 
        mycmakeargs=(
@@ -118,10 +119,6 @@ src_install() {
        readme.gentoo_create_doc
 }
 
-pkg_preinst() {
-       xdg_pkg_preinst
-}
-
 pkg_postinst() {
        xdg_pkg_postinst
        readme.gentoo_print_elog
@@ -130,7 +127,3 @@ pkg_postinst() {
        ewarn "affected folder(s) in /var/lib/roccat"
        ewarn
 }
-
-pkg_postrm() {
-       xdg_pkg_postrm
-}

Reply via email to