You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
966 B
55 lines
966 B
8 years ago
|
# Copyright 1999-2016 Gentoo Foundation
|
||
10 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
9 years ago
|
# $Id$
|
||
10 years ago
|
|
||
|
EAPI=5
|
||
|
|
||
8 years ago
|
inherit toolchain-funcs qmake-utils
|
||
10 years ago
|
|
||
|
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"
|
||
8 years ago
|
IUSE="qt5"
|
||
10 years ago
|
|
||
|
RDEPEND="
|
||
8 years ago
|
qt5? (
|
||
|
dev-qt/qtcore:5
|
||
|
dev-qt/qtgui:5
|
||
|
dev-qt/qtwidgets:5
|
||
10 years ago
|
)"
|
||
|
DEPEND="${RDEPEND}"
|
||
|
|
||
|
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[@]}"
|
||
8 years ago
|
if use qt5 ; then
|
||
10 years ago
|
cd src/qt-gui
|
||
8 years ago
|
eqmake5
|
||
10 years ago
|
emake
|
||
|
fi
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
emake -f makefile "${myopts[@]}" install
|
||
8 years ago
|
use qt5 && emake -f makefile "${myopts[@]}" install-gui
|
||
10 years ago
|
}
|