1 |
commit: 208a3d824ffa49a276a684bb812446d86902e185 |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Sep 5 08:42:14 2016 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Sep 5 09:19:02 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=208a3d82 |
7 |
|
8 |
dev-cpp/threadpool: Modernize to EAPI=6 |
9 |
|
10 |
Package-Manager: portage-2.3.0 |
11 |
|
12 |
.../files/threadpool-0.2.5-memleak.patch | 4 +-- |
13 |
dev-cpp/threadpool/threadpool-0.2.5-r1.ebuild | 40 ++++++++++++++++++++++ |
14 |
2 files changed, 42 insertions(+), 2 deletions(-) |
15 |
|
16 |
diff --git a/dev-cpp/threadpool/files/threadpool-0.2.5-memleak.patch b/dev-cpp/threadpool/files/threadpool-0.2.5-memleak.patch |
17 |
index 886ce58..26d89d1 100644 |
18 |
--- a/dev-cpp/threadpool/files/threadpool-0.2.5-memleak.patch |
19 |
+++ b/dev-cpp/threadpool/files/threadpool-0.2.5-memleak.patch |
20 |
@@ -10,8 +10,8 @@ memory. |
21 |
|
22 |
Signed-off-by: Robin H. Johnson <robbat2@g.o> |
23 |
|
24 |
---- threadpool-0_2_5-src/threadpool/boost/threadpool/detail/pool_core.hpp 2012-09-27 22:33:21.098626892 -0700 |
25 |
-+++ threadpool-0_2_5-src/threadpool/boost/threadpool/detail/pool_core.hpp 2012-09-27 22:51:12.291997839 -0700 |
26 |
+--- threadpool/boost/threadpool/detail/pool_core.hpp |
27 |
++++ threadpool/boost/threadpool/detail/pool_core.hpp |
28 |
@@ -150,6 +150,7 @@ |
29 |
/// Destructor. |
30 |
~pool_core() |
31 |
|
32 |
diff --git a/dev-cpp/threadpool/threadpool-0.2.5-r1.ebuild b/dev-cpp/threadpool/threadpool-0.2.5-r1.ebuild |
33 |
new file mode 100644 |
34 |
index 00000000..3b125a5 |
35 |
--- /dev/null |
36 |
+++ b/dev-cpp/threadpool/threadpool-0.2.5-r1.ebuild |
37 |
@@ -0,0 +1,40 @@ |
38 |
+# Copyright 1999-2016 Gentoo Foundation |
39 |
+# Distributed under the terms of the GNU General Public License v2 |
40 |
+# $Id$ |
41 |
+ |
42 |
+EAPI=6 |
43 |
+ |
44 |
+DESCRIPTION="A cross-platform C++ thread pool library (built on top of Boost)" |
45 |
+HOMEPAGE="http://threadpool.sourceforge.net/" |
46 |
+MY_PV=${PV//./_} |
47 |
+MY_P=${PN}-${MY_PV} |
48 |
+SRC_URI_BASE="mirror://sourceforge/threadpool/threadpool/${PV}%20%28Stable%29" |
49 |
+SRC_URI="${SRC_URI_BASE}/${MY_P}-src.zip |
50 |
+ doc? ( ${SRC_URI_BASE}/${MY_P}-doc.zip )" |
51 |
+ |
52 |
+LICENSE="Boost-1.0" |
53 |
+SLOT="0" |
54 |
+KEYWORDS="~amd64 ~x86" |
55 |
+IUSE="doc" |
56 |
+ |
57 |
+DEPEND="" |
58 |
+RDEPEND="dev-libs/boost" |
59 |
+ |
60 |
+S="${WORKDIR}/${MY_P}-src/${PN}" |
61 |
+ |
62 |
+DOCS=( README TODO CHANGE_LOG ) |
63 |
+PATCHES=( "${FILESDIR}/${P}-memleak.patch" ) |
64 |
+ |
65 |
+src_compile() { |
66 |
+ # Do nothing |
67 |
+ # The makefile just builds the documentation again |
68 |
+ # Not even any install targets |
69 |
+ return |
70 |
+} |
71 |
+ |
72 |
+src_install() { |
73 |
+ doheader -r boost |
74 |
+ |
75 |
+ use doc && HTML_DOCS+=( "${WORKDIR}"/"${MY_P}"-doc/. ) |
76 |
+ einstalldocs |
77 |
+} |