You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/x11-libs/qt-demo/qt-demo-4.7.2.ebuild

57 lines
1.6 KiB

# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-libs/qt-demo/qt-demo-4.7.2.ebuild,v 1.7 2011/07/13 13:02:41 xarthisius Exp $
EAPI="3"
inherit qt4-build
DESCRIPTION="Demonstration module of the Qt toolkit"
SLOT="4"
KEYWORDS="amd64 ppc ppc64 x86"
IUSE="kde qt3support"
DEPEND="~x11-libs/qt-assistant-${PV}:${SLOT}[aqua=]
~x11-libs/qt-core-${PV}:${SLOT}[aqua=,qt3support=]
~x11-libs/qt-dbus-${PV}:${SLOT}[aqua=]
~x11-libs/qt-declarative-${PV}:${SLOT}[aqua=,webkit]
~x11-libs/qt-gui-${PV}:${SLOT}[aqua=,qt3support=]
~x11-libs/qt-multimedia-${PV}:${SLOT}[aqua=]
~x11-libs/qt-opengl-${PV}:${SLOT}[aqua=,qt3support=]
!kde? ( || ( ~x11-libs/qt-phonon-${PV}:${SLOT}[aqua=]
media-libs/phonon[aqua=] ) )
kde? ( media-libs/phonon[aqua=] )
~x11-libs/qt-script-${PV}:${SLOT}[aqua=]
~x11-libs/qt-sql-${PV}:${SLOT}[aqua=,qt3support=]
~x11-libs/qt-svg-${PV}:${SLOT}[aqua=]
~x11-libs/qt-test-${PV}:${SLOT}[aqua=]
~x11-libs/qt-webkit-${PV}:${SLOT}[aqua=]
~x11-libs/qt-xmlpatterns-${PV}:${SLOT}[aqua=]"
RDEPEND="${DEPEND}"
PATCHES=( "${FILESDIR}/${PN}-4.6-plugandpaint.patch" )
pkg_setup() {
QT4_TARGET_DIRECTORIES="demos
examples"
QT4_EXTRACT_DIRECTORIES="${QT4_TARGET_DIRECTORIES}
doc/src/images
src/
include/
tools/"
qt4-build_pkg_setup
}
src_configure() {
myconf="${myconf} $(qt_use qt3support)"
qt4-build_src_configure
}
src_install() {
insinto "${QTDOCDIR#${EPREFIX}}"/src
doins -r "${S}"/doc/src/images || die "Installing images failed."
qt4-build_src_install
}