1 |
wired 09/10/04 10:26:33 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: qt-core-4.5.3-r1.ebuild |
5 |
Log: |
6 |
version bump |
7 |
(Portage version: 2.2_rc43/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.59 x11-libs/qt-core/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/qt-core/ChangeLog?rev=1.59&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/qt-core/ChangeLog?rev=1.59&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/qt-core/ChangeLog?r1=1.58&r2=1.59 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/x11-libs/qt-core/ChangeLog,v |
19 |
retrieving revision 1.58 |
20 |
retrieving revision 1.59 |
21 |
diff -u -r1.58 -r1.59 |
22 |
--- ChangeLog 11 Aug 2009 23:09:12 -0000 1.58 |
23 |
+++ ChangeLog 4 Oct 2009 10:26:33 -0000 1.59 |
24 |
@@ -1,6 +1,11 @@ |
25 |
# ChangeLog for x11-libs/qt-core |
26 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/x11-libs/qt-core/ChangeLog,v 1.58 2009/08/11 23:09:12 wired Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/x11-libs/qt-core/ChangeLog,v 1.59 2009/10/04 10:26:33 wired Exp $ |
29 |
+ |
30 |
+*qt-core-4.5.3-r1 (04 Oct 2009) |
31 |
+ |
32 |
+ 04 Oct 2009; Alex Alexander <wired@g.o> +qt-core-4.5.3-r1.ebuild: |
33 |
+ version bump |
34 |
|
35 |
11 Aug 2009; Alex Alexander <wired@g.o> qt-core-4.5.2.ebuild: |
36 |
added setqtenv in src_install, thanks to Tommy |
37 |
|
38 |
|
39 |
|
40 |
1.1 x11-libs/qt-core/qt-core-4.5.3-r1.ebuild |
41 |
|
42 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/qt-core/qt-core-4.5.3-r1.ebuild?rev=1.1&view=markup |
43 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/qt-core/qt-core-4.5.3-r1.ebuild?rev=1.1&content-type=text/plain |
44 |
|
45 |
Index: qt-core-4.5.3-r1.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-core/qt-core-4.5.3-r1.ebuild,v 1.1 2009/10/04 10:26:33 wired Exp $ |
50 |
|
51 |
EAPI="2" |
52 |
inherit qt4-build |
53 |
|
54 |
DESCRIPTION="The Qt toolkit is a comprehensive C++ application development framework" |
55 |
SLOT="4" |
56 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" |
57 |
IUSE="doc +glib iconv qt3support ssl" |
58 |
|
59 |
RDEPEND="sys-libs/zlib |
60 |
glib? ( dev-libs/glib ) |
61 |
ssl? ( dev-libs/openssl ) |
62 |
!<x11-libs/qt-4.4.0:4" |
63 |
DEPEND="${RDEPEND} |
64 |
dev-util/pkgconfig" |
65 |
PDEPEND="qt3support? ( ~x11-libs/qt-gui-${PV}[qt3support] )" |
66 |
|
67 |
QT4_TARGET_DIRECTORIES=" |
68 |
src/tools/bootstrap |
69 |
src/tools/moc |
70 |
src/tools/rcc |
71 |
src/tools/uic |
72 |
src/corelib |
73 |
src/xml |
74 |
src/network |
75 |
src/plugins/codecs |
76 |
tools/linguist/lrelease |
77 |
tools/linguist/lupdate |
78 |
tools/linguist/lconvert" |
79 |
|
80 |
# Most ebuilds include almost everything for testing |
81 |
# Will clear out unneeded directories after everything else works OK |
82 |
QT4_EXTRACT_DIRECTORIES=" |
83 |
include/Qt |
84 |
include/QtCore |
85 |
include/QtNetwork |
86 |
include/QtScript |
87 |
include/QtXml |
88 |
src/plugins/plugins.pro |
89 |
src/plugins/qpluginbase.pri |
90 |
src/src.pro |
91 |
src/3rdparty/des |
92 |
src/3rdparty/harfbuzz |
93 |
src/3rdparty/md4 |
94 |
src/3rdparty/md5 |
95 |
src/3rdparty/sha1 |
96 |
src/script |
97 |
tools/linguist/shared |
98 |
translations" |
99 |
|
100 |
PATCHES=( |
101 |
"${FILESDIR}/qt-4.5-nolibx11.diff" |
102 |
) |
103 |
|
104 |
pkg_setup() { |
105 |
qt4-build_pkg_setup |
106 |
|
107 |
if has_version x11-libs/qt-core; then |
108 |
# Check to see if they've changed the glib flag since the last time installing this package. |
109 |
if use glib && ! built_with_use x11-libs/qt-core glib && has_version x11-libs/qt-gui; then |
110 |
ewarn "You have changed the \"glib\" use flag since the last time you have emerged this package." |
111 |
ewarn "You should also re-emerge x11-libs/qt-gui in order for it to pick up this change." |
112 |
elif ! use glib && built_with_use x11-libs/qt-core glib && has_version x11-libs/qt-gui; then |
113 |
ewarn "You have changed the \"glib\" use flag since the last time you have emerged this package." |
114 |
ewarn "You should also re-emerge x11-libs/qt-gui in order for it to pick up this change." |
115 |
fi |
116 |
|
117 |
# Check to see if they've changed the qt3support flag since the last time installing this package. |
118 |
# If so, give a list of packages they need to uninstall first. |
119 |
if use qt3support && ! built_with_use x11-libs/qt-core qt3support; then |
120 |
local need_to_remove |
121 |
ewarn "You have changed the \"qt3support\" use flag since the last time you have emerged this package." |
122 |
for x in sql opengl gui qt3support; do |
123 |
local pkg="x11-libs/qt-${x}" |
124 |
if has_version $pkg; then |
125 |
need_to_remove="${need_to_remove} ${pkg}" |
126 |
fi |
127 |
done |
128 |
if [[ -n ${need_to_remove} ]]; then |
129 |
die "You must first uninstall these packages before continuing: \n\t\t${need_to_remove}" |
130 |
fi |
131 |
elif ! use qt3support && built_with_use x11-libs/qt-core qt3support ; then |
132 |
local need_to_remove |
133 |
ewarn "You have changed the \"qt3support\" use flag since the last time you have emerged this package." |
134 |
for x in sql opengl gui qt3support; do |
135 |
local pkg="x11-libs/qt-${x}" |
136 |
if has_version $pkg; then |
137 |
need_to_remove="${need_to_remove} ${pkg}" |
138 |
fi |
139 |
done |
140 |
if [[ -n ${need_to_remove} ]]; then |
141 |
die "You must first uninstall these packages before continuing: \n\t\t${need_to_remove}" |
142 |
fi |
143 |
fi |
144 |
fi |
145 |
} |
146 |
|
147 |
src_unpack() { |
148 |
if use doc; then |
149 |
QT4_EXTRACT_DIRECTORIES="${QT4_EXTRACT_DIRECTORIES} |
150 |
doc/" |
151 |
QT4_TARGET_DIRECTORIES="${QT4_TARGET_DIRECTORIES} |
152 |
tools/qdoc3" |
153 |
fi |
154 |
QT4_EXTRACT_DIRECTORIES="${QT4_TARGET_DIRECTORIES} |
155 |
${QT4_EXTRACT_DIRECTORIES}" |
156 |
|
157 |
qt4-build_src_unpack |
158 |
|
159 |
# Don't pre-strip, bug 235026 |
160 |
for i in kr jp cn tw ; do |
161 |
echo "CONFIG+=nostrip" >> "${S}"/src/plugins/codecs/${i}/${i}.pro |
162 |
done |
163 |
} |
164 |
|
165 |
src_prepare() { |
166 |
qt4-build_src_prepare |
167 |
|
168 |
# bug 172219 |
169 |
sed -i -e "s:CXXFLAGS.*=:CXXFLAGS=${CXXFLAGS} :" \ |
170 |
"${S}/qmake/Makefile.unix" || die "sed qmake/Makefile.unix CXXFLAGS failed" |
171 |
sed -i -e "s:LFLAGS.*=:LFLAGS=${LDFLAGS} :" \ |
172 |
"${S}/qmake/Makefile.unix" || die "sed qmake/Makefile.unix LDFLAGS failed" |
173 |
} |
174 |
|
175 |
src_configure() { |
176 |
unset QMAKESPEC |
177 |
|
178 |
myconf="${myconf} |
179 |
$(qt_use glib) |
180 |
$(qt_use iconv) |
181 |
$(qt_use ssl openssl) |
182 |
$(qt_use qt3support)" |
183 |
|
184 |
myconf="${myconf} -no-xkb -no-fontconfig -no-xrender -no-xrandr |
185 |
-no-xfixes -no-xcursor -no-xinerama -no-xshape -no-sm -no-opengl |
186 |
-no-nas-sound -no-dbus -no-cups -no-gif -no-libpng |
187 |
-no-libmng -no-libjpeg -system-zlib -no-webkit -no-phonon -no-xmlpatterns |
188 |
-no-freetype -no-libtiff -no-accessibility -no-fontconfig -no-opengl |
189 |
-no-svg -no-gtkstyle" |
190 |
|
191 |
if ! use doc; then |
192 |
myconf="${myconf} -nomake docs" |
193 |
fi |
194 |
|
195 |
cp -f "${FILESDIR}"/moc.pro "${S}"/src/tools/moc/ |
196 |
cp -f "${FILESDIR}"/rcc.pro "${S}"/src/tools/rcc/ |
197 |
cp -f "${FILESDIR}"/uic.pro "${S}"/src/tools/uic/ |
198 |
|
199 |
qt4-build_src_configure |
200 |
} |
201 |
|
202 |
src_compile() { |
203 |
# bug 259736 |
204 |
unset QMAKESPEC |
205 |
qt4-build_src_compile |
206 |
} |
207 |
|
208 |
src_install() { |
209 |
dobin "${S}"/bin/{qmake,moc,rcc,uic,lconvert,lrelease,lupdate} || die "dobin failed" |
210 |
|
211 |
install_directories src/{corelib,xml,network,plugins/codecs} |
212 |
|
213 |
emake INSTALL_ROOT="${D}" install_mkspecs || die "emake install_mkspecs failed" |
214 |
|
215 |
if use doc; then |
216 |
emake INSTALL_ROOT="${D}" install_htmldocs || die "emake install_htmldocs failed" |
217 |
fi |
218 |
|
219 |
# use freshly built libraries |
220 |
LD_LIBRARY_PATH="${S}/lib" "${S}"/bin/lrelease translations/*.ts \ |
221 |
|| die "generating translations failed" |
222 |
insinto ${QTTRANSDIR} |
223 |
doins translations/*.qm || die "doins translations failed" |
224 |
|
225 |
setqtenv |
226 |
fix_library_files |
227 |
|
228 |
# List all the multilib libdirs |
229 |
local libdirs= |
230 |
for libdir in $(get_all_libdirs); do |
231 |
libdirs="${libdirs}:/usr/${libdir}/qt4" |
232 |
done |
233 |
|
234 |
cat <<-EOF > "${T}/44qt4" |
235 |
LDPATH=${libdirs:1} |
236 |
EOF |
237 |
doenvd "${T}/44qt4" |
238 |
|
239 |
dodir /${QTDATADIR}/mkspecs/gentoo |
240 |
mv "${D}"/${QTDATADIR}/mkspecs/qconfig.pri "${D}${QTDATADIR}"/mkspecs/gentoo \ |
241 |
|| die "Failed to move qconfig.pri" |
242 |
|
243 |
sed -i -e '2a#include <Gentoo/gentoo-qconfig.h>\n' \ |
244 |
"${D}${QTHEADERDIR}"/QtCore/qconfig.h \ |
245 |
"${D}${QTHEADERDIR}"/Qt/qconfig.h \ |
246 |
|| die "sed for qconfig.h failed" |
247 |
|
248 |
if use glib; then |
249 |
QCONFIG_DEFINE="$(use glib && echo QT_GLIB) |
250 |
$(use ssl && echo QT_OPENSSL)" |
251 |
install_qconfigs |
252 |
fi |
253 |
|
254 |
# remove some unnecessary headers |
255 |
rm -f "${D}${QTHEADERDIR}"/{Qt,QtCore}/{\ |
256 |
qatomic_macosx.h,\ |
257 |
qatomic_windows.h,\ |
258 |
qatomic_windowsce.h,\ |
259 |
qt_windows.h} |
260 |
|
261 |
keepdir "${QTSYSCONFDIR}" |
262 |
} |