aboutsummaryrefslogtreecommitdiff
blob: de3a4a92b541fea435a3614d8b66ec051701e048 (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
65
66
67
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="2"

inherit multilib git qt4

DESCRIPTION="Tool for generating Qt bindings for Qt Script"
HOMEPAGE="http://code.google.com/p/qtscriptgenerator/"
EGIT_REPO_URI="git://labs.trolltech.com/qtscriptgenerator"

LICENSE="GPL-2"
KEYWORDS=""
SLOT="0"
IUSE="debug"

DEPEND="
	x11-libs/qt-dbus:4
	x11-libs/qt-gui:4
	x11-libs/qt-opengl:4
	|| (
		x11-libs/qt-phonon:4
		media-sound/phonon
	)
	x11-libs/qt-script:4
	x11-libs/qt-sql:4
	x11-libs/qt-svg:4
	x11-libs/qt-xmlpatterns:4
"
RDEPEND="${DEPEND}"

PATCHES=(
	"${FILESDIR}/disable_phonon.patch"
)

PLUGINS="core gui network opengl sql svg uitools webkit xml xmlpatterns"

src_unpack() {
	git_src_unpack
}

pkg_setup(){
	QTDIR="/usr/include/qt4"
	QTLIBDIR="/usr/$(get_libdir)/qt4/"
}

src_configure() {
	cd "${S}"/generator
	eqmake4 generator.pro
	cd "${S}"/qtbindings
	eqmake4 qtbindings.pro
}

src_compile() {
	cd "${S}"/generator
	emake || die "emake generator failed"
	./generator --include-paths="/usr/include/qt4/" || die "running generator failed"
	cd "${S}"/qtbindings
	make || die "make qtbindings failed" # TODO: fix emake
}

src_install() {
	insinto "${QTLIBDIR}"/plugins/script/
	insopts -m0755
	doins -r "${S}"/plugins/script/*.so || die "doins failed"
}