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