/[gentoo-x86]/x11-libs/qt-demo/qt-demo-4.8.4.ebuild
Gentoo

Contents of /x11-libs/qt-demo/qt-demo-4.8.4.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (hide annotations) (download)
Sat Mar 2 21:34:22 2013 UTC (21 months, 2 weeks ago) by pesa
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
Moving x11-libs/qt-* to dev-qt/

1 yngwin 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 pesa 1.6 # $Header: /var/cvsroot/gentoo-x86/x11-libs/qt-demo/qt-demo-4.8.4.ebuild,v 1.5 2012/12/25 09:53:14 ago Exp $
4 yngwin 1.1
5     EAPI=4
6    
7     inherit qt4-build
8    
9     DESCRIPTION="Demonstration module and examples for the Qt toolkit"
10     SLOT="4"
11     if [[ ${QT4_BUILD_TYPE} == live ]]; then
12     KEYWORDS=""
13     else
14 ago 1.5 KEYWORDS="amd64 ppc ppc64 x86 ~x64-macos"
15 yngwin 1.1 fi
16     IUSE="dbus declarative kde multimedia opengl openvg qt3support webkit xmlpatterns"
17    
18     DEPEND="
19     ~x11-libs/qt-assistant-${PV}:4[aqua=,debug=]
20     ~x11-libs/qt-core-${PV}:4[aqua=,debug=,qt3support?]
21     ~x11-libs/qt-gui-${PV}:4[aqua=,debug=,qt3support?]
22     ~x11-libs/qt-script-${PV}:4[aqua=,debug=]
23     ~x11-libs/qt-sql-${PV}:4[aqua=,debug=,qt3support?]
24     ~x11-libs/qt-svg-${PV}:4[aqua=,debug=]
25     ~x11-libs/qt-test-${PV}:4[aqua=,debug=]
26     dbus? ( ~x11-libs/qt-dbus-${PV}:4[aqua=,debug=] )
27     declarative? ( ~x11-libs/qt-declarative-${PV}:4[aqua=,debug=,webkit?] )
28     kde? ( media-libs/phonon[aqua=] )
29     !kde? ( || (
30     ~x11-libs/qt-phonon-${PV}:4[aqua=,debug=]
31     media-libs/phonon[aqua=]
32     ) )
33     multimedia? ( ~x11-libs/qt-multimedia-${PV}:4[aqua=,debug=] )
34     opengl? ( ~x11-libs/qt-opengl-${PV}:4[aqua=,debug=,qt3support?] )
35     openvg? ( ~x11-libs/qt-openvg-${PV}:4[aqua=,debug=,qt3support?] )
36     qt3support? ( ~x11-libs/qt-qt3support-${PV}:4[aqua=,debug=] )
37     webkit? ( ~x11-libs/qt-webkit-${PV}:4[aqua=,debug=] )
38     xmlpatterns? ( ~x11-libs/qt-xmlpatterns-${PV}:4[aqua=,debug=] )
39     "
40     RDEPEND="${DEPEND}"
41    
42     PATCHES=(
43     "${FILESDIR}/${PN}-4.6-plugandpaint.patch"
44     )
45    
46     pkg_setup() {
47     QT4_TARGET_DIRECTORIES="
48     demos
49     examples"
50     QT4_EXTRACT_DIRECTORIES="${QT4_TARGET_DIRECTORIES}
51     doc/src/images
52     src
53     include
54     tools"
55    
56     qt4-build_pkg_setup
57     }
58    
59     src_prepare() {
60     qt4-build_src_prepare
61    
62     # Array mapping USE flags to subdirs
63     local flags_subdirs_map=(
64     'dbus'
65     'declarative:declarative'
66     'multimedia:spectrum'
67     'opengl:boxes|glhypnotizer'
68     'openvg'
69     'webkit:browser'
70     'xmlpatterns'
71     )
72    
73     # Disable unwanted examples/demos
74     for flag in "${flags_subdirs_map[@]}"; do
75     if ! use ${flag%:*}; then
76     einfo "Disabling ${flag%:*} examples"
77     sed -i -e "/SUBDIRS += ${flag%:*}/d" \
78     examples/examples.pro || die
79    
80     if [[ ${flag} == *:* ]]; then
81     einfo "Disabling ${flag%:*} demos"
82     sed -i -re "/SUBDIRS \+= demos_(${flag#*:})/d" \
83     demos/demos.pro || die
84     fi
85     fi
86     done
87    
88     if ! use qt3support; then
89     einfo "Disabling qt3support examples"
90     sed -i -e '/QT_CONFIG, qt3support/d' \
91     examples/graphicsview/graphicsview.pro || die
92     fi
93     }
94    
95     src_configure() {
96     myconf+="
97     $(qt_use dbus)
98     $(qt_use declarative)
99     $(qt_use multimedia)
100     $(qt_use opengl)
101     $(qt_use openvg)
102     $(qt_use qt3support)
103     $(qt_use webkit)
104     $(qt_use xmlpatterns)"
105    
106     qt4-build_src_configure
107     }
108    
109     src_install() {
110     insinto "${QTDOCDIR#${EPREFIX}}"/src
111     doins -r doc/src/images
112    
113     qt4-build_src_install
114     }

  ViewVC Help
Powered by ViewVC 1.1.20