From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 144B2158013 for ; Sat, 2 Dec 2023 19:25:07 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AA0002BC018; Sat, 2 Dec 2023 19:25:05 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 8D34F2BC017 for ; Sat, 2 Dec 2023 19:25:05 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id AC346335DCD for ; Sat, 2 Dec 2023 19:25:04 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0EFC31454 for ; Sat, 2 Dec 2023 19:25:03 +0000 (UTC) From: "Andreas Sturmlechner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Sturmlechner" Message-ID: <1701535176.fa20441bd6e38dec2ca35fcca36ea30864802dfa.asturm@gentoo> Subject: [gentoo-commits] proj/kde:master commit in: dev-libs/qcoro/ X-VCS-Repository: proj/kde X-VCS-Files: dev-libs/qcoro/metadata.xml dev-libs/qcoro/qcoro-9999.ebuild X-VCS-Directories: dev-libs/qcoro/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: fa20441bd6e38dec2ca35fcca36ea30864802dfa X-VCS-Branch: master Date: Sat, 2 Dec 2023 19:25:03 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 4a39f21f-2135-4460-900d-7b62121591bc X-Archives-Hash: d8a17248f300e8404277f6c87de89620 commit: fa20441bd6e38dec2ca35fcca36ea30864802dfa Author: Andreas Sturmlechner gentoo org> AuthorDate: Sat Dec 2 16:36:32 2023 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Sat Dec 2 16:39:36 2023 +0000 URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=fa20441b dev-libs/qcoro: new package, add 9999 Bug: https://bugs.gentoo.org/918994 Signed-off-by: Andreas Sturmlechner gentoo.org> dev-libs/qcoro/metadata.xml | 18 +++++++++++++ dev-libs/qcoro/qcoro-9999.ebuild | 58 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 76 insertions(+) diff --git a/dev-libs/qcoro/metadata.xml b/dev-libs/qcoro/metadata.xml new file mode 100644 index 0000000000..726702f081 --- /dev/null +++ b/dev-libs/qcoro/metadata.xml @@ -0,0 +1,18 @@ + + + + + kde@gentoo.org + Gentoo KDE Project + + + https://github.com/danvratil/qcoro/issues + danvratil/qcoro + + + Build dev-qt/qtbase network support + Enable QML/QtQuick support via dev-qt/qtdeclarative + Install coroutine-friendly versions of dev-qt/qtbase test macros + Build dev-qt/qtwebsockets support + + diff --git a/dev-libs/qcoro/qcoro-9999.ebuild b/dev-libs/qcoro/qcoro-9999.ebuild new file mode 100644 index 0000000000..787c61337a --- /dev/null +++ b/dev-libs/qcoro/qcoro-9999.ebuild @@ -0,0 +1,58 @@ +# 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}" +else + SRC_URI="https://github.com/danvratil/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~x86" +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 testlib websockets" + +REQUIRED_USE="examples? ( network ) test? ( testlib )" +RESTRICT="!test? ( test )" + +RDEPEND=" + dev-qt/qtbase:6[dbus?,network?] + qml? ( dev-qt/qtdeclarative:6= ) + testlib? ( dev-qt/qtbase:6[test] ) + websockets? ( dev-qt/qtwebsockets:6 ) +" +DEPEND="${RDEPEND} + examples? ( dev-qt/qtbase:6[concurrent,network,widgets] ) + test? ( dev-qt/qtbase:6[concurrent,test] ) +" + +src_configure() { + local mycmakeargs=( + -DUSE_QT_VERSION=6 + -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) + -DQCORO_WITH_QTTEST=$(usex testlib) + -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 +}