diff options
Diffstat (limited to 'dev-libs/qcoro5')
-rw-r--r-- | dev-libs/qcoro5/Manifest | 2 | ||||
-rw-r--r-- | dev-libs/qcoro5/qcoro5-0.8.0.ebuild | 64 |
2 files changed, 66 insertions, 0 deletions
diff --git a/dev-libs/qcoro5/Manifest b/dev-libs/qcoro5/Manifest index d4375d7e7a6a..ed9ec7fad95b 100644 --- a/dev-libs/qcoro5/Manifest +++ b/dev-libs/qcoro5/Manifest @@ -1,3 +1,5 @@ DIST qcoro5-0.7.0.tar.gz 135419 BLAKE2B 8f593e76e960349090cea649848c6b3d422125f1bd292ec79026d0cdab7f7e7de77ec409d442c624efe2683a24dd7715ba108f400e154813b6b3da3eb0b8fc09 SHA512 cd49f957d30b63ee70080425c1ed8ffe05c09f7d5e3c6f043c2a9e66eee9a537c9bd6f12ea54fa9fa53871c5d6e5c4502e2c4a10c30eb3bf017505ba875838ba +DIST qcoro5-0.8.0.tar.gz 139254 BLAKE2B 979e1744951742c7a3f5a70d291e0e63d6be1d73794c9af32ef48b8e440c1919ae487cf07d1896cc2a8e7bdf8a51cac14f81a6e17689b57a93cfb71db3500282 SHA512 bdcf6f9113e5dde57fb56abdeb5106dbba8892ecc6c11d9f4b8b653570ffb0e25f63ee0fe87cd9008e02b99b76f959b9af00b2875420517b13295d6b108db2cc EBUILD qcoro5-0.7.0.ebuild 1364 BLAKE2B e5a40a2aeedbd93580888a25c8f5c132a16c607ea3cfde1c5fa0370aba1122d3ea33e89edfb7d21bdb080d09b3dfb8ac38acb3e96c507944d21c4a703f8e118a SHA512 360d05819d51c5c18880196f844927b631de50b1f3dbfd7e0d8cf06fe56609c51366dd8cd24d6f9de07a0fd28ab0f610d4cab2afa5f438f4a80aa3cdbc738e70 +EBUILD qcoro5-0.8.0.ebuild 1364 BLAKE2B e88d6bd77b09278ed29ef744a55cc1fa46c958dab30c4f8527cbcbeb3bbe49e5a182e50fc08aa5c9296e25f88cf3f23ca73a32879b5092e34b8505a194be3218 SHA512 f9b7cfa77e972869ed61c6489e7fa756af339db756a39ad60e18f5c1e0154aef10fd7c5d0e6fb512595a1552ffdb961f4aa2b97f0de15308f7d5dd25e0cc280a MISC metadata.xml 647 BLAKE2B 99bb798a9950348fa169dcd61f759a2e5f179a7ffe70037be3657e0d01174d75694878355baa40256293380511decd804e1a0ee5eaa136d7279b99c78be64269 SHA512 9936b38eba4cdd71221bd5eb370bf782d9aee4665d6be6784fe0ece893e0deaaff8aff978fce308264d956e813185dc16b4bd0b3a7b36ebdd674f5782e166585 diff --git a/dev-libs/qcoro5/qcoro5-0.8.0.ebuild b/dev-libs/qcoro5/qcoro5-0.8.0.ebuild new file mode 100644 index 000000000000..b7f45410f814 --- /dev/null +++ b/dev-libs/qcoro5/qcoro5-0.8.0.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2023 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 +} |