1 |
tampakrap 11/03/01 19:06:22 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: qt-core-4.7.2.ebuild |
5 |
Log: |
6 |
Version bump Qt 4.7.2 |
7 |
|
8 |
(Portage version: 2.2.0_alpha25/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.118 x11-libs/qt-core/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/qt-core/ChangeLog?rev=1.118&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/qt-core/ChangeLog?rev=1.118&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/qt-core/ChangeLog?r1=1.117&r2=1.118 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/x11-libs/qt-core/ChangeLog,v |
20 |
retrieving revision 1.117 |
21 |
retrieving revision 1.118 |
22 |
diff -u -r1.117 -r1.118 |
23 |
--- ChangeLog 23 Dec 2010 07:54:54 -0000 1.117 |
24 |
+++ ChangeLog 1 Mar 2011 19:06:22 -0000 1.118 |
25 |
@@ -1,6 +1,11 @@ |
26 |
# ChangeLog for x11-libs/qt-core |
27 |
-# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/x11-libs/qt-core/ChangeLog,v 1.117 2010/12/23 07:54:54 ssuominen Exp $ |
29 |
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
30 |
+# $Header: /var/cvsroot/gentoo-x86/x11-libs/qt-core/ChangeLog,v 1.118 2011/03/01 19:06:22 tampakrap Exp $ |
31 |
+ |
32 |
+*qt-core-4.7.2 (01 Mar 2011) |
33 |
+ |
34 |
+ 01 Mar 2011; Theo Chatzimichos <tampakrap@g.o> +qt-core-4.7.2.ebuild: |
35 |
+ Version bump Qt 4.7.2 |
36 |
|
37 |
23 Dec 2010; Samuli Suominen <ssuominen@g.o> qt-core-4.6.3.ebuild: |
38 |
ppc64 stable wrt #341703 |
39 |
|
40 |
|
41 |
|
42 |
1.1 x11-libs/qt-core/qt-core-4.7.2.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/qt-core/qt-core-4.7.2.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/qt-core/qt-core-4.7.2.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: qt-core-4.7.2.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2011 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/x11-libs/qt-core/qt-core-4.7.2.ebuild,v 1.1 2011/03/01 19:06:22 tampakrap Exp $ |
52 |
|
53 |
EAPI="3" |
54 |
inherit qt4-build |
55 |
|
56 |
DESCRIPTION="The Qt toolkit is a comprehensive C++ application development framework" |
57 |
SLOT="4" |
58 |
KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 -sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris" |
59 |
IUSE="+glib iconv +jit optimized-qmake private-headers qt3support ssl" |
60 |
|
61 |
RDEPEND="sys-libs/zlib |
62 |
glib? ( dev-libs/glib ) |
63 |
ssl? ( dev-libs/openssl ) |
64 |
!<x11-libs/qt-4.4.0:4" |
65 |
DEPEND="${RDEPEND} |
66 |
dev-util/pkgconfig" |
67 |
PDEPEND="qt3support? ( ~x11-libs/qt-gui-${PV}[aqua=,glib=,qt3support] )" |
68 |
|
69 |
pkg_setup() { |
70 |
QT4_TARGET_DIRECTORIES=" |
71 |
src/tools/bootstrap |
72 |
src/tools/moc |
73 |
src/tools/rcc |
74 |
src/tools/uic |
75 |
src/corelib |
76 |
src/xml |
77 |
src/network |
78 |
src/plugins/codecs |
79 |
tools/linguist/lconvert |
80 |
tools/linguist/lrelease |
81 |
tools/linguist/lupdate" |
82 |
|
83 |
QT4_EXTRACT_DIRECTORIES=" |
84 |
include/Qt |
85 |
include/QtCore |
86 |
include/QtDeclarative |
87 |
include/QtGui |
88 |
include/QtNetwork |
89 |
include/QtScript |
90 |
include/QtXml |
91 |
src/plugins/plugins.pro |
92 |
src/plugins/qpluginbase.pri |
93 |
src/src.pro |
94 |
src/3rdparty/des |
95 |
src/3rdparty/harfbuzz |
96 |
src/3rdparty/md4 |
97 |
src/3rdparty/md5 |
98 |
src/3rdparty/sha1 |
99 |
src/3rdparty/easing |
100 |
src/3rdparty/zlib_dependency.pri |
101 |
src/declarative |
102 |
src/gui |
103 |
src/script |
104 |
tools/shared |
105 |
tools/linguist/shared |
106 |
translations" |
107 |
qt4-build_pkg_setup |
108 |
QT4_EXTRACT_DIRECTORIES="${QT4_TARGET_DIRECTORIES} |
109 |
${QT4_EXTRACT_DIRECTORIES}" |
110 |
} |
111 |
|
112 |
src_prepare() { |
113 |
# Don't pre-strip, bug 235026 |
114 |
for i in kr jp cn tw ; do |
115 |
echo "CONFIG+=nostrip" >> "${S}"/src/plugins/codecs/${i}/${i}.pro |
116 |
done |
117 |
|
118 |
qt4-build_src_prepare |
119 |
|
120 |
# bug 172219 |
121 |
sed -i -e "s:CXXFLAGS.*=:CXXFLAGS=${CXXFLAGS} :" \ |
122 |
"${S}/qmake/Makefile.unix" || die "sed qmake/Makefile.unix CXXFLAGS failed" |
123 |
sed -i -e "s:LFLAGS.*=:LFLAGS=${LDFLAGS} :" \ |
124 |
"${S}/qmake/Makefile.unix" || die "sed qmake/Makefile.unix LDFLAGS failed" |
125 |
} |
126 |
|
127 |
src_configure() { |
128 |
unset QMAKESPEC |
129 |
|
130 |
myconf="${myconf} |
131 |
$(qt_use glib) |
132 |
$(qt_use iconv) |
133 |
$(qt_use optimized-qmake) |
134 |
$(qt_use ssl openssl) |
135 |
$(qt_use qt3support) |
136 |
$(qt_use jit javascript-jit)" |
137 |
|
138 |
myconf="${myconf} -no-xkb -no-fontconfig -no-xrender -no-xrandr |
139 |
-no-xfixes -no-xcursor -no-xinerama -no-xshape -no-sm -no-opengl |
140 |
-no-nas-sound -no-dbus -no-cups -no-gif -no-libpng |
141 |
-no-libmng -no-libjpeg -system-zlib -no-webkit -no-phonon -no-xmlpatterns |
142 |
-no-freetype -no-libtiff -no-accessibility -no-fontconfig -no-opengl |
143 |
-no-svg -no-gtkstyle -no-phonon-backend -no-script -no-scripttools |
144 |
-no-cups -no-xsync -no-xinput -no-multimedia" |
145 |
qt4-build_src_configure |
146 |
} |
147 |
|
148 |
src_compile() { |
149 |
# bug 259736 |
150 |
unset QMAKESPEC |
151 |
qt4-build_src_compile |
152 |
} |
153 |
|
154 |
src_install() { |
155 |
dobin "${S}"/bin/{qmake,moc,rcc,uic,lconvert,lrelease,lupdate} || die "dobin failed" |
156 |
|
157 |
install_directories src/{corelib,xml,network,plugins/codecs} |
158 |
|
159 |
emake INSTALL_ROOT="${D}" install_mkspecs || die "emake install_mkspecs failed" |
160 |
|
161 |
#install private headers |
162 |
if use private-headers; then |
163 |
insinto "${QTHEADERDIR#${EPREFIX}}"/QtCore/private |
164 |
find "${S}"/src/corelib -type f -name "*_p.h" -exec doins {} \; |
165 |
fi |
166 |
# use freshly built libraries |
167 |
local DYLD_FPATH= |
168 |
[[ -d "${S}"/lib/QtCore.framework ]] \ |
169 |
&& DYLD_FPATH=$(for x in "${S}/lib/"*.framework; do echo -n ":$x"; done) |
170 |
DYLD_LIBRARY_PATH="${S}/lib${DYLD_FPATH}" \ |
171 |
LD_LIBRARY_PATH="${S}/lib" "${S}"/bin/lrelease translations/*.ts \ |
172 |
|| die "generating translations faied" |
173 |
insinto ${QTTRANSDIR#${EPREFIX}} |
174 |
doins translations/*.qm || die "doins translations failed" |
175 |
|
176 |
setqtenv |
177 |
fix_library_files |
178 |
|
179 |
# List all the multilib libdirs |
180 |
local libdirs= |
181 |
for libdir in $(get_all_libdirs); do |
182 |
libdirs+=:${EPREFIX}/usr/${libdir}/qt4 |
183 |
done |
184 |
|
185 |
cat <<-EOF > "${T}/44qt4" |
186 |
LDPATH="${libdirs:1}" |
187 |
EOF |
188 |
doenvd "${T}/44qt4" |
189 |
|
190 |
dodir ${QTDATADIR#${EPREFIX}}/mkspecs/gentoo || die "dodir failed" |
191 |
mv "${D}"/${QTDATADIR}/mkspecs/qconfig.pri "${D}${QTDATADIR}"/mkspecs/gentoo \ |
192 |
|| die "Failed to move qconfig.pri" |
193 |
|
194 |
# Framework hacking |
195 |
if use aqua && [[ ${CHOST#*-darwin} -ge 9 ]] ; then |
196 |
#TODO do this better |
197 |
sed -i -e '2a#include <QtCore/Gentoo/gentoo-qconfig.h>\n' \ |
198 |
"${D}${QTLIBDIR}"/QtCore.framework/Headers/qconfig.h \ |
199 |
|| die "sed for qconfig.h failed." |
200 |
dosym "${QTHEADERDIR#${EPREFIX}}"/Gentoo "${QTLIBDIR#${EPREFIX}}"/QtCore.framework/Headers/Gentoo || |
201 |
die "dosym failed" |
202 |
else |
203 |
sed -i -e '2a#include <Gentoo/gentoo-qconfig.h>\n' \ |
204 |
"${D}${QTHEADERDIR}"/QtCore/qconfig.h \ |
205 |
"${D}${QTHEADERDIR}"/Qt/qconfig.h \ |
206 |
|| die "sed for qconfig.h failed" |
207 |
fi |
208 |
|
209 |
if use glib; then |
210 |
QCONFIG_DEFINE="$(use glib && echo QT_GLIB) |
211 |
$(use ssl && echo QT_OPENSSL)" |
212 |
install_qconfigs |
213 |
fi |
214 |
# remove .la files |
215 |
find "${D}"${QTLIBDIR} -name "*.la" -print0 | xargs -0 rm |
216 |
# remove some unnecessary headers |
217 |
rm -f "${D}${QTHEADERDIR}"/{Qt,QtCore}/{\ |
218 |
qatomic_windows.h,\ |
219 |
qatomic_windowsce.h,\ |
220 |
qt_windows.h} |
221 |
|
222 |
keepdir "${QTSYSCONFDIR#${EPREFIX}}" |
223 |
|
224 |
# Framework magic |
225 |
fix_includes |
226 |
} |