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: 1501446684.166eccc1b0ee595065a4d69bf856699d1828cf1e.chutzpah@gentoo
1 commit: 166eccc1b0ee595065a4d69bf856699d1828cf1e
2 Author: Patrick McLean <chutzpah <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jul 30 20:31:09 2017 +0000
4 Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org>
5 CommitDate: Sun Jul 30 20:31:24 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=166eccc1
7
8 dev-util/google-perftools: Add old version 2.4 for sys-cluster/ceph
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.4.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 91785ccb2f9..10f07600b93 100644
18 --- a/dev-util/google-perftools/Manifest
19 +++ b/dev-util/google-perftools/Manifest
20 @@ -1,5 +1,6 @@
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.4.tar.gz 890402 SHA256 a73c2d066fb0d8e5a9102c0c17eadd8041f9b43b40b50faff54db01256772f6c SHA512 77198c150ee26579adc8f190be0c4ba90a9e3854b006c3aa9252b5863b1fce317fd690c6aa0ed202c81f0bbcfbe2d5f8a182263e77b7fb4fbc6b3e8bfffc9fb0 WHIRLPOOL 4b74a6074e1d0e0f6c5c3d8487a73045849237db93abcb5f4bb4aa7f40fcf9355d0cb1702335904ba6153ead62cb5a6df264d359bc1ce32fbb13fba4d2f2ddbc
24 DIST gperftools-2.5.tar.gz 895753 SHA256 0256331e67e8be12995b57183ec6affd071231f997bfcb5d5b050f86d4ad577e SHA512 974b86eadebe0437f4b7cf51de84afa315390cdcd2a88c8ccc8448b0b3e98c2241d89b4987b5fca1937102ae00a43802d9d06d7b11272e3dfeeaa23cf58ad68d WHIRLPOOL 4fc82910585107a2a879cae1b83afdcf98a39c3c7cbce3e8ba28b7b00ea1f638bb795213b7a6330bb311dd399bd7bcf34b3705cb8f75921ac1fd9ce3c0d1e8fd
25 DIST gperftools-2.6.1.tar.gz 907916 SHA256 3a51215bf0f0c1eedaef9cd377fe6b47dddafc3e5a66d292abb176e1ed36aab8 SHA512 49c1123ef8e297381e30fae6fc2391539ac5e1d3097b3f9f59c21853589152e248e92be0739bc50da6e5542f2638a9719b88f2d454221f463915d89e569776d2 WHIRLPOOL f93beba285703e199b27fd03e9c16732dcd9b625a16daad02c255392627dcf57b093a767bc645716b5f3395446c6181678c775b53f7d2dc151a398dad737a761
26 DIST gperftools-2.6.tar.gz 906841 SHA256 ff07a20a522fc729b899c542fedd3156fb1600973786542917675f7634b4905c SHA512 9fc32066304b76ad323e90ce2e7b437e7f1a5094b8d40a0e3df4d317fd57b4c048a19dacb7d148bd40557a080b0b82fe2da8ef32ae5511735ca7118e06b1ee38 WHIRLPOOL c91ffd09e9fd3202c17813d27370b144fa4140a6bd62b3e6c662557ac674c16575edcd50313d2cd342834a6ea5e799b96dca72ff600714486f9515bcc0c538c1
27
28 diff --git a/dev-util/google-perftools/google-perftools-2.4.ebuild b/dev-util/google-perftools/google-perftools-2.4.ebuild
29 new file mode 100644
30 index 00000000000..a2986988f31
31 --- /dev/null
32 +++ b/dev-util/google-perftools/google-perftools-2.4.ebuild
33 @@ -0,0 +1,85 @@
34 +# Copyright 1999-2017 Gentoo Foundation
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=6
38 +
39 +MY_P="gperftools-${PV}"
40 +inherit toolchain-funcs flag-o-matic vcs-snapshot autotools multilib-minimal
41 +
42 +DESCRIPTION="Fast, multi-threaded malloc() and nifty performance analysis tools"
43 +HOMEPAGE="https://github.com/gperftools/gperftools"
44 +SRC_URI="https://github.com/gperftools/gperftools/tarball/${MY_P} -> ${MY_P}.tar.gz"
45 +
46 +LICENSE="MIT"
47 +SLOT="0/4"
48 +# contains ASM code, with support for
49 +# freebsd x86/amd64
50 +# linux x86/amd64/ppc/ppc64/arm
51 +# OSX ppc/amd64
52 +# AIX ppc/ppc64
53 +KEYWORDS="-* ~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux"
54 +IUSE="largepages +debug minimal optimisememory test static-libs"
55 +
56 +DEPEND="sys-libs/libunwind"
57 +RDEPEND="${DEPEND}"
58 +
59 +S="${WORKDIR}/${MY_P}"
60 +
61 +HTML_DOCS="doc"
62 +
63 +pkg_setup() {
64 + # set up the make options in here so that we can actually make use
65 + # of them on both compile and install.
66 +
67 + # Avoid building the unit testing if we're not going to execute
68 + # tests; this trick here allows us to ignore the tests without
69 + # touching the build system (and thus without rebuilding
70 + # autotools). Keep commented as long as it's restricted.
71 + use test || \
72 + MAKEOPTS+=" noinst_PROGRAMS= "
73 +}
74 +
75 +src_prepare() {
76 + default
77 + eautoreconf
78 + multilib_copy_sources
79 +}
80 +
81 +multilib_src_configure() {
82 + use largepages && append-cppflags -DTCMALLOC_LARGE_PAGES
83 + use optimisememory && append-cppflags -DTCMALLOC_SMALL_BUT_SLOW
84 + append-flags -fno-strict-aliasing -fno-omit-frame-pointer
85 +
86 + econf \
87 + --htmldir=/usr/share/doc/${PF}/html \
88 + --docdir=/usr/share/doc/${PF} \
89 + --enable-shared \
90 + $(use_enable static-libs static) \
91 + $(use_enable debug debugalloc) \
92 + $(if [[ ${ABI} == x32 ]]; then printf "--enable-minimal\n" else use_enable minimal; fi)
93 +}
94 +
95 +src_test() {
96 + case "${LD_PRELOAD}" in
97 + *libsandbox*)
98 + ewarn "Unable to run tests when sandbox is enabled."
99 + ewarn "See https://bugs.gentoo.org/290249"
100 + return 0
101 + ;;
102 + esac
103 +
104 + multilib-minimal_src_test
105 +}
106 +
107 +src_install() {
108 + if ! use minimal && has x32 ${MULTILIB_ABIS}; then
109 + MULTILIB_WRAPPED_HEADERS=(
110 + /usr/include/gperftools/heap-checker.h
111 + /usr/include/gperftools/heap-profiler.h
112 + /usr/include/gperftools/stacktrace.h
113 + /usr/include/gperftools/profiler.h
114 + )
115 + fi
116 +
117 + multilib-minimal_src_install
118 +}