Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 342075 | Differences between
and this patch

Collapse All | Expand All

(-)oprofile-0.9.6.ebuild (-13 / +26 lines)
Lines 2-9 Link Here
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/dev-util/oprofile/oprofile-0.9.6.ebuild,v 1.6 2010/07/18 18:46:07 armin76 Exp $
3
# $Header: /var/cvsroot/gentoo-x86/dev-util/oprofile/oprofile-0.9.6.ebuild,v 1.6 2010/07/18 18:46:07 armin76 Exp $
4
4
5
EAPI=1
5
EAPI=2
6
inherit linux-info
6
inherit linux-info autotools 
7
7
8
DESCRIPTION="A transparent low-overhead system-wide profiler"
8
DESCRIPTION="A transparent low-overhead system-wide profiler"
9
HOMEPAGE="http://oprofile.sourceforge.net"
9
HOMEPAGE="http://oprofile.sourceforge.net"
Lines 11-22 Link Here
11
11
12
LICENSE="GPL-2"
12
LICENSE="GPL-2"
13
SLOT="0"
13
SLOT="0"
14
KEYWORDS="amd64 ~arm hppa ppc ~ppc64 ~sparc x86"
14
KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86"
15
IUSE=""
15
IUSE="qt4"
16
16
17
DEPEND=">=dev-libs/popt-1.7-r1
17
RDEPEND="qt4? ( x11-libs/qt-gui[qt3support] )"
18
19
DEPEND="${RDEPEND}
20
	>=dev-libs/popt-1.7-r1
18
	>=sys-devel/binutils-2.14.90.0.6-r3
21
	>=sys-devel/binutils-2.14.90.0.6-r3
19
	>=sys-libs/glibc-2.3.2-r1"
22
	>=sys-libs/glibc-2.3.2-r1
23
	"
20
24
21
pkg_setup() {
25
pkg_setup() {
22
	linux-info_pkg_setup
26
	linux-info_pkg_setup
Lines 24-47 Link Here
24
		elog "In order for oprofile to work, you need to configure your kernel"
28
		elog "In order for oprofile to work, you need to configure your kernel"
25
		elog "with CONFIG_OPROFILE set to 'm' or 'y'."
29
		elog "with CONFIG_OPROFILE set to 'm' or 'y'."
26
	fi
30
	fi
31
		
32
}
33
34
src_prepare() {
35
        # don't patch if qt4 is not used 
36
	if use qt4 ; then 
37
	   epatch "${FILESDIR}/oprofile-0.9.6-qt4qt3support.patch"
38
	   touch INSTALL NEWS AUTHORS 
39
	   eautoreconf
40
	fi
27
}
41
}
28
42
29
src_compile() {
43
src_configure() {
30
	local myconf="--with-qt-dir=/void --with-x"
44
	      
45
	local myconf
31
46
32
	case ${KV_FULL} in
47
	case ${KV_FULL} in
33
	2.2.*|2.4.*) myconf="${myconf} --with-linux=${KV_DIR}";;
48
	2.2.*|2.4.*) myconf="${myconf} --with-linux=${KV_DIR}";;
34
	2.5.*|2.6.*) myconf="${myconf} --with-kernel-support";;
49
	2.5.*|2.6.*) myconf="${myconf} --with-kernel-support";;
35
	*) die "Kernel version '${KV_FULL}' not supported";;
50
	*) die "Kernel version '${KV_FULL}' not supported";;
36
	esac
51
	esac
52
	myconf="${myconf} $(use_enable qt4)"
53
	echo "${myconf}"
37
	econf ${myconf} || die
54
	econf ${myconf} || die
38
39
	local mymake=""
40
41
	sed -i -e "s,depmod -a,:,g" Makefile
42
	emake ${mymake} || die
43
}
55
}
44
56
57
45
src_install() {
58
src_install() {
46
	local myinst=""
59
	local myinst=""
47
60

Return to bug 342075