diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-05-12 16:42:50 +0300 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-05-12 16:42:50 +0300 |
commit | 752d6256e5204b958b0ef7905675a940b5e9172f (patch) | |
tree | 330d16e6362a49cbed8875a777fe641a43376cd3 /dev-libs/pthreadpool/pthreadpool-2022.05.09.ebuild | |
parent | 0c100b7dd2b30e75b799d806df4ef899fd98e1ea (diff) |
gentoo resync : 12.05.2022
Diffstat (limited to 'dev-libs/pthreadpool/pthreadpool-2022.05.09.ebuild')
-rw-r--r-- | dev-libs/pthreadpool/pthreadpool-2022.05.09.ebuild | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/dev-libs/pthreadpool/pthreadpool-2022.05.09.ebuild b/dev-libs/pthreadpool/pthreadpool-2022.05.09.ebuild new file mode 100644 index 000000000000..b2331e976f63 --- /dev/null +++ b/dev-libs/pthreadpool/pthreadpool-2022.05.09.ebuild @@ -0,0 +1,35 @@ +# Copyright 2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +inherit cmake + +CommitId=1787867f6183f056420e532eec640cba25efafea +DESCRIPTION="Portable and efficient thread pool implementation" +HOMEPAGE="https://github.com/Maratyszcza/pthreadpool" +SRC_URI="https://github.com/Maratyszcza/${PN}/archive/1787867.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}"/${P}-gentoo.patch +) + +src_configure() { + local mycmakeargs=( + -DPTHREADPOOL_BUILD_BENCHMARKS=OFF + -DPTHREADPOOL_BUILD_TESTS=$(usex test ON OFF) + ) + cmake_src_configure +} |