From: | "Diego Petteno (flameeyes)" <flameeyes@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in dev-util/perf: metadata.xml ChangeLog perf-2.6.31.ebuild |
Date: | Fri, 30 Oct 2009 19:30:27 |
Message-Id: | E1N3xB3-0002GZ-Ex@stork.gentoo.org |
1 | flameeyes 09/10/30 19:30:25 |
2 | |
3 | Added: metadata.xml ChangeLog perf-2.6.31.ebuild |
4 | Log: |
5 | Initial import of the performance counter userland utility. |
6 | (Portage version: 2.2_rc46/cvs/Linux x86_64) |
7 | |
8 | Revision Changes Path |
9 | 1.1 dev-util/perf/metadata.xml |
10 | |
11 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/perf/metadata.xml?rev=1.1&view=markup |
12 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/perf/metadata.xml?rev=1.1&content-type=text/plain |
13 | |
14 | Index: metadata.xml |
15 | =================================================================== |
16 | <?xml version="1.0" encoding="UTF-8"?> |
17 | <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
18 | <pkgmetadata> |
19 | <herd>no-herd</herd> |
20 | <maintainer> |
21 | <email>flameeyes@g.o</email> |
22 | </maintainer> |
23 | <use> |
24 | <flag name="demangle"> |
25 | Enable C++ symbol name demangling, using libbfd from |
26 | <pkg>sys-devel/binutils</pkg>. When this flag is enabled, the |
27 | package will have to be rebuilt after every version bump of |
28 | binutils. |
29 | </flag> |
30 | </use> |
31 | </pkgmetadata> |
32 | |
33 | |
34 | |
35 | 1.1 dev-util/perf/ChangeLog |
36 | |
37 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/perf/ChangeLog?rev=1.1&view=markup |
38 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/perf/ChangeLog?rev=1.1&content-type=text/plain |
39 | |
40 | Index: ChangeLog |
41 | =================================================================== |
42 | # ChangeLog for dev-util/perf |
43 | # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
44 | # $Header: /var/cvsroot/gentoo-x86/dev-util/perf/ChangeLog,v 1.1 2009/10/30 19:30:24 flameeyes Exp $ |
45 | |
46 | *perf-2.6.31 (30 Oct 2009) |
47 | |
48 | 30 Oct 2009; Diego E. Pettenò <flameeyes@g.o> +perf-2.6.31.ebuild, |
49 | +metadata.xml: |
50 | Initial import of the performance counter userland utility. |
51 | |
52 | |
53 | |
54 | |
55 | 1.1 dev-util/perf/perf-2.6.31.ebuild |
56 | |
57 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/perf/perf-2.6.31.ebuild?rev=1.1&view=markup |
58 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/perf/perf-2.6.31.ebuild?rev=1.1&content-type=text/plain |
59 | |
60 | Index: perf-2.6.31.ebuild |
61 | =================================================================== |
62 | # Copyright 1999-2009 Gentoo Foundation |
63 | # Distributed under the terms of the GNU General Public License v2 |
64 | # $Header: /var/cvsroot/gentoo-x86/dev-util/perf/perf-2.6.31.ebuild,v 1.1 2009/10/30 19:30:24 flameeyes Exp $ |
65 | |
66 | EAPI=2 |
67 | |
68 | inherit versionator eutils toolchain-funcs linux-info |
69 | |
70 | MY_PV="${PV/_/-}" |
71 | MY_PV="${MY_PV/-pre/-git}" |
72 | |
73 | LINUX_SOURCES=linux-${MY_PV}.tar.bz2 |
74 | |
75 | DESCRIPTION="Userland tools for Linux Performance Counters" |
76 | HOMEPAGE="http://perf.wiki.kernel.org/" |
77 | SRC_URI="mirror://kernel/linux/kernel/v$(get_version_component_range 1-2)/${LINUX_SOURCES}" |
78 | |
79 | LICENSE="GPL-2" |
80 | SLOT="0" |
81 | KEYWORDS="~amd64" |
82 | IUSE="+demangle" |
83 | |
84 | DEPEND="demangle? ( sys-devel/binutils ) |
85 | dev-libs/elfutils" |
86 | RDEPEND="${DEPEND}" |
87 | |
88 | S="${WORKDIR}/linux-${MY_PV}/tools/perf" |
89 | |
90 | CONFIG_CHECK="PERF_EVENTS KALLSYMS" |
91 | |
92 | src_unpack() { |
93 | # We expect the tar implementation to support the -j option (both |
94 | # GNU tar and libarchive's tar support that). |
95 | tar --wildcards -xpf "${DISTDIR}"/${LINUX_SOURCES} linux-${MY_PV}/{tools/perf,include,lib,"arch/*/include"} |
96 | |
97 | [[ -n ${A/${LINUX_SOURCES}/} ]] && unpack ${A/${LINUX_SOURCES}/} |
98 | } |
99 | |
100 | src_prepare() { |
101 | # Drop some upstream too-developer-oriented flags and fix the |
102 | # Makefile in general |
103 | sed -i \ |
104 | -e 's:-Werror::' \ |
105 | -e 's:-ggdb3::' \ |
106 | -e 's:-fstack-protector-all::' \ |
107 | -e 's:^LDFLAGS =:EXTLIBS +=:' \ |
108 | -e '/-x c - /s:\$(ALL_LDFLAGS):\0 $(EXTLIBS):' \ |
109 | -e '/^ALL_CFLAGS =/s:$: $(CFLAGS_OPTIMIZE):' \ |
110 | -e '/^ALL_LDFLAGS =/s:$: $(LDFLAGS_OPTIMIZE):' \ |
111 | "${S}"/Makefile |
112 | } |
113 | |
114 | src_compile() { |
115 | local makeargs= |
116 | |
117 | use demangle || makeargs="${makeargs} NO_DEMANGLE= " |
118 | |
119 | emake ${makeargs} \ |
120 | CC="$(tc-getCC)" AR="$(tc-getAR)" \ |
121 | prefix="/usr" bindir_relative="sbin" \ |
122 | CFLAGS_OPTIMIZE="${CFLAGS}" \ |
123 | LDFLAGS_OPTIMIZE="${LDFLAGS}" || die |
124 | } |
125 | |
126 | src_test() { |
127 | : |
128 | } |
129 | |
130 | src_install() { |
131 | # Don't use make install or it'll be re-building the stuff :( |
132 | dosbin perf || die |
133 | |
134 | dodoc CREDITS || die |
135 | } |
136 | |
137 | pkg_postinst() { |
138 | elog "We currently provide no documentation with perf; we're sorry" |
139 | elog "but there will be no man page nor --help output." |
140 | } |