Gentoo Archives: gentoo-commits

From: Yixun Lan <dlan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/perf/
Date: Wed, 26 Aug 2020 02:41:32
Message-Id: 1598409662.0f7cf0bd5ffa0d01d69cce763d4597d5f2996600.dlan@gentoo
1 commit: 0f7cf0bd5ffa0d01d69cce763d4597d5f2996600
2 Author: Yixun Lan <dlan <AT> gentoo <DOT> org>
3 AuthorDate: Wed Aug 26 02:40:15 2020 +0000
4 Commit: Yixun Lan <dlan <AT> gentoo <DOT> org>
5 CommitDate: Wed Aug 26 02:41:02 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0f7cf0bd
7
8 dev-util/perf: drop old
9
10 Package-Manager: Portage-3.0.0, Repoman-2.3.23
11 Signed-off-by: Yixun Lan <dlan <AT> gentoo.org>
12
13 dev-util/perf/Manifest | 2 -
14 dev-util/perf/perf-5.6.14.ebuild | 236 ---------------------------------------
15 dev-util/perf/perf-5.7.ebuild | 236 ---------------------------------------
16 3 files changed, 474 deletions(-)
17
18 diff --git a/dev-util/perf/Manifest b/dev-util/perf/Manifest
19 index dbb9d798847..9066001b972 100644
20 --- a/dev-util/perf/Manifest
21 +++ b/dev-util/perf/Manifest
22 @@ -1,10 +1,8 @@
23 DIST linux-4.14.tar.xz 100770500 BLAKE2B 85dc4aa953fe65e273a24473d8de98e4f204f97c43be9fc87cf5be01f796f94cfde5c8f9c84619751f1cac51f83ce0b4681fb19c5f2965a72d4a94fe5577846a SHA512 77e43a02d766c3d73b7e25c4aafb2e931d6b16e870510c22cef0cdb05c3acb7952b8908ebad12b10ef982c6efbe286364b1544586e715cf38390e483927904d8
24 DIST linux-4.20.tar.xz 104257836 BLAKE2B fb52cad2897da319299486fa8c3b9415cd0aee0842dbf353a5b269720dcb902db407bb55dd95a77b212dcb4a488c15363d561f3649d6bd16885561f2466d90b1 SHA512 e282399beea5da539701aed2bc131abd5bc74a970dcd344163e9d295106dfd700180e672ed546ae5e55bc6b9ac95efd5ca1de2039015c1b7a6fc9c01ea6583d4
25 DIST linux-5.4.tar.xz 109441440 BLAKE2B 193bc4a3147e147d5529956164ec4912fad5d5c6fb07f909ff1056e57235834173194afc686993ccd785c1ff15804de0961b625f3008cca0e27493efc8f27b13 SHA512 9f60f77e8ab972b9438ac648bed17551c8491d6585a5e85f694b2eaa4c623fbc61eb18419b2656b6795eac5deec0edaa04547fc6723fbda52256bd7f3486898f
26 -DIST linux-5.6.tar.xz 111785252 BLAKE2B 8dbe02a8ca7fd3dcf512a15c5d8098c1e7f94257e65173fed43fcc45480e4ab790df8cd39bbbb4e2a21dc9a00385bc9bbe98215a31e7f7e1d9c8f21cd8ace69e SHA512 80846fe2b4e4a7ff471d2dde28a8216ae807a3209f959e93d39ea4fc9a189ea28ec3db9d303b3fe15a28c2cb90e7446876678e93e23353c2d6f262e364a06bc9
27 DIST linux-5.7.tar.xz 112690468 BLAKE2B b2b71e231507429b178b6b89be546c4a3ee2757f5d2c58b6137d383f16034a587225a75a9dbca6a01a433056ebe078487132c224e909a2971c9634687e47b1d1 SHA512 45bde01593f6147c8c169b9e46b4b56eee998142552ae0ff82f1dd21b1fd54f3b32f6283f6bd77ea717d374672167849e468c157f235d2f12f7d7816e4623bf6
28 DIST linux-5.8.tar.xz 114459324 BLAKE2B 7bd97f8fa4527840754434414c07283e89731dc8ebb1e95fa5bc1469a60af1122582c0d3b6e262e77882f023190068df3537bd8b65964b3caa820bb2c8e579c7 SHA512 45a53ecf351096ef6e98242cca4228b8da9b9139ecc6963695791ea6fb7a9484a4e1c19dcca7ce7cbfdfa49de0451b70973bb078f12bdae9cbaddbc3f8092556
29 DIST patch-4.14.33.xz 905284 BLAKE2B e67bd9a96708aaaf65eb0aa852493b2323c9e237bfcc6fa837f795e481943ead3e2d5005ee72e40fc247df01c50877d9da3848a05aba3c999c3cfb7678cbdbc9 SHA512 5c76be5171709c2df7df7d5a8e8f3d0f7ede47b433da3b0f1710f262c8fcf5cf6c744a96d4336ea397c2c88a5f0a7507a5ab08c7c82f08deeb7a6f887ad77cfd
30 DIST patch-4.20.3.xz 91732 BLAKE2B bf99271bcb35508df239343fd6c9d57c246f88320b586e44e2d97771d08b249a24db230214d4957015a5ed35261e201f0680101b99d0e92f0f1f69bc53e21458 SHA512 47178b8e3bfe4ba09cb82bb1ce8b0742e6749d4be3412fb57518918f7109e74eac1d3d8eb32a43e21b3837a14f37d5eefd8cab819defd10cc2db61fb0ceddeaf
31 DIST patch-5.4.20.xz 776552 BLAKE2B bad2a95ed8521ac5c379fe91e16d60b2a38de19b9239755084621e5230677b232ec4cf9e2e8161c0022daff43fdbb37d5b5b5bfdc9e932ef3a860bcd17f640f8 SHA512 65fbcdbd41e35c17601ff15bbe33933be2ab7a694aa181a0b802cc11c1c653c9b688dbb382076cbad05983a0c07467955c035ae25f5175f7ce5bc24339303d77
32 -DIST patch-5.6.14.xz 376464 BLAKE2B 01b64288759faa67aedfded7dfca5d8d1e894a863bf7bcaf91dd8f23c8b8c9df51d2e54ac5e414a33fc3469b32c10f1d630cf2636206b8e159d602df40ad3048 SHA512 8019bf12993f43d5508845a48b250d30220a8db6db262c8b97cd3f7c73abf0d054fcdfacb671644de529ceb495b95982d693a889051fb60fafc3180bd5b4f29e
33
34 diff --git a/dev-util/perf/perf-5.6.14.ebuild b/dev-util/perf/perf-5.6.14.ebuild
35 deleted file mode 100644
36 index afc8951d08d..00000000000
37 --- a/dev-util/perf/perf-5.6.14.ebuild
38 +++ /dev/null
39 @@ -1,236 +0,0 @@
40 -# Copyright 1999-2020 Gentoo Authors
41 -# Distributed under the terms of the GNU General Public License v2
42 -
43 -EAPI=7
44 -
45 -PYTHON_COMPAT=( python3_{6,7,8} )
46 -inherit bash-completion-r1 estack eutils llvm toolchain-funcs prefix python-r1 linux-info
47 -
48 -MY_PV="${PV/_/-}"
49 -MY_PV="${MY_PV/-pre/-git}"
50 -
51 -DESCRIPTION="Userland tools for Linux Performance Counters"
52 -HOMEPAGE="https://perf.wiki.kernel.org/"
53 -
54 -LINUX_V="${PV:0:1}.x"
55 -if [[ ${PV} == *_rc* ]] ; then
56 - LINUX_VER=$(ver_cut 1-2).$(($(ver_cut 3)-1))
57 - PATCH_VERSION=$(ver_cut 1-3)
58 - LINUX_PATCH=patch-${PV//_/-}.xz
59 - SRC_URI="https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/testing/${LINUX_PATCH}
60 - https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/testing/v${PATCH_VERSION}/${LINUX_PATCH}"
61 -elif [[ ${PV} == *.*.* ]] ; then
62 - # stable-release series
63 - LINUX_VER=$(ver_cut 1-2)
64 - LINUX_PATCH=patch-${PV}.xz
65 - SRC_URI="https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/${LINUX_PATCH}"
66 -else
67 - LINUX_VER=${PV}
68 - SRC_URI=""
69 -fi
70 -
71 -LINUX_SOURCES="linux-${LINUX_VER}.tar.xz"
72 -SRC_URI+=" https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/${LINUX_SOURCES}"
73 -
74 -LICENSE="GPL-2"
75 -SLOT="0"
76 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
77 -IUSE="audit clang crypt debug +demangle +doc gtk java lzma numa perl python slang systemtap unwind zlib"
78 -# TODO babeltrace
79 -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
80 -
81 -RDEPEND="audit? ( sys-process/audit )
82 - crypt? ( dev-libs/openssl:0= )
83 - clang? (
84 - <sys-devel/clang-10:*
85 - <sys-devel/llvm-10:*
86 - )
87 - demangle? ( sys-libs/binutils-libs:= )
88 - gtk? ( x11-libs/gtk+:2 )
89 - java? ( virtual/jre:* )
90 - lzma? ( app-arch/xz-utils )
91 - numa? ( sys-process/numactl )
92 - perl? ( dev-lang/perl:= )
93 - python? ( ${PYTHON_DEPS} )
94 - slang? ( sys-libs/slang )
95 - systemtap? ( dev-util/systemtap )
96 - unwind? ( sys-libs/libunwind )
97 - zlib? ( sys-libs/zlib )
98 - dev-libs/elfutils"
99 -DEPEND="${RDEPEND}
100 - >=sys-kernel/linux-headers-4.19
101 - ${LINUX_PATCH+dev-util/patchutils}
102 - sys-devel/bison
103 - sys-devel/flex
104 - java? ( virtual/jdk )
105 - doc? (
106 - app-text/asciidoc
107 - app-text/sgml-common
108 - app-text/xmlto
109 - sys-process/time
110 - )"
111 -
112 -S_K="${WORKDIR}/linux-${LINUX_VER}"
113 -S="${S_K}/tools/perf"
114 -
115 -CONFIG_CHECK="~PERF_EVENTS ~KALLSYMS"
116 -
117 -pkg_setup() {
118 - use clang && LLVM_MAX_SLOT=9 llvm_pkg_setup
119 -}
120 -
121 -src_unpack() {
122 - local paths=(
123 - tools/arch tools/build tools/include tools/lib tools/perf tools/scripts
124 - scripts include lib "arch/*/lib"
125 - )
126 -
127 - # We expect the tar implementation to support the -j option (both
128 - # GNU tar and libarchive's tar support that).
129 - echo ">>> Unpacking ${LINUX_SOURCES} (${paths[*]}) to ${PWD}"
130 - tar --wildcards -xpf "${DISTDIR}"/${LINUX_SOURCES} \
131 - "${paths[@]/#/linux-${LINUX_VER}/}" || die
132 -
133 - if [[ -n ${LINUX_PATCH} ]] ; then
134 - eshopts_push -o noglob
135 - ebegin "Filtering partial source patch"
136 - filterdiff -p1 ${paths[@]/#/-i } -z "${DISTDIR}"/${LINUX_PATCH} \
137 - > ${P}.patch
138 - eend $? || die "filterdiff failed"
139 - eshopts_pop
140 - fi
141 -
142 - local a
143 - for a in ${A}; do
144 - [[ ${a} == ${LINUX_SOURCES} ]] && continue
145 - [[ ${a} == ${LINUX_PATCH} ]] && continue
146 - unpack ${a}
147 - done
148 -}
149 -
150 -src_prepare() {
151 - default
152 - if [[ -n ${LINUX_PATCH} ]] ; then
153 - pushd "${S_K}" >/dev/null || die
154 - eapply "${WORKDIR}"/${P}.patch
155 - popd || die
156 - fi
157 -
158 - # Drop some upstream too-developer-oriented flags and fix the
159 - # Makefile in general
160 - sed -i \
161 - -e "s:\$(sysconfdir_SQ)/bash_completion.d:$(get_bashcompdir):" \
162 - "${S}"/Makefile.perf || die
163 - # A few places still use -Werror w/out $(WERROR) protection.
164 - sed -i -e 's:-Werror::' \
165 - "${S}"/Makefile.perf "${S_K}"/tools/lib/bpf/Makefile || die
166 -
167 - # Avoid the call to make kernelversion
168 - echo "#define PERF_VERSION \"${MY_PV}\"" > PERF-VERSION-FILE
169 -
170 - # The code likes to compile local assembly files which lack ELF markings.
171 - find -name '*.S' -exec sed -i '$a.section .note.GNU-stack,"",%progbits' {} +
172 -
173 - # Fix shebang to use python from prefix
174 - if [[ -n "${EPREFIX}" ]]; then
175 - hprefixify ${S_K}/scripts/bpf_helpers_doc.py
176 - fi
177 -}
178 -
179 -puse() { usex $1 "" no; }
180 -perf_make() {
181 - # The arch parsing is a bit funky. The perf tools package is integrated
182 - # into the kernel, so it wants an ARCH that looks like the kernel arch,
183 - # but it also wants to know about the split value -- i386/x86_64 vs just
184 - # x86. We can get that by telling the func to use an older linux version.
185 - # It's kind of a hack, but not that bad ...
186 -
187 - # LIBDIR sets a search path of perf-gtk.so. Bug 515954
188 -
189 - local arch=$(tc-arch-kernel)
190 - local java_dir
191 - use java && java_dir="/etc/java-config-2/current-system-vm"
192 - # FIXME: NO_CORESIGHT
193 - # FIXME: NO_LIBBABELTRACE
194 - emake V=1 VF=1 \
195 - CC="$(tc-getCC)" CXX="$(tc-getCXX)" AR="$(tc-getAR)" LD="$(tc-getLD)" \
196 - PKG_CONFIG="$(tc-getPKG_CONFIG)" \
197 - prefix="${EPREFIX}/usr" bindir_relative="bin" \
198 - EXTRA_CFLAGS="${CFLAGS}" \
199 - ARCH="${arch}" \
200 - JDIR="${java_dir}" \
201 - LIBCLANGLLVM=$(usex clang 1 "") \
202 - NO_AUXTRACE="" \
203 - NO_BACKTRACE="" \
204 - NO_CORESIGHT=1 \
205 - NO_DEMANGLE=$(puse demangle) \
206 - NO_GTK2=$(puse gtk) \
207 - NO_JVMTI=$(puse java) \
208 - NO_LIBAUDIT=$(puse audit) \
209 - NO_LIBBABELTRACE=1 \
210 - NO_LIBBIONIC=1 \
211 - NO_LIBBPF="" \
212 - NO_LIBCRYPTO=$(puse crypt) \
213 - NO_LIBDW_DWARF_UNWIND="" \
214 - NO_LIBELF="" \
215 - NO_LIBNUMA=$(puse numa) \
216 - NO_LIBPERL=$(puse perl) \
217 - NO_LIBPYTHON=$(puse python) \
218 - NO_LIBUNWIND=$(puse unwind) \
219 - NO_SDT=$(puse systemtap) \
220 - NO_SLANG=$(puse slang) \
221 - NO_LZMA=$(puse lzma) \
222 - NO_ZLIB= \
223 - WERROR=0 \
224 - LIBDIR="/usr/libexec/perf-core" \
225 - "$@"
226 -}
227 -
228 -src_compile() {
229 - # test-clang.bin not build with g++
230 - if use clang; then
231 - pushd "${S_K}/tools/build/feature/" || die
232 - make V=1 CXX=${CHOST}-clang++ test-clang.bin || die
233 - popd
234 - fi
235 - perf_make -f Makefile.perf
236 - use doc && perf_make -C Documentation
237 -}
238 -
239 -src_test() {
240 - :
241 -}
242 -
243 -src_install() {
244 - _install_python_ext() {
245 - perf_make -f Makefile.perf install-python_ext DESTDIR="${D}"
246 - }
247 -
248 - perf_make -f Makefile.perf install DESTDIR="${D}"
249 - if use python; then
250 - python_foreach_impl _install_python_ext
251 - fi
252 -
253 - rm -rv "${ED}"/usr/share/doc/perf-tip || die
254 -
255 - if use gtk; then
256 - mv "${ED}"/usr/$(get_libdir)/libperf-gtk.so \
257 - "${ED}"/usr/libexec/perf-core || die
258 - fi
259 -
260 - dodoc CREDITS
261 -
262 - dodoc *txt Documentation/*.txt
263 - if use doc ; then
264 - HTML_DOCS="Documentation/*.html" einstalldocs
265 - doman Documentation/*.1
266 - fi
267 -}
268 -
269 -pkg_postinst() {
270 - if ! use doc ; then
271 - elog "Without the doc USE flag you won't get any documentation nor man pages."
272 - elog "And without man pages, you won't get any --help output for perf and its"
273 - elog "sub-tools."
274 - fi
275 -}
276
277 diff --git a/dev-util/perf/perf-5.7.ebuild b/dev-util/perf/perf-5.7.ebuild
278 deleted file mode 100644
279 index afc8951d08d..00000000000
280 --- a/dev-util/perf/perf-5.7.ebuild
281 +++ /dev/null
282 @@ -1,236 +0,0 @@
283 -# Copyright 1999-2020 Gentoo Authors
284 -# Distributed under the terms of the GNU General Public License v2
285 -
286 -EAPI=7
287 -
288 -PYTHON_COMPAT=( python3_{6,7,8} )
289 -inherit bash-completion-r1 estack eutils llvm toolchain-funcs prefix python-r1 linux-info
290 -
291 -MY_PV="${PV/_/-}"
292 -MY_PV="${MY_PV/-pre/-git}"
293 -
294 -DESCRIPTION="Userland tools for Linux Performance Counters"
295 -HOMEPAGE="https://perf.wiki.kernel.org/"
296 -
297 -LINUX_V="${PV:0:1}.x"
298 -if [[ ${PV} == *_rc* ]] ; then
299 - LINUX_VER=$(ver_cut 1-2).$(($(ver_cut 3)-1))
300 - PATCH_VERSION=$(ver_cut 1-3)
301 - LINUX_PATCH=patch-${PV//_/-}.xz
302 - SRC_URI="https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/testing/${LINUX_PATCH}
303 - https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/testing/v${PATCH_VERSION}/${LINUX_PATCH}"
304 -elif [[ ${PV} == *.*.* ]] ; then
305 - # stable-release series
306 - LINUX_VER=$(ver_cut 1-2)
307 - LINUX_PATCH=patch-${PV}.xz
308 - SRC_URI="https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/${LINUX_PATCH}"
309 -else
310 - LINUX_VER=${PV}
311 - SRC_URI=""
312 -fi
313 -
314 -LINUX_SOURCES="linux-${LINUX_VER}.tar.xz"
315 -SRC_URI+=" https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/${LINUX_SOURCES}"
316 -
317 -LICENSE="GPL-2"
318 -SLOT="0"
319 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
320 -IUSE="audit clang crypt debug +demangle +doc gtk java lzma numa perl python slang systemtap unwind zlib"
321 -# TODO babeltrace
322 -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
323 -
324 -RDEPEND="audit? ( sys-process/audit )
325 - crypt? ( dev-libs/openssl:0= )
326 - clang? (
327 - <sys-devel/clang-10:*
328 - <sys-devel/llvm-10:*
329 - )
330 - demangle? ( sys-libs/binutils-libs:= )
331 - gtk? ( x11-libs/gtk+:2 )
332 - java? ( virtual/jre:* )
333 - lzma? ( app-arch/xz-utils )
334 - numa? ( sys-process/numactl )
335 - perl? ( dev-lang/perl:= )
336 - python? ( ${PYTHON_DEPS} )
337 - slang? ( sys-libs/slang )
338 - systemtap? ( dev-util/systemtap )
339 - unwind? ( sys-libs/libunwind )
340 - zlib? ( sys-libs/zlib )
341 - dev-libs/elfutils"
342 -DEPEND="${RDEPEND}
343 - >=sys-kernel/linux-headers-4.19
344 - ${LINUX_PATCH+dev-util/patchutils}
345 - sys-devel/bison
346 - sys-devel/flex
347 - java? ( virtual/jdk )
348 - doc? (
349 - app-text/asciidoc
350 - app-text/sgml-common
351 - app-text/xmlto
352 - sys-process/time
353 - )"
354 -
355 -S_K="${WORKDIR}/linux-${LINUX_VER}"
356 -S="${S_K}/tools/perf"
357 -
358 -CONFIG_CHECK="~PERF_EVENTS ~KALLSYMS"
359 -
360 -pkg_setup() {
361 - use clang && LLVM_MAX_SLOT=9 llvm_pkg_setup
362 -}
363 -
364 -src_unpack() {
365 - local paths=(
366 - tools/arch tools/build tools/include tools/lib tools/perf tools/scripts
367 - scripts include lib "arch/*/lib"
368 - )
369 -
370 - # We expect the tar implementation to support the -j option (both
371 - # GNU tar and libarchive's tar support that).
372 - echo ">>> Unpacking ${LINUX_SOURCES} (${paths[*]}) to ${PWD}"
373 - tar --wildcards -xpf "${DISTDIR}"/${LINUX_SOURCES} \
374 - "${paths[@]/#/linux-${LINUX_VER}/}" || die
375 -
376 - if [[ -n ${LINUX_PATCH} ]] ; then
377 - eshopts_push -o noglob
378 - ebegin "Filtering partial source patch"
379 - filterdiff -p1 ${paths[@]/#/-i } -z "${DISTDIR}"/${LINUX_PATCH} \
380 - > ${P}.patch
381 - eend $? || die "filterdiff failed"
382 - eshopts_pop
383 - fi
384 -
385 - local a
386 - for a in ${A}; do
387 - [[ ${a} == ${LINUX_SOURCES} ]] && continue
388 - [[ ${a} == ${LINUX_PATCH} ]] && continue
389 - unpack ${a}
390 - done
391 -}
392 -
393 -src_prepare() {
394 - default
395 - if [[ -n ${LINUX_PATCH} ]] ; then
396 - pushd "${S_K}" >/dev/null || die
397 - eapply "${WORKDIR}"/${P}.patch
398 - popd || die
399 - fi
400 -
401 - # Drop some upstream too-developer-oriented flags and fix the
402 - # Makefile in general
403 - sed -i \
404 - -e "s:\$(sysconfdir_SQ)/bash_completion.d:$(get_bashcompdir):" \
405 - "${S}"/Makefile.perf || die
406 - # A few places still use -Werror w/out $(WERROR) protection.
407 - sed -i -e 's:-Werror::' \
408 - "${S}"/Makefile.perf "${S_K}"/tools/lib/bpf/Makefile || die
409 -
410 - # Avoid the call to make kernelversion
411 - echo "#define PERF_VERSION \"${MY_PV}\"" > PERF-VERSION-FILE
412 -
413 - # The code likes to compile local assembly files which lack ELF markings.
414 - find -name '*.S' -exec sed -i '$a.section .note.GNU-stack,"",%progbits' {} +
415 -
416 - # Fix shebang to use python from prefix
417 - if [[ -n "${EPREFIX}" ]]; then
418 - hprefixify ${S_K}/scripts/bpf_helpers_doc.py
419 - fi
420 -}
421 -
422 -puse() { usex $1 "" no; }
423 -perf_make() {
424 - # The arch parsing is a bit funky. The perf tools package is integrated
425 - # into the kernel, so it wants an ARCH that looks like the kernel arch,
426 - # but it also wants to know about the split value -- i386/x86_64 vs just
427 - # x86. We can get that by telling the func to use an older linux version.
428 - # It's kind of a hack, but not that bad ...
429 -
430 - # LIBDIR sets a search path of perf-gtk.so. Bug 515954
431 -
432 - local arch=$(tc-arch-kernel)
433 - local java_dir
434 - use java && java_dir="/etc/java-config-2/current-system-vm"
435 - # FIXME: NO_CORESIGHT
436 - # FIXME: NO_LIBBABELTRACE
437 - emake V=1 VF=1 \
438 - CC="$(tc-getCC)" CXX="$(tc-getCXX)" AR="$(tc-getAR)" LD="$(tc-getLD)" \
439 - PKG_CONFIG="$(tc-getPKG_CONFIG)" \
440 - prefix="${EPREFIX}/usr" bindir_relative="bin" \
441 - EXTRA_CFLAGS="${CFLAGS}" \
442 - ARCH="${arch}" \
443 - JDIR="${java_dir}" \
444 - LIBCLANGLLVM=$(usex clang 1 "") \
445 - NO_AUXTRACE="" \
446 - NO_BACKTRACE="" \
447 - NO_CORESIGHT=1 \
448 - NO_DEMANGLE=$(puse demangle) \
449 - NO_GTK2=$(puse gtk) \
450 - NO_JVMTI=$(puse java) \
451 - NO_LIBAUDIT=$(puse audit) \
452 - NO_LIBBABELTRACE=1 \
453 - NO_LIBBIONIC=1 \
454 - NO_LIBBPF="" \
455 - NO_LIBCRYPTO=$(puse crypt) \
456 - NO_LIBDW_DWARF_UNWIND="" \
457 - NO_LIBELF="" \
458 - NO_LIBNUMA=$(puse numa) \
459 - NO_LIBPERL=$(puse perl) \
460 - NO_LIBPYTHON=$(puse python) \
461 - NO_LIBUNWIND=$(puse unwind) \
462 - NO_SDT=$(puse systemtap) \
463 - NO_SLANG=$(puse slang) \
464 - NO_LZMA=$(puse lzma) \
465 - NO_ZLIB= \
466 - WERROR=0 \
467 - LIBDIR="/usr/libexec/perf-core" \
468 - "$@"
469 -}
470 -
471 -src_compile() {
472 - # test-clang.bin not build with g++
473 - if use clang; then
474 - pushd "${S_K}/tools/build/feature/" || die
475 - make V=1 CXX=${CHOST}-clang++ test-clang.bin || die
476 - popd
477 - fi
478 - perf_make -f Makefile.perf
479 - use doc && perf_make -C Documentation
480 -}
481 -
482 -src_test() {
483 - :
484 -}
485 -
486 -src_install() {
487 - _install_python_ext() {
488 - perf_make -f Makefile.perf install-python_ext DESTDIR="${D}"
489 - }
490 -
491 - perf_make -f Makefile.perf install DESTDIR="${D}"
492 - if use python; then
493 - python_foreach_impl _install_python_ext
494 - fi
495 -
496 - rm -rv "${ED}"/usr/share/doc/perf-tip || die
497 -
498 - if use gtk; then
499 - mv "${ED}"/usr/$(get_libdir)/libperf-gtk.so \
500 - "${ED}"/usr/libexec/perf-core || die
501 - fi
502 -
503 - dodoc CREDITS
504 -
505 - dodoc *txt Documentation/*.txt
506 - if use doc ; then
507 - HTML_DOCS="Documentation/*.html" einstalldocs
508 - doman Documentation/*.1
509 - fi
510 -}
511 -
512 -pkg_postinst() {
513 - if ! use doc ; then
514 - elog "Without the doc USE flag you won't get any documentation nor man pages."
515 - elog "And without man pages, you won't get any --help output for perf and its"
516 - elog "sub-tools."
517 - fi
518 -}