dev-cpp/cppcoro: add new package
This commit is contained in:
1 parent
e7c901bf9d
commit
351df14652
3 files changed
+68
No files matched your search
@@ -0,0 +1,31 @@
|
||||
# Copyright 1999-2021 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
|
||||
)
|
||||
|
||||
src_configure() {
|
||||
mycmakeargs=(
|
||||
-DBUILD_TESTING=OFF
|
||||
-DBUILD_SHARED_LIBS=$(usex shared ON OFF)
|
||||
)
|
||||
cmake_src_configure
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 3ce73ea..a91ba47 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -25,7 +25,7 @@ configure_file(cmake/cppcoroConfig.cmake
|
||||
"${PROJECT_BINARY_DIR}/cppcoro/cppcoroConfig.cmake"
|
||||
COPYONLY)
|
||||
|
||||
-set(config_package_location lib/cmake/cppcoro)
|
||||
+set(config_package_location lib64/cmake/cppcoro)
|
||||
install(DIRECTORY include/cppcoro
|
||||
DESTINATION include
|
||||
COMPONENT Devel)
|
||||
diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt
|
||||
index 5af57d0..b24c160 100644
|
||||
--- a/lib/CMakeLists.txt
|
||||
+++ b/lib/CMakeLists.txt
|
||||
@@ -221,6 +221,6 @@ find_package(Coroutines COMPONENTS Experimental Final REQUIRED)
|
||||
target_link_libraries(cppcoro PUBLIC std::coroutines ${libraries})
|
||||
|
||||
install(TARGETS cppcoro EXPORT cppcoroTargets
|
||||
- LIBRARY DESTINATION lib
|
||||
- ARCHIVE DESTINATION lib
|
||||
+ LIBRARY DESTINATION lib64
|
||||
+ ARCHIVE DESTINATION lib64
|
||||
RUNTIME DESTINATION bin)
|
||||
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>chn@chn.moe</email>
|
||||
<name>Haonan Chen</name>
|
||||
</maintainer>
|
||||
<use>
|
||||
<flag name="shared">Build shared library instead of static library.</flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
||||
Reference in new issue
Block a user