summaryrefslogtreecommitdiffstats
path: root/gentoo/dev-qt/tqtinterface/tqtinterface-9999.ebuild
blob: f0e131676f638747ab8f01fb2fe9617c401f695a (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
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI="5"
TRINITY_MODULE_TYPE="dependencies"
TRINITY_MODULE_NAME="${PN}"

inherit trinity-base

DESCRIPTION="Interface and abstraction library for Qt and Trinity"
HOMEPAGE="http://trinitydesktop.org/"

LICENSE="GPL-2"
KEYWORDS=
IUSE="-qt3 +tqt"
REQUIRED_USE="^^ ( qt3 tqt )"
SLOT="0"

DEPEND="qt3? ( >=dev-qt/qt-3.9999:3 )
	tqt? ( >=dev-qt/tqt-3.9999 )
	!!x11-libs/tqtinterface"
RDEPEND="${DEPEND}"

pkg_setup() {
	use qt3 && export QTDIR="/usr/qt/3"
	use tqt && export QTDIR="/usr/tqt3"
}

src_configure() {
	mycmakeargs=(
	    -DUSE_QT3=ON
		-DQT_PREFIX_DIR="$QTDIR"
	 )

	 cmake-utils_src_configure
}