1 |
commit: 5d177d8db91331992bd2b0cf9072a361822252b1 |
2 |
Author: Nirbheek Chauhan <nirbheek <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri May 6 00:23:44 2011 +0000 |
4 |
Commit: Nirbheek Chauhan <nirbheek <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri May 6 00:23:44 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gnome.git;a=commit;h=5d177d8d |
7 |
|
8 |
dev-util/sysprof: QAed |
9 |
|
10 |
* Use EAPI=4, pkg_pretend, elog instead of einfo |
11 |
* Use slot-deps in *DEPEND |
12 |
* Install udev rules in the proper place |
13 |
* Unmask, this is the overlay |
14 |
|
15 |
--- |
16 |
dev-util/sysprof/sysprof-1.1.6-r1.ebuild | 52 -------------------------- |
17 |
dev-util/sysprof/sysprof-1.1.6-r2.ebuild | 60 ++++++++++++++++++++++++++++++ |
18 |
profiles/package.mask | 4 -- |
19 |
3 files changed, 60 insertions(+), 56 deletions(-) |
20 |
|
21 |
diff --git a/dev-util/sysprof/sysprof-1.1.6-r1.ebuild b/dev-util/sysprof/sysprof-1.1.6-r1.ebuild |
22 |
deleted file mode 100644 |
23 |
index a7b40e1..0000000 |
24 |
--- a/dev-util/sysprof/sysprof-1.1.6-r1.ebuild |
25 |
+++ /dev/null |
26 |
@@ -1,52 +0,0 @@ |
27 |
-# Copyright 1999-2009 Gentoo Foundation |
28 |
-# Distributed under the terms of the GNU General Public License v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/dev-util/sysprof/sysprof-1.0.12-r1.ebuild,v 1.1 2009/05/27 11:02:05 remi Exp $ |
30 |
- |
31 |
-inherit eutils linux-info |
32 |
- |
33 |
-DESCRIPTION="System-wide Linux Profiler" |
34 |
-HOMEPAGE="http://www.daimi.au.dk/~sandmann/sysprof/" |
35 |
-SRC_URI="http://www.daimi.au.dk/~sandmann/sysprof/${P}.tar.gz" |
36 |
- |
37 |
-LICENSE="GPL-2" |
38 |
-SLOT="0" |
39 |
-KEYWORDS="~amd64 ~x86" |
40 |
-IUSE="" |
41 |
- |
42 |
-RDEPEND=">=dev-libs/glib-2.6 |
43 |
- >=x11-libs/gtk+-2.6 |
44 |
- x11-libs/pango |
45 |
- >=gnome-base/libglade-2" |
46 |
-DEPEND="${RDEPEND} |
47 |
- >=dev-util/pkgconfig-0.9" |
48 |
- |
49 |
-pkg_setup() { |
50 |
- kernel_is -ge 2 6 31 || \ |
51 |
- die "Sysprof will not work with a kernel version less than 2.6.31" |
52 |
-} |
53 |
- |
54 |
-src_install() { |
55 |
- make install DESTDIR="${D}" || die |
56 |
- dodoc AUTHORS ChangeLog NEWS README TODO |
57 |
- |
58 |
- # Insert icons in the proper place |
59 |
- for i in 16 24 32 48; do |
60 |
- insinto "/usr/share/icons/hicolor/${i}x${i}/apps" |
61 |
- newins "${S}/sysprof-icon-${i}.png" sysprof.png |
62 |
- rm "${D}/usr/share/pixmaps/sysprof-icon-${i}.png" || die "rm $i failed!" |
63 |
- done |
64 |
- newicon "${S}/sysprof-icon-48.png" sysprof.png |
65 |
- make_desktop_entry sysprof Sysprof sysprof |
66 |
-} |
67 |
- |
68 |
-pkg_postinst() { |
69 |
- einfo "On many systems, especially amd64, it is typical that with a modern" |
70 |
- einfo "toolchain -fomit-frame-pointer for gcc is the default, because" |
71 |
- einfo "debugging is still possible thanks to gcc4/gdb location list feature." |
72 |
- einfo "However sysprof is not able to construct call trees if frame pointers" |
73 |
- einfo "are not present. Therefore -fno-omit-frame-pointer CFLAGS is suggested" |
74 |
- einfo "for the libraries and applications involved in the profiling. That" |
75 |
- einfo "means a CPU register is used for the frame pointer instead of other" |
76 |
- einfo "purposes, which means a very minimal performance loss when there is" |
77 |
- einfo "register pressure." |
78 |
-} |
79 |
|
80 |
diff --git a/dev-util/sysprof/sysprof-1.1.6-r2.ebuild b/dev-util/sysprof/sysprof-1.1.6-r2.ebuild |
81 |
new file mode 100644 |
82 |
index 0000000..d1d2552 |
83 |
--- /dev/null |
84 |
+++ b/dev-util/sysprof/sysprof-1.1.6-r2.ebuild |
85 |
@@ -0,0 +1,60 @@ |
86 |
+# Copyright 1999-2011 Gentoo Foundation |
87 |
+# Distributed under the terms of the GNU General Public License v2 |
88 |
+# $Header: $ |
89 |
+ |
90 |
+EAPI="4" |
91 |
+ |
92 |
+inherit eutils linux-info |
93 |
+ |
94 |
+DESCRIPTION="System-wide Linux Profiler" |
95 |
+HOMEPAGE="http://www.daimi.au.dk/~sandmann/sysprof/" |
96 |
+SRC_URI="http://www.daimi.au.dk/~sandmann/${PN}/${P}.tar.gz" |
97 |
+ |
98 |
+LICENSE="GPL-2" |
99 |
+SLOT="0" |
100 |
+KEYWORDS="~amd64 ~x86" |
101 |
+IUSE="" |
102 |
+ |
103 |
+RDEPEND=">=dev-libs/glib-2.6:2 |
104 |
+ >=x11-libs/gtk+-2.6:2 |
105 |
+ x11-libs/pango |
106 |
+ >=gnome-base/libglade-2:2.0" |
107 |
+DEPEND="${RDEPEND} |
108 |
+ >=dev-util/pkgconfig-0.9" |
109 |
+ |
110 |
+DOCS="AUTHORS ChangeLog NEWS README TODO" |
111 |
+ |
112 |
+pkg_pretend() { |
113 |
+ kernel_is -ge 2 6 31 && return |
114 |
+ die "Sysprof will not work with a kernel version less than 2.6.31" |
115 |
+} |
116 |
+ |
117 |
+src_install() { |
118 |
+ default |
119 |
+ |
120 |
+ # Install udev rules in the proper place |
121 |
+ mkdir -p "${D}/lib/udev/rules.d" || die |
122 |
+ mv "${D}/etc/udev/rules.d/"* "${D}/lib/udev/rules.d/" || die |
123 |
+ rm -rf "${D}/etc/udev/rules.d/" |
124 |
+ |
125 |
+ # Insert icons in the proper place |
126 |
+ for i in 16 24 32 48; do |
127 |
+ insinto "/usr/share/icons/hicolor/${i}x${i}/apps" |
128 |
+ newins "${S}/sysprof-icon-${i}.png" sysprof.png |
129 |
+ rm "${D}/usr/share/pixmaps/sysprof-icon-${i}.png" || die "rm $i failed!" |
130 |
+ done |
131 |
+ newicon "${S}/sysprof-icon-48.png" sysprof.png |
132 |
+ make_desktop_entry sysprof Sysprof sysprof |
133 |
+} |
134 |
+ |
135 |
+pkg_postinst() { |
136 |
+ elog "On many systems, especially amd64, it is typical that with a modern" |
137 |
+ elog "toolchain -fomit-frame-pointer for gcc is the default, because" |
138 |
+ elog "debugging is still possible thanks to gcc4/gdb location list feature." |
139 |
+ elog "However sysprof is not able to construct call trees if frame pointers" |
140 |
+ elog "are not present. Therefore -fno-omit-frame-pointer CFLAGS is suggested" |
141 |
+ elog "for the libraries and applications involved in the profiling. That" |
142 |
+ elog "means a CPU register is used for the frame pointer instead of other" |
143 |
+ elog "purposes, which means a very minimal performance loss when there is" |
144 |
+ elog "register pressure." |
145 |
+} |
146 |
|
147 |
diff --git a/profiles/package.mask b/profiles/package.mask |
148 |
index 7203110..4571492 100644 |
149 |
--- a/profiles/package.mask |
150 |
+++ b/profiles/package.mask |
151 |
@@ -11,7 +11,3 @@ |
152 |
# we can't use this until everything that uses libgnome-media-profiles.so is |
153 |
# ported to gtk+:3 (this includes rhythmbox, at least) |
154 |
>=gnome-base/gnome-media-2.91 |
155 |
- |
156 |
-# Arun Raghavan <ford_prefect@g.o> (10 Sep 2010) |
157 |
-# Development version of sysprof. |
158 |
-=dev-util/sysprof-1.1* |