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