1 |
pesa 12/04/01 15:42:58 |
2 |
|
3 |
Modified: metadata.xml ChangeLog |
4 |
Added: qt-demo-4.8.1-r1.ebuild |
5 |
Removed: qt-demo-4.8.1.ebuild |
6 |
Log: |
7 |
Introduce some USE flags to control building of various examples and demos, fixing also bug 410309. |
8 |
|
9 |
(Portage version: 2.2.0_alpha97/cvs/Linux x86_64) |
10 |
|
11 |
Revision Changes Path |
12 |
1.5 x11-libs/qt-demo/metadata.xml |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/qt-demo/metadata.xml?rev=1.5&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/qt-demo/metadata.xml?rev=1.5&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/qt-demo/metadata.xml?r1=1.4&r2=1.5 |
17 |
|
18 |
Index: metadata.xml |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/x11-libs/qt-demo/metadata.xml,v |
21 |
retrieving revision 1.4 |
22 |
retrieving revision 1.5 |
23 |
diff -u -r1.4 -r1.5 |
24 |
--- metadata.xml 29 Jan 2012 17:02:04 -0000 1.4 |
25 |
+++ metadata.xml 1 Apr 2012 15:42:58 -0000 1.5 |
26 |
@@ -3,11 +3,17 @@ |
27 |
<pkgmetadata> |
28 |
<herd>qt</herd> |
29 |
<use> |
30 |
+ <flag name='c++0x'>Build Qt using the C++11 standard</flag> |
31 |
+ <flag name='dbus'>Build QtDBus examples and demos</flag> |
32 |
+ <flag name='declarative'>Build QtDeclarative examples and demos</flag> |
33 |
<flag name='exceptions'>Add support for exceptions - like catching them |
34 |
inside the event loop (recommended by Nokia)</flag> |
35 |
- <flag name='qt3support'>Enable the Qt3Support libraries for Qt4. Note that |
36 |
- this does not mean you can compile pure Qt3 programs with Qt4.</flag> |
37 |
- <flag name='c++0x'>Build Qt using the C++11 standard</flag> |
38 |
+ <flag name='multimedia'>Build QtMultimedia examples and demos</flag> |
39 |
+ <flag name='opengl'>Build QtOpenGL examples and demos</flag> |
40 |
+ <flag name='openvg'>Build QtOpenVG examples and demos</flag> |
41 |
<flag name='qpa'>Build a window system agnostic implementation of Qt</flag> |
42 |
+ <flag name='qt3support'>Build Qt3Support examples and demos</flag> |
43 |
+ <flag name='webkit'>Build QtWebKit examples and demos</flag> |
44 |
+ <flag name='xmlpatterns'>Build QtXmlPatterns examples and demos</flag> |
45 |
</use> |
46 |
</pkgmetadata> |
47 |
|
48 |
|
49 |
|
50 |
1.83 x11-libs/qt-demo/ChangeLog |
51 |
|
52 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/qt-demo/ChangeLog?rev=1.83&view=markup |
53 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/qt-demo/ChangeLog?rev=1.83&content-type=text/plain |
54 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/qt-demo/ChangeLog?r1=1.82&r2=1.83 |
55 |
|
56 |
Index: ChangeLog |
57 |
=================================================================== |
58 |
RCS file: /var/cvsroot/gentoo-x86/x11-libs/qt-demo/ChangeLog,v |
59 |
retrieving revision 1.82 |
60 |
retrieving revision 1.83 |
61 |
diff -u -r1.82 -r1.83 |
62 |
--- ChangeLog 29 Mar 2012 22:11:13 -0000 1.82 |
63 |
+++ ChangeLog 1 Apr 2012 15:42:58 -0000 1.83 |
64 |
@@ -1,6 +1,13 @@ |
65 |
# ChangeLog for x11-libs/qt-demo |
66 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
67 |
-# $Header: /var/cvsroot/gentoo-x86/x11-libs/qt-demo/ChangeLog,v 1.82 2012/03/29 22:11:13 pesa Exp $ |
68 |
+# $Header: /var/cvsroot/gentoo-x86/x11-libs/qt-demo/ChangeLog,v 1.83 2012/04/01 15:42:58 pesa Exp $ |
69 |
+ |
70 |
+*qt-demo-4.8.1-r1 (01 Apr 2012) |
71 |
+ |
72 |
+ 01 Apr 2012; Davide Pesavento <pesa@g.o> +qt-demo-4.8.1-r1.ebuild, |
73 |
+ -qt-demo-4.8.1.ebuild, metadata.xml: |
74 |
+ Introduce some USE flags to control building of various examples and demos, |
75 |
+ fixing also bug 410309. |
76 |
|
77 |
*qt-demo-4.8.1 (29 Mar 2012) |
78 |
|
79 |
|
80 |
|
81 |
|
82 |
1.1 x11-libs/qt-demo/qt-demo-4.8.1-r1.ebuild |
83 |
|
84 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/qt-demo/qt-demo-4.8.1-r1.ebuild?rev=1.1&view=markup |
85 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/qt-demo/qt-demo-4.8.1-r1.ebuild?rev=1.1&content-type=text/plain |
86 |
|
87 |
Index: qt-demo-4.8.1-r1.ebuild |
88 |
=================================================================== |
89 |
# Copyright 1999-2012 Gentoo Foundation |
90 |
# Distributed under the terms of the GNU General Public License v2 |
91 |
# $Header: /var/cvsroot/gentoo-x86/x11-libs/qt-demo/qt-demo-4.8.1-r1.ebuild,v 1.1 2012/04/01 15:42:58 pesa Exp $ |
92 |
|
93 |
EAPI=4 |
94 |
|
95 |
inherit qt4-build |
96 |
|
97 |
DESCRIPTION="Demonstration module of the Qt toolkit" |
98 |
SLOT="4" |
99 |
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" |
100 |
IUSE="dbus declarative kde multimedia opengl openvg qt3support webkit xmlpatterns" |
101 |
|
102 |
DEPEND=" |
103 |
~x11-libs/qt-core-${PV}:4[aqua=,c++0x=,debug=,qpa=,qt3support?] |
104 |
dbus? ( ~x11-libs/qt-dbus-${PV}:4[aqua=,c++0x=,debug=,qpa=] ) |
105 |
declarative? ( ~x11-libs/qt-declarative-${PV}:4[aqua=,c++0x=,debug=,qpa=,webkit?] ) |
106 |
~x11-libs/qt-gui-${PV}:4[aqua=,c++0x=,debug=,qpa=,qt3support?] |
107 |
multimedia? ( ~x11-libs/qt-multimedia-${PV}:4[aqua=,c++0x=,debug=,qpa=] ) |
108 |
opengl? ( ~x11-libs/qt-opengl-${PV}:4[aqua=,c++0x=,debug=,qpa=,qt3support?] ) |
109 |
openvg? ( ~x11-libs/qt-openvg-${PV}:4[aqua=,c++0x=,debug=,qpa=,qt3support?] ) |
110 |
kde? ( media-libs/phonon[aqua=] ) |
111 |
!kde? ( || ( |
112 |
~x11-libs/qt-phonon-${PV}:4[aqua=,c++0x=,debug=,qpa=] |
113 |
media-libs/phonon[aqua=] |
114 |
) ) |
115 |
qt3support? ( ~x11-libs/qt-qt3support-${PV}:4[aqua=,c++0x=,debug=,qpa=] ) |
116 |
~x11-libs/qt-script-${PV}:4[aqua=,c++0x=,debug=,qpa=] |
117 |
~x11-libs/qt-sql-${PV}:4[aqua=,c++0x=,debug=,qpa=,qt3support?] |
118 |
~x11-libs/qt-svg-${PV}:4[aqua=,c++0x=,debug=,qpa=] |
119 |
~x11-libs/qt-test-${PV}:4[aqua=,c++0x=,debug=,qpa=] |
120 |
webkit? ( ~x11-libs/qt-webkit-${PV}:4[aqua=,c++0x=,debug=,qpa=] ) |
121 |
xmlpatterns? ( ~x11-libs/qt-xmlpatterns-${PV}:4[aqua=,c++0x=,debug=,qpa=] ) |
122 |
" |
123 |
RDEPEND="${DEPEND}" |
124 |
|
125 |
PATCHES=( |
126 |
"${FILESDIR}/${PN}-4.6-plugandpaint.patch" |
127 |
) |
128 |
|
129 |
pkg_setup() { |
130 |
QT4_TARGET_DIRECTORIES=" |
131 |
demos |
132 |
examples" |
133 |
QT4_EXTRACT_DIRECTORIES="${QT4_TARGET_DIRECTORIES} |
134 |
doc/src/images |
135 |
src |
136 |
include |
137 |
tools" |
138 |
|
139 |
qt4-build_pkg_setup |
140 |
} |
141 |
|
142 |
src_prepare() { |
143 |
qt4-build_src_prepare |
144 |
|
145 |
# Array mapping USE flags to subdirs |
146 |
local flags_subdirs_map=( |
147 |
'dbus' |
148 |
'declarative:declarative' |
149 |
'multimedia:spectrum' |
150 |
'opengl:boxes|glhypnotizer' |
151 |
'openvg' |
152 |
'webkit:browser' |
153 |
'xmlpatterns' |
154 |
) |
155 |
# Disable unwanted examples/demos |
156 |
for flag in "${flags_subdirs_map[@]}"; do |
157 |
if ! use ${flag%:*}; then |
158 |
einfo "Disabling ${flag%:*} examples" |
159 |
sed -i -e "/SUBDIRS += ${flag%:*}/d" \ |
160 |
examples/examples.pro || die |
161 |
|
162 |
if [[ ${flag} == *:* ]]; then |
163 |
einfo "Disabling ${flag%:*} demos" |
164 |
sed -i -re "/SUBDIRS \+= demos_(${flag#*:})/d" \ |
165 |
demos/demos.pro || die |
166 |
fi |
167 |
fi |
168 |
done |
169 |
|
170 |
if ! use qt3support; then |
171 |
einfo "Disabling qt3support examples" |
172 |
sed -i -e '/QT_CONFIG, qt3support/d' \ |
173 |
examples/graphicsview/graphicsview.pro || die |
174 |
fi |
175 |
} |
176 |
|
177 |
src_configure() { |
178 |
myconf+=" |
179 |
$(qt_use dbus) |
180 |
$(qt_use declarative) |
181 |
$(qt_use multimedia) |
182 |
$(qt_use opengl) |
183 |
$(qt_use openvg) |
184 |
$(qt_use qt3support) |
185 |
$(qt_use webkit) |
186 |
$(qt_use xmlpatterns)" |
187 |
|
188 |
qt4-build_src_configure |
189 |
} |
190 |
|
191 |
src_install() { |
192 |
insinto "${QTDOCDIR#${EPREFIX}}"/src |
193 |
doins -r doc/src/images |
194 |
|
195 |
qt4-build_src_install |
196 |
} |