| 1 |
pesa |
1.1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
|
|
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
pesa |
1.2 |
# $Header: /var/cvsroot/gentoo-x86/x11-libs/qt-demo/qt-demo-4.8.1.ebuild,v 1.1 2012/03/29 22:11:13 pesa Exp $
|
| 4 |
pesa |
1.1 |
|
| 5 |
|
|
EAPI=4
|
| 6 |
|
|
|
| 7 |
|
|
inherit qt4-build
|
| 8 |
|
|
|
| 9 |
|
|
DESCRIPTION="Demonstration module of the Qt toolkit"
|
| 10 |
|
|
SLOT="4"
|
| 11 |
|
|
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
|
| 12 |
|
|
IUSE="kde qt3support"
|
| 13 |
|
|
|
| 14 |
|
|
DEPEND="
|
| 15 |
|
|
~x11-libs/qt-assistant-${PV}:${SLOT}[aqua=,c++0x=,qpa=,debug=]
|
| 16 |
|
|
~x11-libs/qt-core-${PV}:${SLOT}[aqua=,c++0x=,qpa=,debug=,qt3support=]
|
| 17 |
|
|
~x11-libs/qt-dbus-${PV}:${SLOT}[aqua=,c++0x=,qpa=,debug=]
|
| 18 |
|
|
~x11-libs/qt-declarative-${PV}:${SLOT}[aqua=,c++0x=,qpa=,debug=,webkit]
|
| 19 |
|
|
~x11-libs/qt-gui-${PV}:${SLOT}[aqua=,c++0x=,qpa=,debug=,qt3support=]
|
| 20 |
|
|
~x11-libs/qt-multimedia-${PV}:${SLOT}[aqua=,c++0x=,qpa=,debug=]
|
| 21 |
|
|
~x11-libs/qt-opengl-${PV}:${SLOT}[aqua=,c++0x=,qpa=,debug=,qt3support=]
|
| 22 |
|
|
kde? ( media-libs/phonon[aqua=] )
|
| 23 |
|
|
!kde? ( || (
|
| 24 |
|
|
~x11-libs/qt-phonon-${PV}:${SLOT}[aqua=,c++0x=,qpa=,debug=]
|
| 25 |
|
|
media-libs/phonon[aqua=]
|
| 26 |
|
|
) )
|
| 27 |
|
|
~x11-libs/qt-script-${PV}:${SLOT}[aqua=,c++0x=,qpa=,debug=]
|
| 28 |
|
|
~x11-libs/qt-sql-${PV}:${SLOT}[aqua=,c++0x=,qpa=,debug=,qt3support=]
|
| 29 |
|
|
~x11-libs/qt-svg-${PV}:${SLOT}[aqua=,c++0x=,qpa=,debug=]
|
| 30 |
|
|
~x11-libs/qt-test-${PV}:${SLOT}[aqua=,c++0x=,qpa=,debug=]
|
| 31 |
|
|
~x11-libs/qt-webkit-${PV}:${SLOT}[aqua=,c++0x=,qpa=,debug=]
|
| 32 |
|
|
~x11-libs/qt-xmlpatterns-${PV}:${SLOT}[aqua=,c++0x=,qpa=,debug=]
|
| 33 |
|
|
"
|
| 34 |
|
|
RDEPEND="${DEPEND}"
|
| 35 |
|
|
|
| 36 |
|
|
PATCHES=(
|
| 37 |
|
|
"${FILESDIR}/${PN}-4.6-plugandpaint.patch"
|
| 38 |
|
|
)
|
| 39 |
|
|
|
| 40 |
|
|
pkg_setup() {
|
| 41 |
|
|
QT4_TARGET_DIRECTORIES="
|
| 42 |
|
|
demos
|
| 43 |
|
|
examples"
|
| 44 |
|
|
QT4_EXTRACT_DIRECTORIES="${QT4_TARGET_DIRECTORIES}
|
| 45 |
|
|
doc/src/images
|
| 46 |
|
|
src
|
| 47 |
|
|
include
|
| 48 |
|
|
tools"
|
| 49 |
|
|
|
| 50 |
|
|
qt4-build_pkg_setup
|
| 51 |
|
|
}
|
| 52 |
|
|
|
| 53 |
|
|
src_configure() {
|
| 54 |
|
|
myconf="${myconf} $(qt_use qt3support)"
|
| 55 |
|
|
qt4-build_src_configure
|
| 56 |
|
|
}
|
| 57 |
|
|
|
| 58 |
|
|
src_install() {
|
| 59 |
|
|
insinto "${QTDOCDIR#${EPREFIX}}"/src
|
| 60 |
|
|
doins -r "${S}"/doc/src/images
|
| 61 |
|
|
|
| 62 |
|
|
qt4-build_src_install
|
| 63 |
|
|
}
|