Gentoo Archives: gentoo-commits

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