1 |
yngwin 09/01/31 16:46:47 |
2 |
|
3 |
Modified: ChangeLog qt-core-4.4.2.ebuild |
4 |
Added: qt-core-4.4.2-r1.ebuild |
5 |
Log: |
6 |
Moving over the useflag defaults change to a revbump instead |
7 |
(Portage version: 2.2_rc23/cvs/Linux i686) |
8 |
|
9 |
Revision Changes Path |
10 |
1.20 x11-libs/qt-core/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/qt-core/ChangeLog?rev=1.20&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/qt-core/ChangeLog?rev=1.20&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/qt-core/ChangeLog?r1=1.19&r2=1.20 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/x11-libs/qt-core/ChangeLog,v |
19 |
retrieving revision 1.19 |
20 |
retrieving revision 1.20 |
21 |
diff -u -r1.19 -r1.20 |
22 |
--- ChangeLog 31 Jan 2009 15:13:47 -0000 1.19 |
23 |
+++ ChangeLog 31 Jan 2009 16:46:47 -0000 1.20 |
24 |
@@ -1,6 +1,12 @@ |
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.19 2009/01/31 15:13:47 yngwin Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/x11-libs/qt-core/ChangeLog,v 1.20 2009/01/31 16:46:47 yngwin Exp $ |
29 |
+ |
30 |
+*qt-core-4.4.2-r1 (31 Jan 2009) |
31 |
+ |
32 |
+ 31 Jan 2009; Ben de Groot <yngwin@g.o> qt-core-4.4.2.ebuild, |
33 |
+ +qt-core-4.4.2-r1.ebuild: |
34 |
+ Moving over the useflag defaults change to a revbump instead |
35 |
|
36 |
31 Jan 2009; Ben de Groot <yngwin@g.o> qt-core-4.4.2.ebuild: |
37 |
Enable glib and ssl useflags by default |
38 |
|
39 |
|
40 |
|
41 |
1.7 x11-libs/qt-core/qt-core-4.4.2.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/qt-core/qt-core-4.4.2.ebuild?rev=1.7&view=markup |
44 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/qt-core/qt-core-4.4.2.ebuild?rev=1.7&content-type=text/plain |
45 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/qt-core/qt-core-4.4.2.ebuild?r1=1.6&r2=1.7 |
46 |
|
47 |
Index: qt-core-4.4.2.ebuild |
48 |
=================================================================== |
49 |
RCS file: /var/cvsroot/gentoo-x86/x11-libs/qt-core/qt-core-4.4.2.ebuild,v |
50 |
retrieving revision 1.6 |
51 |
retrieving revision 1.7 |
52 |
diff -u -r1.6 -r1.7 |
53 |
--- qt-core-4.4.2.ebuild 31 Jan 2009 15:13:48 -0000 1.6 |
54 |
+++ qt-core-4.4.2.ebuild 31 Jan 2009 16:46:47 -0000 1.7 |
55 |
@@ -1,6 +1,6 @@ |
56 |
# Copyright 1999-2009 Gentoo Foundation |
57 |
# Distributed under the terms of the GNU General Public License v2 |
58 |
-# $Header: /var/cvsroot/gentoo-x86/x11-libs/qt-core/qt-core-4.4.2.ebuild,v 1.6 2009/01/31 15:13:48 yngwin Exp $ |
59 |
+# $Header: /var/cvsroot/gentoo-x86/x11-libs/qt-core/qt-core-4.4.2.ebuild,v 1.7 2009/01/31 16:46:47 yngwin Exp $ |
60 |
|
61 |
EAPI="1" |
62 |
inherit qt4-build |
63 |
@@ -11,7 +11,7 @@ |
64 |
LICENSE="|| ( GPL-3 GPL-2 )" |
65 |
SLOT="4" |
66 |
KEYWORDS="~alpha amd64 ~hppa ~ia64 ppc ~ppc64 ~sparc x86 ~x86-fbsd" |
67 |
-IUSE="doc +glib +qt3support +ssl" |
68 |
+IUSE="doc glib +qt3support ssl" |
69 |
|
70 |
RDEPEND="sys-libs/zlib |
71 |
glib? ( dev-libs/glib ) |
72 |
|
73 |
|
74 |
|
75 |
1.1 x11-libs/qt-core/qt-core-4.4.2-r1.ebuild |
76 |
|
77 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/qt-core/qt-core-4.4.2-r1.ebuild?rev=1.1&view=markup |
78 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/qt-core/qt-core-4.4.2-r1.ebuild?rev=1.1&content-type=text/plain |
79 |
|
80 |
Index: qt-core-4.4.2-r1.ebuild |
81 |
=================================================================== |
82 |
# Copyright 1999-2009 Gentoo Foundation |
83 |
# Distributed under the terms of the GNU General Public License v2 |
84 |
# $Header: /var/cvsroot/gentoo-x86/x11-libs/qt-core/qt-core-4.4.2-r1.ebuild,v 1.1 2009/01/31 16:46:47 yngwin Exp $ |
85 |
|
86 |
EAPI="1" |
87 |
inherit qt4-build |
88 |
|
89 |
DESCRIPTION="The Qt toolkit is a comprehensive C++ application development framework." |
90 |
HOMEPAGE="http://www.trolltech.com/" |
91 |
|
92 |
LICENSE="|| ( GPL-3 GPL-2 )" |
93 |
SLOT="4" |
94 |
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" |
95 |
IUSE="doc +glib +qt3support +ssl" |
96 |
|
97 |
RDEPEND="sys-libs/zlib |
98 |
glib? ( dev-libs/glib ) |
99 |
ssl? ( dev-libs/openssl ) |
100 |
!<=x11-libs/qt-4.4.0_alpha:${SLOT}" |
101 |
DEPEND="${RDEPEND} |
102 |
dev-util/pkgconfig" |
103 |
PDEPEND="qt3support? ( ~x11-libs/qt-gui-${PV} )" |
104 |
|
105 |
QT4_TARGET_DIRECTORIES=" |
106 |
src/tools/moc/ |
107 |
src/tools/rcc/ |
108 |
src/tools/uic/ |
109 |
src/corelib/ |
110 |
src/xml/ |
111 |
src/network/ |
112 |
src/plugins/codecs/" |
113 |
QT4_EXTRACT_DIRECTORIES=" |
114 |
include/Qt/ |
115 |
include/QtCore/ |
116 |
include/QtNetwork/ |
117 |
include/QtScript/ |
118 |
include/QtXml/ |
119 |
src/plugins/plugins.pro |
120 |
src/plugins/qpluginbase.pri |
121 |
src/src.pro |
122 |
src/3rdparty/des/ |
123 |
src/3rdparty/harfbuzz/ |
124 |
src/3rdparty/md4/ |
125 |
src/3rdparty/md5/ |
126 |
src/3rdparty/sha1/ |
127 |
src/script/ |
128 |
translations/" |
129 |
|
130 |
pkg_setup() { |
131 |
qt4-build_pkg_setup |
132 |
|
133 |
if has_version x11-libs/qt-core; then |
134 |
# Check to see if they've changed the glib flag since the last time installing this package. |
135 |
|
136 |
if use glib && ! built_with_use x11-libs/qt-core glib && has_version x11-libs/qt-gui; then |
137 |
ewarn "You have changed the \"glib\" use flag since the last time you have emerged this package." |
138 |
ewarn "You should also re-emerge x11-libs/qt-gui in order for it to pick up this change." |
139 |
elif ! use glib && built_with_use x11-libs/qt-core glib && has_version x11-libs/qt-gui; then |
140 |
ewarn "You have changed the \"glib\" use flag since the last time you have emerged this package." |
141 |
ewarn "You should also re-emerge x11-libs/qt-gui in order for it to pick up this change." |
142 |
fi |
143 |
|
144 |
# Check to see if they've changed the qt3support flag since the last time installing this package. |
145 |
# If so, give a list of packages they need to uninstall first. |
146 |
|
147 |
if use qt3support && ! built_with_use x11-libs/qt-core qt3support; then |
148 |
local need_to_remove |
149 |
ewarn "You have changed the \"qt3support\" use flag since the last time you have emerged this package." |
150 |
for x in sql opengl gui qt3support; do |
151 |
local pkg="x11-libs/qt-${x}" |
152 |
if has_version $pkg; then |
153 |
need_to_remove="${need_to_remove} ${pkg}" |
154 |
fi |
155 |
done |
156 |
if [[ -n ${need_to_remove} ]]; then |
157 |
die "You must first uninstall these packages before continuing: \n\t\t${need_to_remove}" |
158 |
fi |
159 |
elif ! use qt3support && built_with_use x11-libs/qt-core qt3support; then |
160 |
local need_to_remove |
161 |
ewarn "You have changed the \"qt3support\" use flag since the last time you have emerged this package." |
162 |
for x in sql opengl gui qt3support; do |
163 |
local pkg="x11-libs/qt-${x}" |
164 |
if has_version $pkg; then |
165 |
need_to_remove="${need_to_remove} ${pkg}" |
166 |
fi |
167 |
done |
168 |
if [[ -n ${need_to_remove} ]]; then |
169 |
die "You must first uninstall these packages before continuing: \n\t\t${need_to_remove}" |
170 |
fi |
171 |
fi |
172 |
fi |
173 |
} |
174 |
|
175 |
src_unpack() { |
176 |
use doc && QT4_EXTRACT_DIRECTORIES="${QT4_EXTRACT_DIRECTORIES} |
177 |
doc/ |
178 |
tools/qdoc3/" |
179 |
QT4_EXTRACT_DIRECTORIES="${QT4_TARGET_DIRECTORIES} |
180 |
${QT4_EXTRACT_DIRECTORIES}" |
181 |
|
182 |
qt4-build_src_unpack |
183 |
|
184 |
# Don't pre-strip, bug 235026 |
185 |
for i in kr jp cn tw ; do |
186 |
echo "CONFIG+=nostrip" >> "${S}"/src/plugins/codecs/${i}/${i}.pro |
187 |
done |
188 |
} |
189 |
|
190 |
src_compile() { |
191 |
unset QMAKESPEC |
192 |
local myconf |
193 |
|
194 |
myconf="${myconf} |
195 |
$(qt_use glib) |
196 |
$(qt_use ssl openssl) |
197 |
$(qt_use qt3support)" |
198 |
|
199 |
myconf="${myconf} -no-xkb -no-tablet -no-fontconfig -no-xrender -no-xrandr |
200 |
-no-xfixes -no-xcursor -no-xinerama -no-xshape -no-sm -no-opengl |
201 |
-no-nas-sound -no-dbus -iconv -no-cups -no-nis -no-gif -no-libpng |
202 |
-no-libmng -no-libjpeg -system-zlib -no-webkit -no-phonon -no-xmlpatterns |
203 |
-no-freetype -no-libtiff -no-accessibility -no-fontconfig -no-opengl |
204 |
-no-svg" |
205 |
|
206 |
if ! use doc; then |
207 |
myconf="${myconf} -nomake docs" |
208 |
fi |
209 |
|
210 |
qt4-build_src_compile |
211 |
} |
212 |
|
213 |
src_install() { |
214 |
dobin "${S}"/bin/{qmake,moc,rcc,uic} || die "dobin failed." |
215 |
|
216 |
install_directories src/{corelib,xml,network,plugins/codecs} |
217 |
|
218 |
emake INSTALL_ROOT="${D}" install_mkspecs || die "emake install_mkspecs failed" |
219 |
|
220 |
if use doc; then |
221 |
emake INSTALL_ROOT="${D}" install_htmldocs || die "emake install_htmldocs failed." |
222 |
fi |
223 |
|
224 |
emake INSTALL_ROOT="${D}" install_translations || die "emake install_translations failed" |
225 |
|
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 || die "sed for qconfig.h failed." |
246 |
|
247 |
if use glib; then |
248 |
QCONFIG_DEFINE="$(use glib && echo QT_GLIB) |
249 |
$(use ssl && echo QT_OPENSSL)" |
250 |
install_qconfigs |
251 |
fi |
252 |
|
253 |
keepdir "${QTSYSCONFDIR}" |
254 |
} |