# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 inherit cmake DESCRIPTION="Coroutines for Qt5 and Qt6" HOMEPAGE="https://github.com/danvratil/qcoro" if [[ "${PV}" == *9999 ]] ; then inherit git-r3 EGIT_REPO_URI="https://github.com/danvratil/qcoro.git" else SRC_URI="https://github.com/danvratil/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" KEYWORDS="~amd64 ~x86" fi LICENSE="" SLOT="0" IUSE="dbus" RDEPEND=" dev-qt/qtcore:5 dev-qt/qtnetwork:5 dbus? ( dev-qt/qtdbus:5 ) " DEPEND="${RDEPEND}" src_configure() { local mycmakeargs=( -DQCORO_BUILD_EXAMPLES="Off" -DQCORO_WITH_QTDBUS="$(usex dbus)" -DUSE_QT_VERSION=5 ) cmake_src_configure }