| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/x11-libs/qt-declarative/qt-declarative-4.8.1.ebuild,v 1.7 2012/07/09 14:25:13 armin76 Exp $
|
| 4 |
|
| 5 |
EAPI=4
|
| 6 |
|
| 7 |
inherit qt4-build
|
| 8 |
|
| 9 |
DESCRIPTION="The Declarative module for the Qt toolkit"
|
| 10 |
SLOT="4"
|
| 11 |
KEYWORDS="alpha amd64 arm ia64 ~ppc ~ppc64 sparc x86 ~amd64-fbsd ~amd64-linux ~x86-linux ~ppc-macos"
|
| 12 |
IUSE="+accessibility qt3support webkit"
|
| 13 |
|
| 14 |
DEPEND="
|
| 15 |
~x11-libs/qt-core-${PV}[aqua=,c++0x=,debug=,qpa=,qt3support=]
|
| 16 |
~x11-libs/qt-gui-${PV}[accessibility=,aqua=,c++0x=,debug=,qpa=,qt3support=]
|
| 17 |
~x11-libs/qt-opengl-${PV}[aqua=,c++0x=,debug=,qpa=,qt3support=]
|
| 18 |
~x11-libs/qt-script-${PV}[aqua=,c++0x=,debug=,qpa=]
|
| 19 |
~x11-libs/qt-sql-${PV}[aqua=,c++0x=,debug=,qpa=,qt3support=]
|
| 20 |
~x11-libs/qt-svg-${PV}[accessibility=,aqua=,c++0x=,debug=,qpa=]
|
| 21 |
~x11-libs/qt-xmlpatterns-${PV}[aqua=,c++0x=,debug=,qpa=]
|
| 22 |
qt3support? ( ~x11-libs/qt-qt3support-${PV}[accessibility=,aqua=,c++0x=,debug=,qpa=] )
|
| 23 |
webkit? ( ~x11-libs/qt-webkit-${PV}[aqua=,debug=,qpa=] )
|
| 24 |
"
|
| 25 |
RDEPEND="${DEPEND}"
|
| 26 |
|
| 27 |
pkg_setup() {
|
| 28 |
QT4_TARGET_DIRECTORIES="
|
| 29 |
src/declarative
|
| 30 |
src/imports
|
| 31 |
tools/designer/src/plugins/qdeclarativeview
|
| 32 |
tools/qml
|
| 33 |
tools/qmlplugindump"
|
| 34 |
|
| 35 |
if use webkit; then
|
| 36 |
QT4_TARGET_DIRECTORIES+=" src/3rdparty/webkit/Source/WebKit/qt/declarative"
|
| 37 |
fi
|
| 38 |
|
| 39 |
QT4_EXTRACT_DIRECTORIES="
|
| 40 |
include
|
| 41 |
src
|
| 42 |
tools
|
| 43 |
translations"
|
| 44 |
|
| 45 |
QCONFIG_ADD="declarative"
|
| 46 |
QCONFIG_DEFINE="QT_DECLARATIVE"
|
| 47 |
|
| 48 |
qt4-build_pkg_setup
|
| 49 |
}
|
| 50 |
|
| 51 |
src_configure() {
|
| 52 |
myconf+="
|
| 53 |
-declarative -no-gtkstyle
|
| 54 |
$(qt_use accessibility)
|
| 55 |
$(qt_use qt3support)
|
| 56 |
$(qt_use webkit)"
|
| 57 |
qt4-build_src_configure
|
| 58 |
}
|
| 59 |
|
| 60 |
src_install() {
|
| 61 |
qt4-build_src_install
|
| 62 |
|
| 63 |
# install private headers
|
| 64 |
if use aqua && [[ ${CHOST##*-darwin} -ge 9 ]]; then
|
| 65 |
insinto "${QTLIBDIR#${EPREFIX}}"/QtDeclarative.framework/Headers/private
|
| 66 |
# ran for the 2nd time, need it for the updated headers
|
| 67 |
fix_includes
|
| 68 |
else
|
| 69 |
insinto "${QTHEADERDIR#${EPREFIX}}"/QtDeclarative/private
|
| 70 |
fi
|
| 71 |
find "${S}"/src/declarative/ -type f -name "*_p.h" -exec doins {} +
|
| 72 |
}
|