summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2017-06-04 13:28:52 +0200
committerAndreas Sturmlechner <asturm@gentoo.org>2017-06-04 13:47:00 +0200
commit38eeeb04df26f447022d2b08ed2647a973bbdaf3 (patch)
tree901c118b72154709f954ed17c732a00acb661703
parentwww-client/phantomjs: Drop old (diff)
downloadgentoo-38eeeb04df26f447022d2b08ed2647a973bbdaf3.tar.gz
gentoo-38eeeb04df26f447022d2b08ed2647a973bbdaf3.tar.bz2
gentoo-38eeeb04df26f447022d2b08ed2647a973bbdaf3.zip
x11-libs/qtscriptgenerator: Disable webkit bindings, bump to EAPI 6
Gentoo-bug: 620760 Package-Manager: Portage-2.3.5, Repoman-2.3.1
-rw-r--r--x11-libs/qtscriptgenerator/qtscriptgenerator-0.2.0-r1.ebuild70
1 files changed, 70 insertions, 0 deletions
diff --git a/x11-libs/qtscriptgenerator/qtscriptgenerator-0.2.0-r1.ebuild b/x11-libs/qtscriptgenerator/qtscriptgenerator-0.2.0-r1.ebuild
new file mode 100644
index 00000000000..01b93997082
--- /dev/null
+++ b/x11-libs/qtscriptgenerator/qtscriptgenerator-0.2.0-r1.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit 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
+ dev-qt/qtscript:4
+ dev-qt/qtsql:4
+ dev-qt/qtsvg:4[accessibility]
+ dev-qt/qtxmlpatterns:4
+ !kde? ( || (
+ dev-qt/qtphonon:4
+ media-libs/phonon[qt4]
+ ) )
+ kde? ( media-libs/phonon[qt4] )
+"
+RDEPEND="${DEPEND}"
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ default
+
+ # 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"
+ sed -i "/qtscript_webkit/d" qtbindings/qtbindings.pro || die "sed failed"
+
+ use arm && eapply "${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/*
+}