dev-libs/qcoro: New package
Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Alarig Le Lay <alarig@swordarmor.fr
This commit is contained in:
parent
9929d8782a
commit
4a6cf50a83
1
dev-libs/qcoro/Manifest
Normal file
1
dev-libs/qcoro/Manifest
Normal file
|
@ -0,0 +1 @@
|
|||
DIST qcoro-0.4.0.tar.gz 65268 BLAKE2B 1d1e0e0e0b22d5aad40dfe14f779732033814bca678ca621be8519c2e6b758a80e2e41e022e378da63459093baebf821b702722286580f922c46cd4e106fa180 SHA512 bca0b0a02dabeabbf55fc1edc48d7d725ce8070a9f26317034f439958595d9a15c683d0bccaa4d1483d64d0a7737e84a0f7597bc3ad189b5a51f6b02d320cccf
|
13
dev-libs/qcoro/metadata.xml
Normal file
13
dev-libs/qcoro/metadata.xml
Normal file
|
@ -0,0 +1,13 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>alarig@swordarmor.fr</email>
|
||||
<name>Alarig Le Lay</name>
|
||||
</maintainer>
|
||||
<use>
|
||||
<flag name="asan">Build Address Sanitizer runtime</flag>
|
||||
<flag name="network">Enable network support</flag>
|
||||
<flag name="shared">Build shared libraries</flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
48
dev-libs/qcoro/qcoro-0.4.0.ebuild
Normal file
48
dev-libs/qcoro/qcoro-0.4.0.ebuild
Normal file
|
@ -0,0 +1,48 @@
|
|||
# Copyright 2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
inherit cmake
|
||||
|
||||
DESCRIPTION="C++ Coroutine library for Qt5 and Qt6"
|
||||
HOMEPAGE="https://qcoro.dvratil.cz/"
|
||||
MY_GITHUB_AUTHOR="danvratil"
|
||||
SRC_URI="https://github.com/${MY_GITHUB_AUTHOR}/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="asan dbus +examples +network +shared test"
|
||||
RESTRICT="test"
|
||||
|
||||
DEPEND="
|
||||
dbus? ( dev-qt/qtdbus )
|
||||
network? ( dev-qt/qtnetwork )
|
||||
dev-qt/qtcore:5
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
BDEPEND=""
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DQCORO_BUILD_EXAMPLES=$(usex examples)
|
||||
-DQCORO_ENABLE_ASAN=$(usex asan)
|
||||
-DBUILD_SHARED_LIBS=$(usex shared)
|
||||
-DBUILD_TESTING=$(usex test)
|
||||
-DUSE_QT_VERSION=5
|
||||
-DQCORO_WITH_QTDBUS=$(usex dbus)
|
||||
-DQCORO_WITH_QTNETWORK=$(usex network)
|
||||
)
|
||||
|
||||
cmake_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
if use examples; then
|
||||
dodoc -r examples
|
||||
dodoc -r "${BUILD_DIR}"/examples
|
||||
fi
|
||||
dodoc README.md
|
||||
|
||||
cmake_src_install
|
||||
}
|
Loading…
Reference in a new issue