net-im/qtox: switch live ebuild to cmake
authorZetok Zalbavar <zetok@openmailbox.org>
Sun, 29 Jan 2017 00:37:59 +0000 (00:37 +0000)
committerGöktürk Yüksek <gokturk@gentoo.org>
Wed, 8 Feb 2017 20:26:06 +0000 (15:26 -0500)
Package-Manager: portage-2.3.3

net-im/qtox/qtox-9999.ebuild

index e45d9c99c207a57ade5b5a1b519ef0cc68a57a8a..e763e12dceccca656c0c5d0ced95982c1368efbc 100644 (file)
@@ -1,10 +1,10 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
 EAPI=6
 
-inherit eutils qmake-utils git-r3
+inherit cmake-utils eutils git-r3
 
 DESCRIPTION="Most feature-rich GUI for net-libs/tox using Qt5"
 HOMEPAGE="https://github.com/qTox/qTox"
@@ -58,10 +58,10 @@ pkg_pretend() {
 }
 
 src_configure() {
-       use gtk || local NO_GTK_SUPPORT="ENABLE_SYSTRAY_STATUSNOTIFIER_BACKEND=NO ENABLE_SYSTRAY_GTK_BACKEND=NO"
-       use X || local NO_X_SUPPORT="DISABLE_PLATFORM_EXT=YES"
-       eqmake5 \
-                       PREFIX="${D}/usr" \
-                       ${NO_GTK_SUPPORT} \
-                       ${NO_X_SUPPORT}
+       local mycmakeargs=(
+               -DENABLE_STATUSNOTIFIER=$(usex gtk True False)
+               -DENABLE_GTK_SYSTRAY=$(usex gtk True False)
+       )
+
+       cmake-utils_src_configure
 }