Gentoo Archives: gentoo-commits

From: Zac Medico <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/google-perftools/
Date: Fri, 01 Dec 2017 05:08:39
Message-Id: 1512104815.46abb5fa66fc184ac960a2677c964dc896967765.zmedico@gentoo
1 commit: 46abb5fa66fc184ac960a2677c964dc896967765
2 Author: Zac Medico <zmedico <AT> gentoo <DOT> org>
3 AuthorDate: Fri Dec 1 05:06:55 2017 +0000
4 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org>
5 CommitDate: Fri Dec 1 05:06:55 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=46abb5fa
7
8 dev-util/google-perftools: version bump to 2.6.2
9
10 Package-Manager: Portage-2.3.16, Repoman-2.3.6
11
12 dev-util/google-perftools/Manifest | 1 +
13 .../google-perftools/google-perftools-2.6.2.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 10f07600b93..28ebecf8577 100644
18 --- a/dev-util/google-perftools/Manifest
19 +++ b/dev-util/google-perftools/Manifest
20 @@ -3,4 +3,5 @@ DIST gperftools-2.0.tar.gz 1261243 SHA256 7de3dd91f018825b1e7d332af1edace15c6211
21 DIST gperftools-2.4.tar.gz 890402 SHA256 a73c2d066fb0d8e5a9102c0c17eadd8041f9b43b40b50faff54db01256772f6c SHA512 77198c150ee26579adc8f190be0c4ba90a9e3854b006c3aa9252b5863b1fce317fd690c6aa0ed202c81f0bbcfbe2d5f8a182263e77b7fb4fbc6b3e8bfffc9fb0 WHIRLPOOL 4b74a6074e1d0e0f6c5c3d8487a73045849237db93abcb5f4bb4aa7f40fcf9355d0cb1702335904ba6153ead62cb5a6df264d359bc1ce32fbb13fba4d2f2ddbc
22 DIST gperftools-2.5.tar.gz 895753 SHA256 0256331e67e8be12995b57183ec6affd071231f997bfcb5d5b050f86d4ad577e SHA512 974b86eadebe0437f4b7cf51de84afa315390cdcd2a88c8ccc8448b0b3e98c2241d89b4987b5fca1937102ae00a43802d9d06d7b11272e3dfeeaa23cf58ad68d WHIRLPOOL 4fc82910585107a2a879cae1b83afdcf98a39c3c7cbce3e8ba28b7b00ea1f638bb795213b7a6330bb311dd399bd7bcf34b3705cb8f75921ac1fd9ce3c0d1e8fd
23 DIST gperftools-2.6.1.tar.gz 907916 SHA256 3a51215bf0f0c1eedaef9cd377fe6b47dddafc3e5a66d292abb176e1ed36aab8 SHA512 49c1123ef8e297381e30fae6fc2391539ac5e1d3097b3f9f59c21853589152e248e92be0739bc50da6e5542f2638a9719b88f2d454221f463915d89e569776d2 WHIRLPOOL f93beba285703e199b27fd03e9c16732dcd9b625a16daad02c255392627dcf57b093a767bc645716b5f3395446c6181678c775b53f7d2dc151a398dad737a761
24 +DIST gperftools-2.6.2.tar.gz 911744 BLAKE2B e5798a2f0f2973f02bccabb2550a9df54319e505fc715795cd836ced631b29bfd8e6f8ddf3c7f6dceb0f166523bb0fa55564b1cbc896c8cd8cfd475263c07c39 SHA512 20c3460f806c6425d54e8d1020f15bc8940aacd7bf1367b03a116fb873bbd6c1e1fbb75df1d0ca341eaec813552fec394327175115ea8442a4b7a1ef17f0df2f
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.2.ebuild b/dev-util/google-perftools/google-perftools-2.6.2.ebuild
28 new file mode 100644
29 index 00000000000..708d6799167
30 --- /dev/null
31 +++ b/dev-util/google-perftools/google-perftools-2.6.2.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=${EPREFIX}/usr/share/doc/${PF}/html \
87 + --docdir=${EPREFIX}/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 +}