blob: 9408cd205b735173a84555ebf57cc5643521ea78 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/valkyrie/valkyrie-1.2.0.ebuild,v 1.5 2007/12/15 13:35:43 flameeyes Exp $
inherit eutils qt3
DESCRIPTION="Graphical front-end to the Valgrind suite of tools"
HOMEPAGE="http://www.open-works.co.uk/projects/valkyrie.html"
SRC_URI="http://www.valgrind.org/downloads/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE="debug"
DEPEND="$(qt_min_version 3)"
RDEPEND="${DEPEND}
=dev-util/valgrind-3.2*"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}/${P}-warnings.patch"
}
src_compile() {
use debug || sed -i -e '/#define DEBUG_ON/ s:1:0:' \
"${S}/valkyrie/vk_utils.h"
econf \
--disable-dependency-tracking \
--with-Qt-dir="${QTDIR}" || die "econf failed"
# Use the right path for the documentation
sed -i -e '/VK_DOC_PATH/ s:/doc/:/share/doc/'${PF}'/html/:g' \
"${S}/config.h"
emake || die "emake failed"
}
src_install() {
emake DESTDIR="${D}" docdir="/usr/share/doc/${PF}/html" install
dodoc README README_DEVELOPERS AUTHORS
}
|