mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-22 23:07:10 -08:00
dev-libs/pthreadpool: add 2023.08.29
Signed-off-by: Sv. Lockal <lockalsash@gmail.com> Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
This commit is contained in:
@@ -1 +1,2 @@
|
||||
DIST pthreadpool-2022.05.09.tar.gz 55078 BLAKE2B c7ec88e9dd81c01444e511bd5ac845779f6839004130b9f306237ccb7a83fbe07851f4e780403bc97e448ba7e3f9eadb75904e4a6897503d953da8c9f1d5b0ab SHA512 e9ff2b502ee9faa78f9fe03e3e281e305ea6328bf5ebbcb0bf784786874ea3f3dd17b561a6ae98a677d56e813184d468fffab583fb45e06ec9be6ed7d7ea9f86
|
||||
DIST pthreadpool-2023.08.29.tar.gz 59634 BLAKE2B 9bcf641e65da7036959e21958511751005f4cec270e82a0bfe1fe49d1d98f79e9a981bf3e7e4fa7399bdf5127e116833855214a0ac2816ddfd7b919f0c7ad8d0 SHA512 764d81219f2bf1f056983b5c2576f377aeef37f0f2282e74f81bfe1eac5353e175603f80a6647c96165b24ebdcb7bc2189a376e8577ce4319d82679c33750451
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
# Copyright 2022-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
inherit cmake
|
||||
|
||||
CommitId=4fe0e1e183925bf8cfa6aae24237e724a96479b8
|
||||
DESCRIPTION="Portable and efficient thread pool implementation"
|
||||
HOMEPAGE="https://github.com/Maratyszcza/pthreadpool"
|
||||
SRC_URI="https://github.com/Maratyszcza/${PN}/archive/${CommitId}.tar.gz
|
||||
-> ${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="test"
|
||||
|
||||
DEPEND="dev-libs/FXdiv"
|
||||
RDEPEND="${DEPEND}"
|
||||
BDEPEND="test? ( dev-cpp/gtest )"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
S="${WORKDIR}"/${PN}-${CommitId}
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-2022.05.09-gentoo.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
cmake_src_prepare
|
||||
|
||||
# >=dev-cpp/gtest-1.13.0 requires C++14 standard or later
|
||||
sed -i -e 's/CXX_STANDARD 11/CXX_STANDARD 14/g' \
|
||||
CMakeLists.txt || die "sed failed"
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DPTHREADPOOL_BUILD_BENCHMARKS=OFF
|
||||
-DPTHREADPOOL_BUILD_TESTS=$(usex test ON OFF)
|
||||
)
|
||||
cmake_src_configure
|
||||
}
|
||||
Reference in New Issue
Block a user