Gentoo Archives: gentoo-commits

From: Alfredo Tupone <tupone@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/pthreadpool/, dev-libs/pthreadpool/files/
Date: Tue, 10 May 2022 13:12:13
Message-Id: 1652188315.80b053ae3e84d3881aee67f40f34dc3d1a159d34.tupone@gentoo
1 commit: 80b053ae3e84d3881aee67f40f34dc3d1a159d34
2 Author: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
3 AuthorDate: Tue May 10 13:11:55 2022 +0000
4 Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
5 CommitDate: Tue May 10 13:11:55 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=80b053ae
7
8 dev-libs/pthreadpool: add to tree
9
10 Package-Manager: Portage-3.0.30, Repoman-3.0.3
11 Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>
12
13 dev-libs/pthreadpool/Manifest | 1 +
14 .../files/pthreadpool-2022.05.09-gentoo.patch | 27 +++++++++++++++++
15 dev-libs/pthreadpool/metadata.xml | 11 +++++++
16 dev-libs/pthreadpool/pthreadpool-2022.05.09.ebuild | 35 ++++++++++++++++++++++
17 4 files changed, 74 insertions(+)
18
19 diff --git a/dev-libs/pthreadpool/Manifest b/dev-libs/pthreadpool/Manifest
20 new file mode 100644
21 index 000000000000..4a13b9cccbfe
22 --- /dev/null
23 +++ b/dev-libs/pthreadpool/Manifest
24 @@ -0,0 +1 @@
25 +DIST pthreadpool-2022.05.09.tar.gz 55078 BLAKE2B c7ec88e9dd81c01444e511bd5ac845779f6839004130b9f306237ccb7a83fbe07851f4e780403bc97e448ba7e3f9eadb75904e4a6897503d953da8c9f1d5b0ab SHA512 e9ff2b502ee9faa78f9fe03e3e281e305ea6328bf5ebbcb0bf784786874ea3f3dd17b561a6ae98a677d56e813184d468fffab583fb45e06ec9be6ed7d7ea9f86
26
27 diff --git a/dev-libs/pthreadpool/files/pthreadpool-2022.05.09-gentoo.patch b/dev-libs/pthreadpool/files/pthreadpool-2022.05.09-gentoo.patch
28 new file mode 100644
29 index 000000000000..3c2edfa1ca8a
30 --- /dev/null
31 +++ b/dev-libs/pthreadpool/files/pthreadpool-2022.05.09-gentoo.patch
32 @@ -0,0 +1,27 @@
33 +--- a/CMakeLists.txt 2022-05-09 12:38:59.927116924 +0200
34 ++++ b/CMakeLists.txt 2022-05-09 12:39:39.141532680 +0200
35 +@@ -37,12 +38,6 @@
36 +
37 + # ---[ Download deps
38 + IF(NOT DEFINED FXDIV_SOURCE_DIR)
39 +- MESSAGE(STATUS "Downloading FXdiv to ${CMAKE_BINARY_DIR}/FXdiv-source (define FXDIV_SOURCE_DIR to avoid it)")
40 +- CONFIGURE_FILE(cmake/DownloadFXdiv.cmake "${CMAKE_BINARY_DIR}/FXdiv-download/CMakeLists.txt")
41 +- EXECUTE_PROCESS(COMMAND "${CMAKE_COMMAND}" -G "${CMAKE_GENERATOR}" .
42 +- WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/FXdiv-download")
43 +- EXECUTE_PROCESS(COMMAND "${CMAKE_COMMAND}" --build .
44 +- WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/FXdiv-download")
45 + SET(FXDIV_SOURCE_DIR "${CMAKE_BINARY_DIR}/FXdiv-source" CACHE STRING "FXdiv source directory")
46 + ENDIF()
47 +
48 +@@ -153,11 +143,7 @@
49 + IF(NOT TARGET fxdiv)
50 + SET(FXDIV_BUILD_TESTS OFF CACHE BOOL "")
51 + SET(FXDIV_BUILD_BENCHMARKS OFF CACHE BOOL "")
52 +- ADD_SUBDIRECTORY(
53 +- "${FXDIV_SOURCE_DIR}"
54 +- "${CMAKE_BINARY_DIR}/FXdiv")
55 + ENDIF()
56 +-TARGET_LINK_LIBRARIES(pthreadpool PRIVATE fxdiv)
57 +
58 + INSTALL(TARGETS pthreadpool
59 + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
60
61 diff --git a/dev-libs/pthreadpool/metadata.xml b/dev-libs/pthreadpool/metadata.xml
62 new file mode 100644
63 index 000000000000..15ba30ebfb01
64 --- /dev/null
65 +++ b/dev-libs/pthreadpool/metadata.xml
66 @@ -0,0 +1,11 @@
67 +<?xml version="1.0" encoding="UTF-8"?>
68 +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
69 +<pkgmetadata>
70 + <maintainer type="person">
71 + <email>tupone@g.o</email>
72 + <name>Tupone Alfredo</name>
73 + </maintainer>
74 + <upstream>
75 + <remote-id type="github">Maratyszcza/pthreadpool</remote-id>
76 + </upstream>
77 +</pkgmetadata>
78
79 diff --git a/dev-libs/pthreadpool/pthreadpool-2022.05.09.ebuild b/dev-libs/pthreadpool/pthreadpool-2022.05.09.ebuild
80 new file mode 100644
81 index 000000000000..b2331e976f63
82 --- /dev/null
83 +++ b/dev-libs/pthreadpool/pthreadpool-2022.05.09.ebuild
84 @@ -0,0 +1,35 @@
85 +# Copyright 2022 Gentoo Authors
86 +# Distributed under the terms of the GNU General Public License v2
87 +
88 +EAPI=8
89 +inherit cmake
90 +
91 +CommitId=1787867f6183f056420e532eec640cba25efafea
92 +DESCRIPTION="Portable and efficient thread pool implementation"
93 +HOMEPAGE="https://github.com/Maratyszcza/pthreadpool"
94 +SRC_URI="https://github.com/Maratyszcza/${PN}/archive/1787867.tar.gz
95 + -> ${P}.tar.gz"
96 +
97 +LICENSE="BSD-2"
98 +SLOT="0"
99 +KEYWORDS="~amd64"
100 +IUSE="test"
101 +
102 +DEPEND="dev-libs/FXdiv"
103 +RDEPEND="${DEPEND}"
104 +BDEPEND="test? ( dev-cpp/gtest )"
105 +RESTRICT="!test? ( test )"
106 +
107 +S="${WORKDIR}"/${PN}-${CommitId}
108 +
109 +PATCHES=(
110 + "${FILESDIR}"/${P}-gentoo.patch
111 +)
112 +
113 +src_configure() {
114 + local mycmakeargs=(
115 + -DPTHREADPOOL_BUILD_BENCHMARKS=OFF
116 + -DPTHREADPOOL_BUILD_TESTS=$(usex test ON OFF)
117 + )
118 + cmake_src_configure
119 +}