dev-cpp/cppcoro: fix build issue

This commit is contained in:
chn authored and aieu committed 2022-07-31 21:12:18 +08:00
1 parent 067652287b
commit bf2b8cbef4
2 files changed
+14 -1

No files matched your search

+32
View File
@@ -0,0 +1,32 @@
# Copyright 2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake git-r3
DESCRIPTION="A library of C++ coroutine abstractions for the coroutines TS"
HOMEPAGE="https://github.com/Garcia6l20/cppcoro"
EGIT_REPO_URI="https://github.com/Garcia6l20/${PN}.git"
EGIT_COMMIT=e1d53e6
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
# currently, test is broken
IUSE="+shared"
RESTRICT="test"
PATCHES=(
"${FILESDIR}"/${PN}-ins-into-lib64.patch
"${FILESDIR}"/${PN}-include-utility.patch
)
src_configure() {
mycmakeargs=(
-DBUILD_TESTING=OFF
-DBUILD_SHARED_LIBS=$(usex shared ON OFF)
)
cmake_src_configure
}