diff options
Diffstat (limited to 'x11-libs/qt-declarative/qt-declarative-4.6.0.ebuild')
-rw-r--r-- | x11-libs/qt-declarative/qt-declarative-4.6.0.ebuild | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/x11-libs/qt-declarative/qt-declarative-4.6.0.ebuild b/x11-libs/qt-declarative/qt-declarative-4.6.0.ebuild new file mode 100644 index 000000000000..c98ccc0292b4 --- /dev/null +++ b/x11-libs/qt-declarative/qt-declarative-4.6.0.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/x11-libs/qt-declarative/qt-declarative-4.6.0.ebuild,v 1.1 2009/12/26 20:49:17 ayoy Exp $ + +EAPI="2" + +inherit qt4-r2 + +MY_P="qt-${PV}${PN#qt}" + +DESCRIPTION="The Declarative module for the Qt toolkit" +HOMEPAGE="http://qt.nokia.com" +SRC_URI="http://get.qt.nokia.com/qml/${MY_P}.tar.gz" + +LICENSE="|| ( LGPL-2.1 GPL-3 )" +SLOT="4" +KEYWORDS="~amd64 ~x86" +IUSE="debug demos examples" + +DEPEND="~x11-libs/qt-core-${PV} + ~x11-libs/qt-gui-${PV} + ~x11-libs/qt-script-${PV} + ~x11-libs/qt-sql-${PV} + ~x11-libs/qt-webkit-${PV} + ~x11-libs/qt-xmlpatterns-${PV}" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/${MY_P}" + +src_prepare() { + # help qmlviewer and qmldebugger find the freshly compiled Declarative module + echo "LIBS += -L\"${S}/src/declarative/.obj\"" \ + >> "${S}/tools/qmlviewer/qmlviewer.pro" \ + || die "fixing LDFLAGS failed" +} + +src_configure() { + eqmake4 src/declarative/declarative.pro -o src/declarative/Makefile + + # running "eqmake4 tools/qmlviewer/qmlviewer.pro" + # fails with some relative paths not being found + # so we have to cd + cd "${S}/tools/qmlviewer" + eqmake4 +} + +src_compile() { + emake -C src/declarative || die "compiling declarative module failed" + emake -C tools/qmlviewer || die "compiling qmlviewer failed" +} + +src_install() { + emake INSTALL_ROOT="${D}" -C src/declarative install \ + || die "installing declarative module failed" + + emake INSTALL_ROOT="${D}" -C tools/qmlviewer install \ + || die "installing qmlviewer failed" + + dodoc README.html || die "dodoc failed" + + for feature in demos examples; do + if use ${feature}; then + insinto "/usr/share/${PN}/${feature}" + doins -r "${feature}/declarative" || die "installing ${feature} failed" + fi + done +} |