# Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/x11-libs/qtscriptgenerator/qtscriptgenerator-0.2.0.ebuild,v 1.7 2013/03/17 09:41:32 pinkbyte Exp $ EAPI=4 MY_PN="${PN}-src" MY_P="${MY_PN}-${PV}" inherit eutils multilib qt4-r2 DESCRIPTION="Tool for generating Qt bindings for Qt Script" HOMEPAGE="http://code.google.com/p/qtscriptgenerator/" SRC_URI="http://qtscriptgenerator.googlecode.com/files/${MY_P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="amd64 ~arm ppc ~ppc64 x86" IUSE="debug kde" DEPEND=" dev-qt/qtcore:4 dev-qt/qtgui:4 dev-qt/qtopengl:4 !kde? ( || ( dev-qt/qtphonon:4 media-libs/phonon ) ) kde? ( media-libs/phonon ) dev-qt/qtscript:4 dev-qt/qtsql:4 dev-qt/qtsvg:4 dev-qt/qtwebkit:4 dev-qt/qtxmlpatterns:4 " RDEPEND="${DEPEND}" PLUGINS="core gui network opengl sql svg uitools webkit xml xmlpatterns" 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 qt4-r2_src_prepare } src_configure() { cd "${S}"/generator eqmake4 generator.pro cd "${S}"/qtbindings eqmake4 qtbindings.pro } src_compile() { cd "${S}"/generator emake ./generator --include-paths="/usr/include/qt4/" || die "running generator failed" cd "${S}"/qtbindings emake } src_install() { insinto /usr/$(get_libdir)/qt4/plugins/script/ insopts -m0755 doins -r "${S}"/plugins/script/* }