1 |
commit: 7675f15c13f314ac47777dcda7790f0e5ac37040 |
2 |
Author: Patrick McLean <chutzpah <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jul 29 23:24:18 2017 +0000 |
4 |
Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jul 29 23:24:18 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7675f15c |
7 |
|
8 |
dev-util/google-perftools: Version bump to 2.6, migrate to EAPI=6 |
9 |
|
10 |
Package-Manager: Portage-2.3.6, Repoman-2.3.3 |
11 |
|
12 |
dev-util/google-perftools/Manifest | 1 + |
13 |
.../google-perftools/google-perftools-2.6.ebuild | 85 ++++++++++++++++++++++ |
14 |
dev-util/google-perftools/metadata.xml | 6 +- |
15 |
3 files changed, 89 insertions(+), 3 deletions(-) |
16 |
|
17 |
diff --git a/dev-util/google-perftools/Manifest b/dev-util/google-perftools/Manifest |
18 |
index faf191f9f96..045a5732c0f 100644 |
19 |
--- a/dev-util/google-perftools/Manifest |
20 |
+++ b/dev-util/google-perftools/Manifest |
21 |
@@ -1,3 +1,4 @@ |
22 |
DIST google-perftools-1.8.3.tar.gz 1265062 SHA256 6ad744b34abb24312631740d9912f4667993b02e5f59b91246c31a2a911a9d59 SHA512 c6938391d182982ba6a87cd3d023e5fdf3501c42aecb951504e2fc97ce9e5bb2a6e6a577504ddbe89220b45ae47e58ce3e68f84aa45ff238d949dee4fc765b51 WHIRLPOOL 70ef15f25451a0f3eddb92e948e6d7d2e46a7ee8684636ddff312d5f0dda1429a7fe3f1f6756f0a979e4957b09c47513ddad9504415795e9e82ba51188672fdc |
23 |
DIST gperftools-2.0.tar.gz 1261243 SHA256 7de3dd91f018825b1e7d332af1edace15c6211f430186febede1835069861080 SHA512 61bf7a26974058912a4165cbc363351bc735599d36ab569dc7e84a75a690adbc17a4178512a57469fc7c17befaad2a271ef4ea5c29a36b664153938939269926 WHIRLPOOL 4f49a7da976040cacdecb8e18294b09fbfe276422ba35058476a14a3c1df072f8748d70f738adafa03a3a445701ed32b6232f13962d8ec8c5a968652414797a6 |
24 |
DIST gperftools-2.5.tar.gz 895753 SHA256 0256331e67e8be12995b57183ec6affd071231f997bfcb5d5b050f86d4ad577e SHA512 974b86eadebe0437f4b7cf51de84afa315390cdcd2a88c8ccc8448b0b3e98c2241d89b4987b5fca1937102ae00a43802d9d06d7b11272e3dfeeaa23cf58ad68d WHIRLPOOL 4fc82910585107a2a879cae1b83afdcf98a39c3c7cbce3e8ba28b7b00ea1f638bb795213b7a6330bb311dd399bd7bcf34b3705cb8f75921ac1fd9ce3c0d1e8fd |
25 |
+DIST gperftools-2.6.tar.gz 906841 SHA256 ff07a20a522fc729b899c542fedd3156fb1600973786542917675f7634b4905c SHA512 9fc32066304b76ad323e90ce2e7b437e7f1a5094b8d40a0e3df4d317fd57b4c048a19dacb7d148bd40557a080b0b82fe2da8ef32ae5511735ca7118e06b1ee38 WHIRLPOOL c91ffd09e9fd3202c17813d27370b144fa4140a6bd62b3e6c662557ac674c16575edcd50313d2cd342834a6ea5e799b96dca72ff600714486f9515bcc0c538c1 |
26 |
|
27 |
diff --git a/dev-util/google-perftools/google-perftools-2.6.ebuild b/dev-util/google-perftools/google-perftools-2.6.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..48a3be80a5e |
30 |
--- /dev/null |
31 |
+++ b/dev-util/google-perftools/google-perftools-2.6.ebuild |
32 |
@@ -0,0 +1,85 @@ |
33 |
+# Copyright 1999-2017 Gentoo Foundation |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=6 |
37 |
+ |
38 |
+MY_P="gperftools-${PV}" |
39 |
+inherit toolchain-funcs flag-o-matic vcs-snapshot autotools multilib-minimal |
40 |
+ |
41 |
+DESCRIPTION="Fast, multi-threaded malloc() and nifty performance analysis tools" |
42 |
+HOMEPAGE="https://github.com/gperftools/gperftools" |
43 |
+SRC_URI="https://github.com/gperftools/gperftools/tarball/${MY_P} -> ${MY_P}.tar.gz" |
44 |
+ |
45 |
+LICENSE="MIT" |
46 |
+SLOT="0/4" |
47 |
+# contains ASM code, with support for |
48 |
+# freebsd x86/amd64 |
49 |
+# linux x86/amd64/ppc/ppc64/arm |
50 |
+# OSX ppc/amd64 |
51 |
+# AIX ppc/ppc64 |
52 |
+KEYWORDS="-* ~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux" |
53 |
+IUSE="largepages +debug minimal optimisememory test static-libs" |
54 |
+ |
55 |
+DEPEND="sys-libs/libunwind" |
56 |
+RDEPEND="${DEPEND}" |
57 |
+ |
58 |
+S="${WORKDIR}/${MY_P}" |
59 |
+ |
60 |
+HTML_DOCS="docs" |
61 |
+ |
62 |
+pkg_setup() { |
63 |
+ # set up the make options in here so that we can actually make use |
64 |
+ # of them on both compile and install. |
65 |
+ |
66 |
+ # Avoid building the unit testing if we're not going to execute |
67 |
+ # tests; this trick here allows us to ignore the tests without |
68 |
+ # touching the build system (and thus without rebuilding |
69 |
+ # autotools). Keep commented as long as it's restricted. |
70 |
+ use test || \ |
71 |
+ MAKEOPTS+=" noinst_PROGRAMS= " |
72 |
+} |
73 |
+ |
74 |
+src_prepare() { |
75 |
+ default |
76 |
+ eautoreconf |
77 |
+ multilib_copy_sources |
78 |
+} |
79 |
+ |
80 |
+multilib_src_configure() { |
81 |
+ use largepages && append-cppflags -DTCMALLOC_LARGE_PAGES |
82 |
+ use optimisememory && append-cppflags -DTCMALLOC_SMALL_BUT_SLOW |
83 |
+ append-flags -fno-strict-aliasing -fno-omit-frame-pointer |
84 |
+ |
85 |
+ econf \ |
86 |
+ --htmldir=/usr/share/doc/${PF}/html \ |
87 |
+ --docdir=/usr/share/doc/${PF} \ |
88 |
+ --enable-shared \ |
89 |
+ $(use_enable static-libs static) \ |
90 |
+ $(use_enable debug debugalloc) \ |
91 |
+ $(if [[ ${ABI} == x32 ]]; then printf "--enable-minimal\n" else use_enable minimal; fi) |
92 |
+} |
93 |
+ |
94 |
+src_test() { |
95 |
+ case "${LD_PRELOAD}" in |
96 |
+ *libsandbox*) |
97 |
+ ewarn "Unable to run tests when sandbox is enabled." |
98 |
+ ewarn "See https://bugs.gentoo.org/290249" |
99 |
+ return 0 |
100 |
+ ;; |
101 |
+ esac |
102 |
+ |
103 |
+ multilib-minimal_src_test |
104 |
+} |
105 |
+ |
106 |
+src_install() { |
107 |
+ if ! use minimal && has x32 ${MULTILIB_ABIS}; then |
108 |
+ MULTILIB_WRAPPED_HEADERS=( |
109 |
+ /usr/include/gperftools/heap-checker.h |
110 |
+ /usr/include/gperftools/heap-profiler.h |
111 |
+ /usr/include/gperftools/stacktrace.h |
112 |
+ /usr/include/gperftools/profiler.h |
113 |
+ ) |
114 |
+ fi |
115 |
+ |
116 |
+ multilib-minimal_src_install |
117 |
+} |
118 |
|
119 |
diff --git a/dev-util/google-perftools/metadata.xml b/dev-util/google-perftools/metadata.xml |
120 |
index f2cf8d8c5f0..e6791a60364 100644 |
121 |
--- a/dev-util/google-perftools/metadata.xml |
122 |
+++ b/dev-util/google-perftools/metadata.xml |
123 |
@@ -16,9 +16,9 @@ |
124 |
Only build the tcmalloc_minimal library, ignoring the heap |
125 |
checker and the profilers. |
126 |
</flag> |
127 |
- <flag name="optimisememory"> |
128 |
- To build libtcmalloc with smaller internal caches. |
129 |
- </flag> |
130 |
+ <flag name="optimisememory"> |
131 |
+ To build libtcmalloc with smaller internal caches. |
132 |
+ </flag> |
133 |
</use> |
134 |
<upstream> |
135 |
<remote-id type="github">gperftools/gperftools</remote-id> |