1 |
caleb 07/12/21 20:24:17 |
2 |
|
3 |
Modified: qt-4.4.0_rc1.ebuild ChangeLog |
4 |
Log: |
5 |
iv'e completely changed 4.4.0_rc1. Now it's a meta-ebuild that pulls in all of the smaller package deps. |
6 |
(Portage version: 2.1.3.16) |
7 |
|
8 |
Revision Changes Path |
9 |
1.7 x11-libs/qt/qt-4.4.0_rc1.ebuild |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/qt/qt-4.4.0_rc1.ebuild?rev=1.7&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/qt/qt-4.4.0_rc1.ebuild?rev=1.7&content-type=text/plain |
13 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/qt/qt-4.4.0_rc1.ebuild?r1=1.6&r2=1.7 |
14 |
|
15 |
Index: qt-4.4.0_rc1.ebuild |
16 |
=================================================================== |
17 |
RCS file: /var/cvsroot/gentoo-x86/x11-libs/qt/qt-4.4.0_rc1.ebuild,v |
18 |
retrieving revision 1.6 |
19 |
retrieving revision 1.7 |
20 |
diff -u -r1.6 -r1.7 |
21 |
--- qt-4.4.0_rc1.ebuild 20 Dec 2007 16:36:41 -0000 1.6 |
22 |
+++ qt-4.4.0_rc1.ebuild 21 Dec 2007 20:24:16 -0000 1.7 |
23 |
@@ -1,8 +1,6 @@ |
24 |
# Copyright 1999-2007 Gentoo Foundation |
25 |
# Distributed under the terms of the GNU General Public License v2 |
26 |
-# $Header: /var/cvsroot/gentoo-x86/x11-libs/qt/qt-4.4.0_rc1.ebuild,v 1.6 2007/12/20 16:36:41 caleb Exp $ |
27 |
- |
28 |
-inherit eutils flag-o-matic toolchain-funcs multilib |
29 |
+# $Header: /var/cvsroot/gentoo-x86/x11-libs/qt/qt-4.4.0_rc1.ebuild,v 1.7 2007/12/21 20:24:16 caleb Exp $ |
30 |
|
31 |
SRCTYPE="preview-opensource-src" |
32 |
DESCRIPTION="The Qt toolkit is a comprehensive C++ application development framework." |
33 |
@@ -15,266 +13,15 @@ |
34 |
|
35 |
LICENSE="|| ( QPL-1.0 GPL-2 )" |
36 |
SLOT="4" |
37 |
-KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" |
38 |
- |
39 |
-IUSE_INPUT_DEVICES="input_devices_wacom" |
40 |
- |
41 |
-IUSE="accessibility cups dbus debug doc examples firebird glib jpeg mng mysql nas nis odbc opengl pch postgres qt3support sqlite sqlite3 ssl tiff xinerama ${IUSE_INPUT_DEVICES}" |
42 |
- |
43 |
-RDEPEND="x11-libs/libXrandr |
44 |
- x11-libs/libXcursor |
45 |
- x11-libs/libXfont |
46 |
- x11-libs/libSM |
47 |
- xinerama? ( x11-libs/libXinerama ) |
48 |
- media-libs/fontconfig |
49 |
- >=media-libs/freetype-2 |
50 |
- media-libs/libpng |
51 |
- sys-libs/zlib |
52 |
- jpeg? ( media-libs/jpeg ) |
53 |
- mng? ( >=media-libs/libmng-1.0.9 ) |
54 |
- tiff? ( media-libs/tiff ) |
55 |
- nas? ( >=media-libs/nas-1.5 ) |
56 |
- odbc? ( dev-db/unixODBC ) |
57 |
- mysql? ( virtual/mysql ) |
58 |
- firebird? ( dev-db/firebird ) |
59 |
- sqlite3? ( =dev-db/sqlite-3* ) |
60 |
- sqlite? ( =dev-db/sqlite-2* ) |
61 |
- postgres? ( dev-db/libpq ) |
62 |
- cups? ( net-print/cups ) |
63 |
- glib? ( dev-libs/glib ) |
64 |
- ssl? ( dev-libs/openssl ) |
65 |
- input_devices_wacom? ( x11-libs/libXi x11-drivers/linuxwacom )" |
66 |
- |
67 |
-DEPEND="${RDEPEND} |
68 |
- xinerama? ( x11-proto/xineramaproto ) |
69 |
- x11-proto/xextproto |
70 |
- x11-proto/inputproto |
71 |
- dev-util/pkgconfig" |
72 |
- |
73 |
-PDEPEND="qt3support? ( =x11-libs/qt-qt3support-${PV} ) |
74 |
- dbus? ( =x11-libs/qt-dbus-${PV} ) |
75 |
- opengl? ( =x11-libs/qt-opengl-${PV} )" |
76 |
- |
77 |
-pkg_setup() { |
78 |
- QTBASEDIR=/usr/$(get_libdir)/qt4 |
79 |
- QTPREFIXDIR=/usr |
80 |
- QTBINDIR=/usr/bin |
81 |
- QTLIBDIR=/usr/$(get_libdir)/qt4 |
82 |
- QTPCDIR=/usr/$(get_libdir)/pkgconfig |
83 |
- QTDATADIR=/usr/share/qt4 |
84 |
- QTDOCDIR=/usr/share/doc/${PF} |
85 |
- QTHEADERDIR=/usr/include/qt4 |
86 |
- QTPLUGINDIR=${QTLIBDIR}/plugins |
87 |
- QTSYSCONFDIR=/etc/qt4 |
88 |
- QTTRANSDIR=${QTDATADIR}/translations |
89 |
- QTEXAMPLESDIR=${QTDATADIR}/examples |
90 |
- QTDEMOSDIR=${QTDATADIR}/demos |
91 |
- |
92 |
- PLATFORM=$(qt_mkspecs_dir) |
93 |
- |
94 |
-} |
95 |
- |
96 |
-qt_use() { |
97 |
- local flag="$1" |
98 |
- local feature="$1" |
99 |
- local enableval= |
100 |
- |
101 |
- [[ -n $2 ]] && feature=$2 |
102 |
- [[ -n $3 ]] && enableval="-$3" |
103 |
- |
104 |
- useq $flag && echo "${enableval}-${feature}" || echo "-no-${feature}" |
105 |
- return 0 |
106 |
-} |
107 |
- |
108 |
-qt_mkspecs_dir() { |
109 |
- # Allows us to define which mkspecs dir we want to use. |
110 |
- local spec |
111 |
- |
112 |
- case ${CHOST} in |
113 |
- *-freebsd*|*-dragonfly*) |
114 |
- spec="freebsd" ;; |
115 |
- *-openbsd*) |
116 |
- spec="openbsd" ;; |
117 |
- *-netbsd*) |
118 |
- spec="netbsd" ;; |
119 |
- *-darwin*) |
120 |
- spec="darwin" ;; |
121 |
- *-linux-*|*-linux) |
122 |
- spec="linux" ;; |
123 |
- *) |
124 |
- die "Unknown CHOST, no platform choosed." |
125 |
- esac |
126 |
- |
127 |
- CXX=$(tc-getCXX) |
128 |
- if [[ ${CXX/g++/} != ${CXX} ]]; then |
129 |
- spec="${spec}-g++" |
130 |
- elif [[ ${CXX/icpc/} != ${CXX} ]]; then |
131 |
- spec="${spec}-icc" |
132 |
- else |
133 |
- die "Unknown compiler ${CXX}." |
134 |
- fi |
135 |
- |
136 |
- echo "${spec}" |
137 |
-} |
138 |
- |
139 |
-src_unpack() { |
140 |
- |
141 |
- unpack ${A} |
142 |
- cd "${S}" |
143 |
- epatch "${FILESDIR}"/qt-4.2.3-hppa-ldcw-fix.patch |
144 |
- |
145 |
- cd "${S}"/mkspecs/$(qt_mkspecs_dir) |
146 |
- # set c/xxflags and ldflags |
147 |
- |
148 |
- # Don't let the user go too overboard with flags. If you really want to, uncomment |
149 |
- # out the line below and give 'er a whirl. |
150 |
- strip-flags |
151 |
- replace-flags -O3 -O2 |
152 |
- |
153 |
- if [[ $( gcc-fullversion ) == "3.4.6" && gcc-specs-ssp ]] ; then |
154 |
- ewarn "Appending -fno-stack-protector to CFLAGS/CXXFLAGS" |
155 |
- append-flags -fno-stack-protector |
156 |
- fi |
157 |
- |
158 |
- sed -i -e "s:QMAKE_CFLAGS_RELEASE.*=.*:QMAKE_CFLAGS_RELEASE=${CFLAGS}:" \ |
159 |
- -e "s:QMAKE_CXXFLAGS_RELEASE.*=.*:QMAKE_CXXFLAGS_RELEASE=${CXXFLAGS}:" \ |
160 |
- -e "s:QMAKE_LFLAGS_RELEASE.*=.*:QMAKE_LFLAGS_RELEASE=${LDFLAGS}:" \ |
161 |
- -e "/CONFIG/s:$: nostrip:" \ |
162 |
- qmake.conf |
163 |
- |
164 |
- # Do not link with -rpath. See bug #75181. |
165 |
- sed -i -e "s:QMAKE_RPATH.*=.*:QMAKE_RPATH=:" qmake.conf |
166 |
- |
167 |
- # Replace X11R6/ directories, so /usr/X11R6/lib -> /usr/lib |
168 |
- sed -i -e "s:X11R6/::" qmake.conf |
169 |
- |
170 |
- # The trolls moved the definitions of the above stuff for g++, so we need to edit those files |
171 |
- # separately as well. |
172 |
- cd "${S}"/mkspecs/common |
173 |
- |
174 |
- sed -i -e "s:QMAKE_CFLAGS_RELEASE.*=.*:QMAKE_CFLAGS_RELEASE=${CPPFLAGS} ${CFLAGS} ${ASFLAGS}:" \ |
175 |
- -e "s:QMAKE_CXXFLAGS_RELEASE.*=.*:QMAKE_CXXFLAGS_RELEASE=${CPPFLAGS} ${CXXFLAGS} ${ASFLAGS}:" \ |
176 |
- -e "s:QMAKE_LFLAGS_RELEASE.*=.*:QMAKE_LFLAGS_RELEASE=${LDFLAGS}:" \ |
177 |
- g++.conf |
178 |
- |
179 |
- # Do not link with -rpath. See bug #75181. |
180 |
- sed -i -e "s:QMAKE_RPATH.*=.*:QMAKE_RPATH=:" g++.conf |
181 |
- |
182 |
- # Replace X11R6/ directories, so /usr/X11R6/lib -> /usr/lib |
183 |
- sed -i -e "s:X11R6/::" linux.conf |
184 |
- |
185 |
- cd "${S}"/qmake |
186 |
- |
187 |
- sed -i -e "s:CXXFLAGS.*=:CXXFLAGS=${CPPFLAGS} ${CXXFLAGS} ${ASFLAGS} :" \ |
188 |
- -e "s:LFLAGS.*=:LFLAGS=${LDFLAGS} :" Makefile.unix |
189 |
- |
190 |
- cd "${S}" |
191 |
- |
192 |
-} |
193 |
- |
194 |
-src_compile() { |
195 |
- export PATH="${S}/bin:${PATH}" |
196 |
- export LD_LIBRARY_PATH="${S}/lib:${LD_LIBRARY_PATH}" |
197 |
- |
198 |
- [ $(get_libdir) != "lib" ] && myconf="${myconf} -L/usr/$(get_libdir)" |
199 |
- |
200 |
- # Disable visibility explicitly if gcc version isn't 4 |
201 |
- if [[ "$(gcc-major-version)" != "4" ]]; then |
202 |
- myconf="${myconf} -no-reduce-exports" |
203 |
- fi |
204 |
- |
205 |
- # Add a switch that will attempt to use recent binutils to reduce relocations. Should be harmless for other |
206 |
- # cases. From bug #178535 |
207 |
- myconf="${myconf} -reduce-relocations" |
208 |
- |
209 |
- myconf="${myconf} $(qt_use accessibility) $(qt_use cups) $(qt_use xinerama)" |
210 |
- myconf="${myconf} $(qt_use nis)" |
211 |
- |
212 |
- use nas && myconf="${myconf} -system-nas-sound" |
213 |
- |
214 |
- myconf="${myconf} -qt-gif -system-libpng -system-zlib" |
215 |
- myconf="${myconf} $(qt_use jpeg libjpeg system) $(qt_use tiff libtiff system)" |
216 |
- myconf="${myconf} $(qt_use mng libmng system)" |
217 |
- |
218 |
- use debug && myconf="${myconf} -debug -no-separate-debug-info" || myconf="${myconf} -release -no-separate-debug-info" |
219 |
- |
220 |
- use mysql && myconf="${myconf} -plugin-sql-mysql -I/usr/include/mysql -L/usr/$(get_libdir)/mysql" || myconf="${myconf} -no-sql-mysql" |
221 |
- use postgres && myconf="${myconf} -plugin-sql-psql -I/usr/include/postgresql/pgsql" || myconf="${myconf} -no-sql-psql" |
222 |
- use firebird && myconf="${myconf} -plugin-sql-ibase -I/opt/firebird/include" || myconf="${myconf} -no-sql-ibase" |
223 |
- use sqlite3 && myconf="${myconf} -plugin-sql-sqlite -system-sqlite" || myconf="${myconf} -no-sql-sqlite" |
224 |
- use sqlite && myconf="${myconf} -plugin-sql-sqlite2" || myconf="${myconf} -no-sql-sqlite2" |
225 |
- use odbc && myconf="${myconf} -plugin-sql-odbc" || myconf="${myconf} -no-sql-odbc" |
226 |
- |
227 |
- use glib && myconf="${myconf} -glib" || myconf="${myconf} -no-glib" |
228 |
- use ssl && myconf="${myconf} -openssl" || myconf="${myconf} -no-openssl" |
229 |
- |
230 |
- use pch && myconf="${myconf} -pch" || myconf="${myconf} -no-pch" |
231 |
- |
232 |
- use input_devices_wacom && myconf="${myconf} -tablet" || myconf="${myconf} -no-tablet" |
233 |
- |
234 |
- myconf="${myconf} -xrender -xrandr -xkb -xshape -sm" |
235 |
- |
236 |
- if ! use examples; then |
237 |
- myconf="${myconf} -nomake examples" |
238 |
- fi |
239 |
- |
240 |
- myconf="-stl -verbose -largefile -confirm-license \ |
241 |
- -platform ${PLATFORM} -xplatform ${PLATFORM} -no-rpath \ |
242 |
- -prefix ${QTPREFIXDIR} -bindir ${QTBINDIR} -libdir ${QTLIBDIR} -datadir ${QTDATADIR} \ |
243 |
- -docdir ${QTDOCDIR} -headerdir ${QTHEADERDIR} -plugindir ${QTPLUGINDIR} \ |
244 |
- -sysconfdir ${QTSYSCONFDIR} -translationdir ${QTTRANSDIR} \ |
245 |
- -examplesdir ${QTEXAMPLESDIR} -demosdir ${QTDEMOSDIR} ${myconf}" |
246 |
- |
247 |
- # Explictly don't compile these packages. |
248 |
- # Emerge "qt-webkit", "qt-phonon", etc for their functionality. |
249 |
- myconf="${myconf} -no-webkit -no-phonon -no-qt3support -no-qdbus -no-opengl" |
250 |
- |
251 |
- echo ./configure ${myconf} |
252 |
- ./configure ${myconf} || die |
253 |
- |
254 |
- emake all || die |
255 |
-} |
256 |
- |
257 |
-src_install() { |
258 |
- export PATH="${S}/bin:${PATH}" |
259 |
- export LD_LIBRARY_PATH="${S}/lib:${LD_LIBRARY_PATH}" |
260 |
- |
261 |
- emake INSTALL_ROOT="${D}" install_subtargets || die |
262 |
- emake INSTALL_ROOT="${D}" install_qmake || die |
263 |
- emake INSTALL_ROOT="${D}" install_mkspecs || die |
264 |
- |
265 |
- if use doc; then |
266 |
- emake INSTALL_ROOT="${D}" install_htmldocs || die |
267 |
- fi |
268 |
- |
269 |
- # Install the translations. This may get use flagged later somehow |
270 |
- emake INSTALL_ROOT="${D}" install_translations || die |
271 |
- |
272 |
- keepdir "${QTSYSCONFDIR}" |
273 |
- |
274 |
- sed -i -e "s:${S}/lib:${QTLIBDIR}:g" "${D}"/${QTLIBDIR}/*.la |
275 |
- sed -i -e "s:${S}/lib:${QTLIBDIR}:g" "${D}"/${QTLIBDIR}/*.prl |
276 |
- sed -i -e "s:${S}/lib:${QTLIBDIR}:g" "${D}"/${QTLIBDIR}/pkgconfig/*.pc |
277 |
- |
278 |
- # pkgconfig files refer to WORKDIR/bin as the moc and uic locations. Fix: |
279 |
- sed -i -e "s:${S}/bin:${QTBINDIR}:g" "${D}"/${QTLIBDIR}/pkgconfig/*.pc |
280 |
- |
281 |
- # Move .pc files into the pkgconfig directory |
282 |
- dodir ${QTPCDIR} |
283 |
- mv "${D}"/${QTLIBDIR}/pkgconfig/*.pc "${D}"/${QTPCDIR} |
284 |
- |
285 |
- # Install .desktop files, from bug #174033 |
286 |
- insinto /usr/share/applications |
287 |
- doins "${FILESDIR}"/qt4/*.desktop |
288 |
+KEYWORDS="~x86" |
289 |
|
290 |
- # List all the multilib libdirs |
291 |
- local libdirs |
292 |
- for libdir in $(get_all_libdirs); do |
293 |
- libdirs="${libdirs}:/usr/${libdir}/qt4" |
294 |
- done |
295 |
+IUSE="opengl" |
296 |
|
297 |
- cat > "${T}/44qt4" << EOF |
298 |
-LDPATH=${libdirs:1} |
299 |
-EOF |
300 |
- doenvd "${T}/44qt4" |
301 |
-} |
302 |
+RDEPEND="~x11-libs/qt-gui-${PV} |
303 |
+ opengl? ( ~x11-libs/qt-opengl-${PV} ) |
304 |
+ ~x11-libs/qt-svg-${PV} |
305 |
+ ~x11-libs/qt-test-${PV} |
306 |
+ ~x11-libs/qt-sql-${PV} |
307 |
+ ~x11-libs/qt-svg-${PV} |
308 |
+ ~x11-libs/qt-xmlpatterns-${PV} |
309 |
+ ~x11-libs/qt-test-${PV}" |
310 |
|
311 |
|
312 |
|
313 |
1.510 x11-libs/qt/ChangeLog |
314 |
|
315 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/qt/ChangeLog?rev=1.510&view=markup |
316 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/qt/ChangeLog?rev=1.510&content-type=text/plain |
317 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/qt/ChangeLog?r1=1.509&r2=1.510 |
318 |
|
319 |
Index: ChangeLog |
320 |
=================================================================== |
321 |
RCS file: /var/cvsroot/gentoo-x86/x11-libs/qt/ChangeLog,v |
322 |
retrieving revision 1.509 |
323 |
retrieving revision 1.510 |
324 |
diff -u -r1.509 -r1.510 |
325 |
--- ChangeLog 19 Dec 2007 18:05:12 -0000 1.509 |
326 |
+++ ChangeLog 21 Dec 2007 20:24:16 -0000 1.510 |
327 |
@@ -1,6 +1,10 @@ |
328 |
# ChangeLog for x11-libs/qt |
329 |
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 |
330 |
-# $Header: /var/cvsroot/gentoo-x86/x11-libs/qt/ChangeLog,v 1.509 2007/12/19 18:05:12 caleb Exp $ |
331 |
+# $Header: /var/cvsroot/gentoo-x86/x11-libs/qt/ChangeLog,v 1.510 2007/12/21 20:24:16 caleb Exp $ |
332 |
+ |
333 |
+ 21 Dec 2007; Caleb Tennis <caleb@g.o> qt-4.4.0_rc1.ebuild: |
334 |
+ I've completely changed this. Now it's a meta-ebuild that pulls in all of |
335 |
+ the smaller package deps. |
336 |
|
337 |
*qt-4.4.0_rc1 (19 Dec 2007) |
338 |
|
339 |
|
340 |
|
341 |
|
342 |
-- |
343 |
gentoo-commits@g.o mailing list |