Gentoo Archives: gentoo-commits

From: Patrick McLean <chutzpah@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/google-perftools/
Date: Sun, 30 Jul 2017 20:31:36
Message-Id: 1501446683.32cef272b927994752f81591f06fe361606ed660.chutzpah@gentoo
1 commit: 32cef272b927994752f81591f06fe361606ed660
2 Author: Patrick McLean <chutzpah <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jul 30 20:27:42 2017 +0000
4 Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org>
5 CommitDate: Sun Jul 30 20:31:23 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=32cef272
7
8 dev-util/google-perftools: Version bump to 2.6.1
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.1.ebuild | 85 ++++++++++++++++++++++
14 2 files changed, 86 insertions(+)
15
16 diff --git a/dev-util/google-perftools/Manifest b/dev-util/google-perftools/Manifest
17 index 045a5732c0f..91785ccb2f9 100644
18 --- a/dev-util/google-perftools/Manifest
19 +++ b/dev-util/google-perftools/Manifest
20 @@ -1,4 +1,5 @@
21 DIST google-perftools-1.8.3.tar.gz 1265062 SHA256 6ad744b34abb24312631740d9912f4667993b02e5f59b91246c31a2a911a9d59 SHA512 c6938391d182982ba6a87cd3d023e5fdf3501c42aecb951504e2fc97ce9e5bb2a6e6a577504ddbe89220b45ae47e58ce3e68f84aa45ff238d949dee4fc765b51 WHIRLPOOL 70ef15f25451a0f3eddb92e948e6d7d2e46a7ee8684636ddff312d5f0dda1429a7fe3f1f6756f0a979e4957b09c47513ddad9504415795e9e82ba51188672fdc
22 DIST gperftools-2.0.tar.gz 1261243 SHA256 7de3dd91f018825b1e7d332af1edace15c6211f430186febede1835069861080 SHA512 61bf7a26974058912a4165cbc363351bc735599d36ab569dc7e84a75a690adbc17a4178512a57469fc7c17befaad2a271ef4ea5c29a36b664153938939269926 WHIRLPOOL 4f49a7da976040cacdecb8e18294b09fbfe276422ba35058476a14a3c1df072f8748d70f738adafa03a3a445701ed32b6232f13962d8ec8c5a968652414797a6
23 DIST gperftools-2.5.tar.gz 895753 SHA256 0256331e67e8be12995b57183ec6affd071231f997bfcb5d5b050f86d4ad577e SHA512 974b86eadebe0437f4b7cf51de84afa315390cdcd2a88c8ccc8448b0b3e98c2241d89b4987b5fca1937102ae00a43802d9d06d7b11272e3dfeeaa23cf58ad68d WHIRLPOOL 4fc82910585107a2a879cae1b83afdcf98a39c3c7cbce3e8ba28b7b00ea1f638bb795213b7a6330bb311dd399bd7bcf34b3705cb8f75921ac1fd9ce3c0d1e8fd
24 +DIST gperftools-2.6.1.tar.gz 907916 SHA256 3a51215bf0f0c1eedaef9cd377fe6b47dddafc3e5a66d292abb176e1ed36aab8 SHA512 49c1123ef8e297381e30fae6fc2391539ac5e1d3097b3f9f59c21853589152e248e92be0739bc50da6e5542f2638a9719b88f2d454221f463915d89e569776d2 WHIRLPOOL f93beba285703e199b27fd03e9c16732dcd9b625a16daad02c255392627dcf57b093a767bc645716b5f3395446c6181678c775b53f7d2dc151a398dad737a761
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.1.ebuild b/dev-util/google-perftools/google-perftools-2.6.1.ebuild
28 new file mode 100644
29 index 00000000000..48a3be80a5e
30 --- /dev/null
31 +++ b/dev-util/google-perftools/google-perftools-2.6.1.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 +}