1 |
spock 09/08/02 22:57:48 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: oprofile-0.9.5.ebuild |
5 |
Log: |
6 |
Version bump. |
7 |
(Portage version: 2.2_rc33/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.59 dev-util/oprofile/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/oprofile/ChangeLog?rev=1.59&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/oprofile/ChangeLog?rev=1.59&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/oprofile/ChangeLog?r1=1.58&r2=1.59 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/dev-util/oprofile/ChangeLog,v |
19 |
retrieving revision 1.58 |
20 |
retrieving revision 1.59 |
21 |
diff -u -r1.58 -r1.59 |
22 |
--- ChangeLog 5 Jun 2009 22:23:27 -0000 1.58 |
23 |
+++ ChangeLog 2 Aug 2009 22:57:48 -0000 1.59 |
24 |
@@ -1,6 +1,12 @@ |
25 |
# ChangeLog for dev-util/oprofile |
26 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/dev-util/oprofile/ChangeLog,v 1.58 2009/06/05 22:23:27 spock Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/dev-util/oprofile/ChangeLog,v 1.59 2009/08/02 22:57:48 spock Exp $ |
29 |
+ |
30 |
+*oprofile-0.9.5 (02 Aug 2009) |
31 |
+ |
32 |
+ 02 Aug 2009; Michał Januszewski <spock@g.o> |
33 |
+ +oprofile-0.9.5.ebuild: |
34 |
+ Version bump (bug #279902). |
35 |
|
36 |
05 Jun 2009; Michał Januszewski <spock@g.o> oprofile-0.9.3.ebuild: |
37 |
Make oprofile 0.9.3 build with GCC 4.3.3. |
38 |
|
39 |
|
40 |
|
41 |
1.1 dev-util/oprofile/oprofile-0.9.5.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/oprofile/oprofile-0.9.5.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/oprofile/oprofile-0.9.5.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: oprofile-0.9.5.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2009 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/dev-util/oprofile/oprofile-0.9.5.ebuild,v 1.1 2009/08/02 22:57:48 spock Exp $ |
51 |
|
52 |
EAPI=1 |
53 |
|
54 |
inherit qt3 linux-info |
55 |
|
56 |
DESCRIPTION="A transparent low-overhead system-wide profiler" |
57 |
HOMEPAGE="http://oprofile.sourceforge.net" |
58 |
SRC_URI="mirror://sourceforge/oprofile/${P}.tar.gz" |
59 |
LICENSE="GPL-2" |
60 |
|
61 |
SLOT="0" |
62 |
KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86" |
63 |
IUSE="qt3" |
64 |
DEPEND=">=dev-libs/popt-1.7-r1 |
65 |
>=sys-devel/binutils-2.14.90.0.6-r3 |
66 |
>=sys-libs/glibc-2.3.2-r1 |
67 |
qt3? ( x11-libs/qt:3 )" |
68 |
|
69 |
pkg_setup() { |
70 |
linux-info_pkg_setup |
71 |
if ! linux_chkconfig_present OPROFILE; then |
72 |
elog "In order for oprofile to work, you need to configure your kernel" |
73 |
elog "with CONFIG_OPROFILE set to 'm' or 'y'." |
74 |
fi |
75 |
} |
76 |
|
77 |
src_compile() { |
78 |
local myconf="" |
79 |
|
80 |
if use qt3 |
81 |
then |
82 |
REALHOME="$HOME" |
83 |
mkdir -p "$T"/fakehome/.kde |
84 |
mkdir -p "$T"/fakehome/.qt |
85 |
export HOME="$T/fakehome" |
86 |
addwrite "${QTDIR}/etc/settings" |
87 |
|
88 |
# things that should access the real homedir |
89 |
[ -d "$REALHOME/.ccache" ] && ln -sf "$REALHOME/.ccache" "$HOME/" |
90 |
else |
91 |
myconf="${myconf} --with-qt-dir=/void" |
92 |
fi |
93 |
|
94 |
myconf="${myconf} --with-x" |
95 |
|
96 |
case ${KV_FULL} in |
97 |
2.2.*|2.4.*) myconf="${myconf} --with-linux=${KV_DIR}";; |
98 |
2.5.*|2.6.*) myconf="${myconf} --with-kernel-support";; |
99 |
*) die "Kernel version '${KV_FULL}' not supported";; |
100 |
esac |
101 |
econf ${myconf} || die "econf failed" |
102 |
|
103 |
local mymake="" |
104 |
|
105 |
sed -i -e "s,depmod -a,:,g" Makefile |
106 |
emake ${mymake} || die "emake failed" |
107 |
} |
108 |
|
109 |
src_install() { |
110 |
local myinst="" |
111 |
|
112 |
myinst="${myinst} MODINSTALLDIR=${D}/lib/modules/${KV_FULL}" |
113 |
make DESTDIR="${D}" ${myinst} htmldir="/usr/share/doc/${PF}" install || die "make install failed" |
114 |
|
115 |
dodoc ChangeLog* README TODO |
116 |
} |
117 |
|
118 |
pkg_postinst() { |
119 |
if [[ ${ROOT} == / ]] ; then |
120 |
[[ -x /sbin/update-modules ]] && /sbin/update-modules || /sbin/modules-update |
121 |
fi |
122 |
|
123 |
echo |
124 |
elog "Now load the oprofile module by running:" |
125 |
elog " # opcontrol --init" |
126 |
elog "Then read manpages and this html doc:" |
127 |
elog " /usr/share/doc/${PF}/oprofile.html" |
128 |
echo |
129 |
} |