diff options
Diffstat (limited to 'dev-libs/qcoro5')
-rw-r--r-- | dev-libs/qcoro5/Manifest | 3 | ||||
-rw-r--r-- | dev-libs/qcoro5/metadata.xml | 15 | ||||
-rw-r--r-- | dev-libs/qcoro5/qcoro5-0.6.0.ebuild | 60 |
3 files changed, 78 insertions, 0 deletions
diff --git a/dev-libs/qcoro5/Manifest b/dev-libs/qcoro5/Manifest new file mode 100644 index 000000000000..dbb6465d9793 --- /dev/null +++ b/dev-libs/qcoro5/Manifest @@ -0,0 +1,3 @@ +DIST qcoro5-0.6.0.tar.gz 122618 BLAKE2B 1fbd97d8b9897e9dc7408b2bf667064a3ec6326778c44472689e180af9eedc524236c5104b11a117fa8650f042a4ee3bd2b165e44385a829e8638c5e98d293a8 SHA512 e2e0219156a5ba693c935323c45c7414ce0f8d1773986ca63682812678e2b35146c76fa033ef791facfb57fa67fb96727df75ce6ecdae1e232be42f376973a8d +EBUILD qcoro5-0.6.0.ebuild 1207 BLAKE2B 749f94cbd38ba988957197862ecb48fc24b3832ee9b4c254e2ba53c4b7356c05d025b9ba8b1b45d12babaa363fa0af7a75edc8243f74f38465d31de1afff75f9 SHA512 8b6e8520eff40214c022bac75c2057d87de2fc47014593bc9023f041eb9b9f9b514811359c46417b0a6ca7ca44431d9d266926acab1a9774a7f60e6f774282c4 +MISC metadata.xml 483 BLAKE2B cd6ca8acffb789b49e66d28dae68abadbd50ccb08bd229840481f18b4dcdda586b52ac975a1b826b85672ee4a6759d8cbd285c9c7ed91a1b60e341f441ad0455 SHA512 2bed7eca8178dfd4c6b7c30417ddfde30250926aacb7718e1f81c35a29fff079ea2dbd4c2f3270a339ee5d3fb59ddde875dfb0dc41be9149cf31e88e0f00c249 diff --git a/dev-libs/qcoro5/metadata.xml b/dev-libs/qcoro5/metadata.xml new file mode 100644 index 000000000000..4c518fdf8940 --- /dev/null +++ b/dev-libs/qcoro5/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>kde@gentoo.org</email> + <name>Gentoo KDE Project</name> + </maintainer> + <upstream> + <bugs-to>https://bugs.kde.org/</bugs-to> + </upstream> + <use> + <flag name="network">Build <pkg>dev-qt/qtnetwork</pkg> support</flag> + <flag name="websockets">Build <pkg>dev-qt/qtwebsockets</pkg> support</flag> + </use> +</pkgmetadata> diff --git a/dev-libs/qcoro5/qcoro5-0.6.0.ebuild b/dev-libs/qcoro5/qcoro5-0.6.0.ebuild new file mode 100644 index 000000000000..4efdf36d5d58 --- /dev/null +++ b/dev-libs/qcoro5/qcoro5-0.6.0.ebuild @@ -0,0 +1,60 @@ +# 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" +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 test websockets" + +RESTRICT="!test? ( test )" + +RDEPEND=" + dev-qt/qtcore:5 + dbus? ( dev-qt/qtdbus:5 ) + network? ( dev-qt/qtnetwork: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) + -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 +} |