diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-12-10 21:21:18 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-12-10 21:21:18 +0000 |
commit | b118032096b3380de251b5de2466f5198fd2930a (patch) | |
tree | 992376912dd2522e0078f8350735c14bd0b77149 /dev-libs/qcoro5/qcoro5-0.7.0.ebuild | |
parent | 177349fb1459039cc30cb8e3936af4117d038c16 (diff) |
gentoo auto-resync : 10:12:2022 - 21:21:18
Diffstat (limited to 'dev-libs/qcoro5/qcoro5-0.7.0.ebuild')
-rw-r--r-- | dev-libs/qcoro5/qcoro5-0.7.0.ebuild | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/dev-libs/qcoro5/qcoro5-0.7.0.ebuild b/dev-libs/qcoro5/qcoro5-0.7.0.ebuild new file mode 100644 index 000000000000..907417b1c89f --- /dev/null +++ b/dev-libs/qcoro5/qcoro5-0.7.0.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +if [[ ${PV} == *9999* ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/danvratil/${PN/5/}" +else + SRC_URI="https://github.com/danvratil/${PN/5/}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + S="${WORKDIR}/${P/5/}" + KEYWORDS="~amd64 ~arm64 ~ppc64" +fi + +DESCRIPTION="C++ Coroutine Library for Qt5" +HOMEPAGE="https://qcoro.dvratil.cz/ https://github.com/danvratil/qcoro" + +LICENSE="MIT" +SLOT="0" +IUSE="dbus examples +network qml test websockets" + +RESTRICT="!test? ( test )" + +RDEPEND=" + dev-qt/qtcore:5 + dbus? ( dev-qt/qtdbus:5 ) + network? ( dev-qt/qtnetwork:5 ) + qml? ( dev-qt/qtdeclarative:5= ) + websockets? ( dev-qt/qtwebsockets:5 ) +" +DEPEND="${RDEPEND} + examples? ( + dev-qt/qtconcurrent:5 + dev-qt/qtwidgets:5 + ) + test? ( + dev-qt/qtconcurrent:5 + dev-qt/qttest:5 + ) +" + +src_configure() { + local mycmakeargs=( + -DUSE_QT_VERSION=5 + -DQCORO_BUILD_EXAMPLES=$(usex examples) + -DQCORO_WITH_QTDBUS=$(usex dbus) + -DQCORO_WITH_QTNETWORK=$(usex network) + -DQCORO_WITH_QML=$(usex qml) + -DQCORO_WITH_QTQUICK=$(usex qml) + -DBUILD_TESTING=$(usex test) + -DQCORO_WITH_QTWEBSOCKETS=$(usex websockets) + ) + cmake_src_configure +} + +src_install() { + if use examples; then + docinto examples + dodoc -r examples/* + fi + cmake_src_install +} |