blob: 5d236ed283edf8f4775acd21a1a25ba83cbb40d3 (
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
68
|
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=4
inherit eutils qmake-utils
MY_P=${PN}-src-${PV}
DESCRIPTION="Tool for generating Qt bindings for Qt Script"
HOMEPAGE="https://code.google.com/p/qtscriptgenerator/"
SRC_URI="https://dev.gentoo.org/~johu/distfiles/${MY_P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ~arm ppc ~ppc64 x86"
IUSE="debug kde"
DEPEND="
dev-qt/designer:4
dev-qt/qtcore:4
dev-qt/qtgui:4[accessibility]
dev-qt/qtopengl:4
!kde? ( || (
dev-qt/qtphonon:4
media-libs/phonon[qt4]
) )
kde? ( media-libs/phonon[qt4] )
dev-qt/qtscript:4
dev-qt/qtsql:4
dev-qt/qtsvg:4[accessibility]
dev-qt/qtwebkit:4
dev-qt/qtxmlpatterns:4
"
RDEPEND="${DEPEND}"
S=${WORKDIR}/${MY_P}
src_prepare() {
# remove phonon
sed -i "/typesystem_phonon.xml/d" generator/generator.qrc || die "sed failed"
sed -i "/qtscript_phonon/d" qtbindings/qtbindings.pro || die "sed failed"
use arm && epatch "${FILESDIR}"/${P}-arm.patch
}
src_configure() {
cd "${S}"/generator || die
eqmake4 generator.pro
cd "${S}"/qtbindings || die
eqmake4 qtbindings.pro
}
src_compile() {
cd "${S}"/generator || die
emake
./generator --include-paths="$(qt4_get_headerdir)" || die
cd "${S}"/qtbindings || die
emake
}
src_install() {
insinto "$(qt4_get_libdir)"/plugins/script
insopts -m0755
doins "${S}"/plugins/script/*
}
|