blob: 16e1651498f8e52a33c9763460e9b23c393cb40f (
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=4
inherit perl-module qt4 cmake-utils git-2
DESCRIPTION="Source code sanity checker for KDE developers."
HOMEPAGE="http://www.kde.org/"
EGIT_REPO_URI="git://gitorious.org/krazy/krazy.git"
LICENSE="GPL-2"
KEYWORDS=""
SLOT="0"
IUSE="debug"
DEPEND="
>=dev-perl/HTML-Parser-2.20
>=dev-perl/Tie-IxHash-1.20
>=dev-perl/XML-LibXML-1.57
dev-perl/yaml
>=x11-libs/qt-gui-4.4:4
"
RDEPEND="${DEPEND}
dev-util/desktop-file-utils
"
CMAKE_USE_DIR="${S}/cppchecks"
src_prepare() {
sed -i -e 's/+= ordered/+= ordered nostrip/' \
src/src.pro || die "failed to apply nostrip"
sed -i "s:$TOP/lib:$TOP/$(get_libdir):" install.sh || die "sed failed"
sed -i "s:lib\$(LIBSUFFIX):$(get_libdir):" src/passbyvalue/passbyvalue.pro || die "sed failed"
base_src_prepare
}
src_configure() {
cmake-utils_src_configure
cd src
eqmake4 src.pro
}
src_compile() {
cmake-utils_src_compile
cd src
emake
}
src_install() {
dodoc README TODO
cmake-utils_src_install
cd src
emake install INSTALL_ROOT="${D}/usr"
cd ..
./install.sh "${D}/usr" || die "install failed"
}
|