blob: 36ccf1b66ee2a44bc3bb1dc781c6e1fc10efad9a (
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
|
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=4
inherit toolchain-funcs qt4-r2
DESCRIPTION="Handles text files containing ANSI terminal escape codes"
HOMEPAGE="http://www.andre-simon.de/"
SRC_URI="http://www.andre-simon.de/zip/${P}.tar.bz2"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="qt4"
RDEPEND="
qt4? (
dev-qt/qtcore:4
dev-qt/qtgui:4
)"
DEPEND="${RDEPEND}"
S=${WORKDIR}/${PN}
pkg_setup() {
myopts=(
"CC=$(tc-getCXX)"
"CFLAGS=${CFLAGS} -c"
"LDFLAGS=${LDFLAGS}"
"DESTDIR=${ED}"
"PREFIX=${EPREFIX}/usr"
"doc_dir=${EPREFIX}/usr/share/doc/${PF}/"
)
}
src_prepare() {
# bug 431452
rm src/qt-gui/moc_mydialog.cpp || die
}
src_compile() {
emake -f makefile "${myopts[@]}"
if use qt4 ; then
cd src/qt-gui
eqmake4
emake
fi
}
src_install() {
emake -f makefile "${myopts[@]}" install
use qt4 && emake -f makefile "${myopts[@]}" install-gui
}
|