1 |
naota 12/06/28 08:23:07 |
2 |
|
3 |
Modified: metadata.xml ChangeLog |
4 |
Added: perf-3.4.ebuild |
5 |
Log: |
6 |
Version bump; Assign myself as a maintainer. |
7 |
|
8 |
(Portage version: 2.2.0_alpha110/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.6 dev-util/perf/metadata.xml |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/perf/metadata.xml?rev=1.6&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/perf/metadata.xml?rev=1.6&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/perf/metadata.xml?r1=1.5&r2=1.6 |
16 |
|
17 |
Index: metadata.xml |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/dev-util/perf/metadata.xml,v |
20 |
retrieving revision 1.5 |
21 |
retrieving revision 1.6 |
22 |
diff -u -r1.5 -r1.6 |
23 |
--- metadata.xml 24 Sep 2011 08:55:07 -0000 1.5 |
24 |
+++ metadata.xml 28 Jun 2012 08:23:07 -0000 1.6 |
25 |
@@ -2,7 +2,7 @@ |
26 |
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
27 |
<pkgmetadata> |
28 |
<maintainer> |
29 |
- <email>flameeyes@g.o</email> |
30 |
+ <email>naota@g.o</email> |
31 |
</maintainer> |
32 |
<use> |
33 |
<flag name="demangle"> |
34 |
|
35 |
|
36 |
|
37 |
1.20 dev-util/perf/ChangeLog |
38 |
|
39 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/perf/ChangeLog?rev=1.20&view=markup |
40 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/perf/ChangeLog?rev=1.20&content-type=text/plain |
41 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/perf/ChangeLog?r1=1.19&r2=1.20 |
42 |
|
43 |
Index: ChangeLog |
44 |
=================================================================== |
45 |
RCS file: /var/cvsroot/gentoo-x86/dev-util/perf/ChangeLog,v |
46 |
retrieving revision 1.19 |
47 |
retrieving revision 1.20 |
48 |
diff -u -r1.19 -r1.20 |
49 |
--- ChangeLog 28 Feb 2012 22:21:05 -0000 1.19 |
50 |
+++ ChangeLog 28 Jun 2012 08:23:07 -0000 1.20 |
51 |
@@ -1,6 +1,11 @@ |
52 |
# ChangeLog for dev-util/perf |
53 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
54 |
-# $Header: /var/cvsroot/gentoo-x86/dev-util/perf/ChangeLog,v 1.19 2012/02/28 22:21:05 vapier Exp $ |
55 |
+# $Header: /var/cvsroot/gentoo-x86/dev-util/perf/ChangeLog,v 1.20 2012/06/28 08:23:07 naota Exp $ |
56 |
+ |
57 |
+*perf-3.4 (28 Jun 2012) |
58 |
+ |
59 |
+ 28 Jun 2012; Naohiro Aota <naota@g.o> +perf-3.4.ebuild, metadata.xml: |
60 |
+ Version bump; Assign myself as a maintainer. |
61 |
|
62 |
*perf-3.2 (28 Feb 2012) |
63 |
|
64 |
|
65 |
|
66 |
|
67 |
1.1 dev-util/perf/perf-3.4.ebuild |
68 |
|
69 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/perf/perf-3.4.ebuild?rev=1.1&view=markup |
70 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/perf/perf-3.4.ebuild?rev=1.1&content-type=text/plain |
71 |
|
72 |
Index: perf-3.4.ebuild |
73 |
=================================================================== |
74 |
# Copyright 1999-2012 Gentoo Foundation |
75 |
# Distributed under the terms of the GNU General Public License v2 |
76 |
# $Header: /var/cvsroot/gentoo-x86/dev-util/perf/perf-3.4.ebuild,v 1.1 2012/06/28 08:23:07 naota Exp $ |
77 |
|
78 |
EAPI="4" |
79 |
|
80 |
PYTHON_DEPEND="python? 2" |
81 |
inherit versionator eutils toolchain-funcs python linux-info |
82 |
|
83 |
MY_PV="${PV/_/-}" |
84 |
MY_PV="${MY_PV/-pre/-git}" |
85 |
|
86 |
DESCRIPTION="Userland tools for Linux Performance Counters" |
87 |
HOMEPAGE="http://perf.wiki.kernel.org/" |
88 |
|
89 |
LINUX_V=$(get_version_component_range 1-2) |
90 |
|
91 |
if [[ ${PV/_rc} != ${PV} ]] ; then |
92 |
LINUX_VER=$(get_version_component_range 1-2).$(($(get_version_component_range 3)-1)) |
93 |
PATCH_VERSION=$(get_version_component_range 1-3) |
94 |
LINUX_PATCH=patch-${PV//_/-}.bz2 |
95 |
SRC_URI="mirror://kernel/linux/kernel/v${LINUX_V}/testing/${LINUX_PATCH} |
96 |
mirror://kernel/linux/kernel/v${LINUX_V}/testing/v${PATCH_VERSION}/${LINUX_PATCH}" |
97 |
elif [[ $(get_version_component_count) == 4 ]] ; then |
98 |
# stable-release series |
99 |
LINUX_VER=$(get_version_component_range 1-3) |
100 |
LINUX_PATCH=patch-${PV}.bz2 |
101 |
SRC_URI="mirror://kernel/linux/kernel/v${LINUX_V}/${LINUX_PATCH}" |
102 |
else |
103 |
LINUX_VER=${PV} |
104 |
SRC_URI="" |
105 |
fi |
106 |
|
107 |
LINUX_SOURCES="linux-${LINUX_VER}.tar.bz2" |
108 |
SRC_URI+=" mirror://kernel/linux/kernel/v${LINUX_V}/${LINUX_SOURCES}" |
109 |
|
110 |
LICENSE="GPL-2" |
111 |
SLOT="0" |
112 |
KEYWORDS="~amd64 ~ppc ~x86" |
113 |
IUSE="+demangle +doc perl python slang" |
114 |
|
115 |
RDEPEND="demangle? ( sys-devel/binutils ) |
116 |
perl? ( || ( >=dev-lang/perl-5.10 sys-devel/libperl ) ) |
117 |
slang? ( dev-libs/newt ) |
118 |
dev-libs/elfutils" |
119 |
DEPEND="${RDEPEND} |
120 |
${LINUX_PATCH+dev-util/patchutils} |
121 |
sys-devel/bison |
122 |
sys-devel/flex |
123 |
doc? ( |
124 |
app-text/asciidoc |
125 |
app-text/sgml-common |
126 |
app-text/xmlto |
127 |
sys-process/time )" |
128 |
|
129 |
S_K="${WORKDIR}/linux-${LINUX_VER}" |
130 |
S="${S_K}/tools/perf" |
131 |
|
132 |
CONFIG_CHECK="~PERF_EVENTS ~KALLSYMS" |
133 |
|
134 |
pkg_setup() { |
135 |
use python && python_set_active_version 2 |
136 |
} |
137 |
|
138 |
src_unpack() { |
139 |
local paths=( tools/perf include lib "arch/*/include" "arch/*/lib" ) |
140 |
|
141 |
# We expect the tar implementation to support the -j option (both |
142 |
# GNU tar and libarchive's tar support that). |
143 |
echo ">>> Unpacking ${LINUX_SOURCES} (${paths[*]}) to ${PWD}" |
144 |
tar --wildcards -xpf "${DISTDIR}"/${LINUX_SOURCES} \ |
145 |
"${paths[@]/#/linux-${LINUX_VER}/}" || die |
146 |
|
147 |
if [[ -n ${LINUX_PATCH} ]] ; then |
148 |
eshopts_push -o noglob |
149 |
ebegin "Filtering partial source patch" |
150 |
filterdiff -p1 ${paths[@]/#/-i } -z "${DISTDIR}"/${LINUX_PATCH} > ${P}.patch || die |
151 |
eend $? || die "filterdiff failed" |
152 |
eshopts_pop |
153 |
fi |
154 |
|
155 |
local a |
156 |
for a in ${A}; do |
157 |
[[ ${a} == ${LINUX_SOURCES} ]] && continue |
158 |
[[ ${a} == ${LINUX_PATCH} ]] && continue |
159 |
unpack ${a} |
160 |
done |
161 |
} |
162 |
|
163 |
src_prepare() { |
164 |
if [[ -n ${LINUX_PATCH} ]] ; then |
165 |
cd "${S_K}" |
166 |
epatch "${WORKDIR}"/${P}.patch |
167 |
fi |
168 |
|
169 |
# Drop some upstream too-developer-oriented flags and fix the |
170 |
# Makefile in general |
171 |
sed -i \ |
172 |
-e 's:-Werror::' \ |
173 |
-e 's:-ggdb3::' \ |
174 |
-e 's:-fstack-protector-all::' \ |
175 |
-e 's:^LDFLAGS =:EXTLIBS +=:' \ |
176 |
-e '/\(PERL\|PYTHON\)_EMBED_LDOPTS/s:ALL_LDFLAGS +=:EXTLIBS +=:' \ |
177 |
-e '/-x c - /s:\$(ALL_LDFLAGS):\0 $(EXTLIBS):' \ |
178 |
-e '/^ALL_CFLAGS =/s:$: $(CFLAGS_OPTIMIZE):' \ |
179 |
-e '/^ALL_LDFLAGS =/s:$: $(LDFLAGS_OPTIMIZE):' \ |
180 |
-e '/.FORCE-PERF-VERSION-FILE/s,.FORCE-PERF-VERSION-FILE,,g' \ |
181 |
"${S}"/Makefile |
182 |
|
183 |
# Avoid the call to make kernelversion |
184 |
echo "PERF_VERSION = ${MY_PV}" > PERF-VERSION-FILE |
185 |
|
186 |
# The code likes to compile local assembly files which lack ELF markings. |
187 |
find -name '*.S' -exec sed -i '$a.section .note.GNU-stack,"",%progbits' {} + |
188 |
} |
189 |
|
190 |
puse() { usex $1 "" no; } |
191 |
perf_make() { |
192 |
emake V=1 \ |
193 |
CC="$(tc-getCC)" AR="$(tc-getAR)" \ |
194 |
prefix="/usr" bindir_relative="sbin" \ |
195 |
CFLAGS_OPTIMIZE="${CFLAGS}" \ |
196 |
LDFLAGS_OPTIMIZE="${LDFLAGS}" \ |
197 |
ARCH="$(tc-arch-kernel)" \ |
198 |
NO_DEMANGLE=$(puse demangle) \ |
199 |
NO_LIBPERL=$(puse perl) \ |
200 |
NO_LIBPYTHON=$(puse python) \ |
201 |
NO_NEWT=$(puse slang) \ |
202 |
"$@" |
203 |
} |
204 |
|
205 |
src_compile() { |
206 |
perf_make |
207 |
|
208 |
if use doc ; then |
209 |
pushd Documentation |
210 |
emake ${makeargs} |
211 |
popd |
212 |
fi |
213 |
} |
214 |
|
215 |
src_test() { |
216 |
: |
217 |
} |
218 |
|
219 |
src_install() { |
220 |
perf_make install DESTDIR="${D}" |
221 |
|
222 |
dodoc CREDITS |
223 |
|
224 |
dodoc *txt Documentation/*.txt |
225 |
if use doc ; then |
226 |
dohtml Documentation/*.html |
227 |
doman Documentation/*.1 |
228 |
fi |
229 |
} |
230 |
|
231 |
pkg_postinst() { |
232 |
if ! use doc ; then |
233 |
elog "Without the doc USE flag you won't get any documentation nor man pages." |
234 |
elog "And without man pages, you won't get any --help output for perf and its" |
235 |
elog "sub-tools." |
236 |
fi |
237 |
} |