1 |
ayoy 09/10/29 18:44:05 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: qt-gui-4.5.3-r2.ebuild |
5 |
Log: |
6 |
Adding a patch to fix regression in event loop |
7 |
(Portage version: 2.2_rc46/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.74 x11-libs/qt-gui/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/qt-gui/ChangeLog?rev=1.74&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/qt-gui/ChangeLog?rev=1.74&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/qt-gui/ChangeLog?r1=1.73&r2=1.74 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/x11-libs/qt-gui/ChangeLog,v |
19 |
retrieving revision 1.73 |
20 |
retrieving revision 1.74 |
21 |
diff -u -r1.73 -r1.74 |
22 |
--- ChangeLog 29 Oct 2009 11:30:54 -0000 1.73 |
23 |
+++ ChangeLog 29 Oct 2009 18:44:04 -0000 1.74 |
24 |
@@ -1,6 +1,12 @@ |
25 |
# ChangeLog for x11-libs/qt-gui |
26 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/x11-libs/qt-gui/ChangeLog,v 1.73 2009/10/29 11:30:54 fauli Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/x11-libs/qt-gui/ChangeLog,v 1.74 2009/10/29 18:44:04 ayoy Exp $ |
29 |
+ |
30 |
+*qt-gui-4.5.3-r2 (29 Oct 2009) |
31 |
+ |
32 |
+ 29 Oct 2009; Dominik Kapusta <ayoy@g.o> +qt-gui-4.5.3-r2.ebuild, |
33 |
+ +files/qt-4.5.3-glib-event-loop.patch: |
34 |
+ Adding a patch to fix regression in event loop |
35 |
|
36 |
29 Oct 2009; Christian Faulhammer <fauli@g.o> |
37 |
qt-gui-4.5.3-r1.ebuild: |
38 |
|
39 |
|
40 |
|
41 |
1.1 x11-libs/qt-gui/qt-gui-4.5.3-r2.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/qt-gui/qt-gui-4.5.3-r2.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/qt-gui/qt-gui-4.5.3-r2.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: qt-gui-4.5.3-r2.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2009 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/x11-libs/qt-gui/qt-gui-4.5.3-r2.ebuild,v 1.1 2009/10/29 18:44:04 ayoy Exp $ |
51 |
|
52 |
EAPI="2" |
53 |
inherit eutils qt4-build |
54 |
|
55 |
DESCRIPTION="The GUI module for the Qt toolkit" |
56 |
SLOT="4" |
57 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" |
58 |
IUSE="+accessibility cups dbus +glib gtk mng nas nis raster tiff qt3support xinerama" |
59 |
|
60 |
RDEPEND="media-libs/fontconfig |
61 |
>=media-libs/freetype-2 |
62 |
media-libs/jpeg |
63 |
media-libs/libpng |
64 |
sys-libs/zlib |
65 |
x11-libs/libX11 |
66 |
x11-libs/libXext |
67 |
x11-libs/libXrandr |
68 |
x11-libs/libXcursor |
69 |
x11-libs/libXfont |
70 |
x11-libs/libSM |
71 |
x11-libs/libXi |
72 |
~x11-libs/qt-core-${PV}[debug=,glib=,qt3support=] |
73 |
~x11-libs/qt-script-${PV}[debug=] |
74 |
cups? ( net-print/cups ) |
75 |
dbus? ( ~x11-libs/qt-dbus-${PV}[debug=] ) |
76 |
gtk? ( x11-libs/gtk+:2 ) |
77 |
mng? ( >=media-libs/libmng-1.0.9 ) |
78 |
nas? ( >=media-libs/nas-1.5 ) |
79 |
tiff? ( media-libs/tiff ) |
80 |
xinerama? ( x11-libs/libXinerama )" |
81 |
DEPEND="${RDEPEND} |
82 |
xinerama? ( x11-proto/xineramaproto ) |
83 |
x11-proto/xextproto |
84 |
x11-proto/inputproto" |
85 |
PDEPEND="qt3support? ( ~x11-libs/qt-qt3support-${PV}[debug=] )" |
86 |
|
87 |
QT4_TARGET_DIRECTORIES=" |
88 |
src/gui |
89 |
src/scripttools/ |
90 |
tools/designer |
91 |
tools/linguist/linguist |
92 |
src/plugins/imageformats/gif |
93 |
src/plugins/imageformats/ico |
94 |
src/plugins/imageformats/jpeg |
95 |
src/plugins/inputmethods" |
96 |
|
97 |
QT4_EXTRACT_DIRECTORIES=" |
98 |
include/ |
99 |
src/ |
100 |
tools/linguist/shared |
101 |
tools/linguist/phrasebooks |
102 |
tools/shared/" |
103 |
|
104 |
PATCHES=( |
105 |
"${FILESDIR}/qt-${PV}-glib-event-loop.patch" |
106 |
) |
107 |
|
108 |
pkg_setup() { |
109 |
if use raster; then |
110 |
ewarn "WARNING: You have enabled raster backend rendering engine." |
111 |
ewarn "This is a new feature and may lead to composite problems" |
112 |
ewarn "screen corruption and broken qt4 or kde4 applications. " |
113 |
ewarn "If you encounter such problems please" |
114 |
ewarn "remove 'raster' use flag and re-compile qt-gui before" |
115 |
ewarn "filling a bug on gentoo bugzilla." |
116 |
ebeep 5 |
117 |
fi |
118 |
qt4-build_pkg_setup |
119 |
} |
120 |
|
121 |
src_unpack() { |
122 |
use dbus && QT4_TARGET_DIRECTORIES="${QT4_TARGET_DIRECTORIES} tools/qdbus/qdbusviewer" |
123 |
use mng && QT4_TARGET_DIRECTORIES="${QT4_TARGET_DIRECTORIES} src/plugins/imageformats/mng" |
124 |
use tiff && QT4_TARGET_DIRECTORIES="${QT4_TARGET_DIRECTORIES} src/plugins/imageformats/tiff" |
125 |
use accessibility && QT4_TARGET_DIRECTORIES="${QT4_TARGET_DIRECTORIES} src/plugins/accessible/widgets" |
126 |
QT4_EXTRACT_DIRECTORIES="${QT4_TARGET_DIRECTORIES} ${QT4_EXTRACT_DIRECTORIES}" |
127 |
|
128 |
qt4-build_src_unpack |
129 |
} |
130 |
|
131 |
src_prepare() { |
132 |
qt4-build_src_prepare |
133 |
|
134 |
# Don't build plugins this go around, because they depend on qt3support lib |
135 |
sed -i -e "s:CONFIG(shared:# &:g" "${S}"/tools/designer/src/src.pro |
136 |
|
137 |
# fixing hardcoded fonts, bug #252312 |
138 |
EPATCH_OPTS="--ignore-whitespace" |
139 |
epatch "${FILESDIR}"/hardcoded_fonts.patch |
140 |
} |
141 |
|
142 |
src_configure() { |
143 |
export PATH="${S}/bin:${PATH}" |
144 |
export LD_LIBRARY_PATH="${S}/lib:${LD_LIBRARY_PATH}" |
145 |
|
146 |
myconf="$(qt_use accessibility) |
147 |
$(qt_use cups) |
148 |
$(qt_use glib) |
149 |
$(qt_use mng libmng system) |
150 |
$(qt_use nis) |
151 |
$(qt_use tiff libtiff system) |
152 |
$(qt_use dbus qdbus) |
153 |
$(qt_use qt3support) |
154 |
$(qt_use gtk gtkstyle) |
155 |
$(qt_use xinerama)" |
156 |
|
157 |
use nas && myconf="${myconf} -system-nas-sound" |
158 |
use raster && myconf="${myconf} -graphicssystem raster" |
159 |
|
160 |
myconf="${myconf} -qt-gif -system-libpng -system-libjpeg |
161 |
-no-sql-mysql -no-sql-psql -no-sql-ibase -no-sql-sqlite -no-sql-sqlite2 -no-sql-odbc |
162 |
-xrender -xrandr -xkb -xshape -sm -no-svg" |
163 |
|
164 |
# Explicitly don't compile these packages. |
165 |
# Emerge "qt-webkit", "qt-phonon", etc for their functionality. |
166 |
myconf="${myconf} -no-webkit -no-phonon -no-dbus -no-opengl" |
167 |
|
168 |
qt4-build_src_configure |
169 |
} |
170 |
|
171 |
src_install() { |
172 |
QCONFIG_ADD="x11sm xshape xcursor xfixes xrandr xrender xkb fontconfig |
173 |
$(usev accessibility) $(usev xinerama) $(usev cups) $(usev nas) |
174 |
gif png system-png system-jpeg |
175 |
$(use mng && echo system-mng) |
176 |
$(use tiff && echo system-tiff)" |
177 |
QCONFIG_REMOVE="no-gif no-png" |
178 |
QCONFIG_DEFINE="$(use accessibility && echo QT_ACCESSIBILITY) |
179 |
$(use cups && echo QT_CUPS) QT_FONTCONFIG QT_IMAGEFORMAT_JPEG |
180 |
$(use mng && echo QT_IMAGEFORMAT_MNG) |
181 |
$(use nas && echo QT_NAS) |
182 |
$(use nis && echo QT_NIS) QT_IMAGEFORMAT_PNG QT_SESSIONMANAGER QT_SHAPE |
183 |
$(use tiff && echo QT_IMAGEFORMAT_TIFF) QT_XCURSOR |
184 |
$(use xinerama && echo QT_XINERAMA) QT_XFIXES QT_XKB QT_XRANDR QT_XRENDER" |
185 |
|
186 |
qt4-build_src_install |
187 |
|
188 |
# remove some unnecessary headers |
189 |
rm -f "${D}${QTHEADERDIR}"/{Qt,QtGui}/{qmacstyle_mac.h,qwindowdefs_win.h} \ |
190 |
"${D}${QTHEADERDIR}"/QtGui/QMacStyle |
191 |
|
192 |
# qt-creator |
193 |
# some qt-creator headers are located |
194 |
# under /usr/include/qt4/QtDesigner/private. |
195 |
# those headers are just includes of the headers |
196 |
# which are located under tools/designer/src/lib/* |
197 |
# So instead of installing both, we create the private folder |
198 |
# and drop tools/designer/src/lib/* headers in it. |
199 |
dodir /usr/include/qt4/QtDesigner/private/ |
200 |
insinto /usr/include/qt4/QtDesigner/private/ |
201 |
doins "${S}"/tools/designer/src/lib/shared/* |
202 |
doins "${S}"/tools/designer/src/lib/sdk/* |
203 |
|
204 |
# install correct designer and linguist icons, bug 241208 |
205 |
doicon tools/linguist/linguist/images/icons/linguist-128-32.png \ |
206 |
tools/designer/src/designer/images/designer.png \ |
207 |
|| die "doicon failed" |
208 |
# Note: absolute image path required here! |
209 |
make_desktop_entry /usr/bin/linguist Linguist \ |
210 |
/usr/share/pixmaps/linguist-128-32.png \ |
211 |
'Qt;Development;GUIDesigner' \ |
212 |
|| die "linguist make_desktop_entry failed" |
213 |
make_desktop_entry /usr/bin/designer Designer \ |
214 |
/usr/share/pixmaps/designer.png \ |
215 |
'Qt;Development;GUIDesigner' \ |
216 |
|| die "designer make_desktop_entry failed" |
217 |
} |
218 |
|
219 |
pkg_postinst() { |
220 |
if use gtk ; then |
221 |
ewarn 'If you get the following error when setting Qt to use the GTK style:' |
222 |
ewarn ' "QGtkStyle cannot be used together with the GTK_Qt engine."' |
223 |
ewarn 'make sure you have GTK configured to NOT use the GTK_Qt engine and' |
224 |
ewarn 'export GTK2_RC_FILES="$HOME/.gtkrc-2.0" in your environment.' |
225 |
fi |
226 |
qt4-build_pkg_postinst |
227 |
} |