Gentoo Archives: gentoo-commits

From: "Theo Chatzimichos (tampakrap)" <tampakrap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in kde-base/kdelibs: ChangeLog kdelibs-3.5.10-r6.ebuild
Date: Fri, 29 May 2009 23:39:09
Message-Id: E1MABfG-0006Lp-KQ@stork.gentoo.org
1 tampakrap 09/05/29 23:39:06
2
3 Modified: ChangeLog
4 Added: kdelibs-3.5.10-r6.ebuild
5 Log:
6 Revision bump:
7 add patch for kjs when compiled with gcc-4.4, thanks to Robert Forster, bug 270926
8 remove symlink that causes doxygen to hang, bug 264767
9 add patch for khtml, bug 243476
10 restored (updated with kdeprefix) patch to handle kde4 apps in kde3 menu, removed kdeglobals as it completely screws kde3 session when kde4 is installed
11 in /usr, by reavertm
12 (Portage version: 2.2_rc33/cvs/Linux x86_64)
13
14 Revision Changes Path
15 1.598 kde-base/kdelibs/ChangeLog
16
17 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/kde-base/kdelibs/ChangeLog?rev=1.598&view=markup
18 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/kde-base/kdelibs/ChangeLog?rev=1.598&content-type=text/plain
19 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/kde-base/kdelibs/ChangeLog?r1=1.597&r2=1.598
20
21 Index: ChangeLog
22 ===================================================================
23 RCS file: /var/cvsroot/gentoo-x86/kde-base/kdelibs/ChangeLog,v
24 retrieving revision 1.597
25 retrieving revision 1.598
26 diff -u -r1.597 -r1.598
27 --- ChangeLog 29 May 2009 19:52:59 -0000 1.597
28 +++ ChangeLog 29 May 2009 23:39:06 -0000 1.598
29 @@ -1,6 +1,21 @@
30 # ChangeLog for kde-base/kdelibs
31 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
32 -# $Header: /var/cvsroot/gentoo-x86/kde-base/kdelibs/ChangeLog,v 1.597 2009/05/29 19:52:59 flameeyes Exp $
33 +# $Header: /var/cvsroot/gentoo-x86/kde-base/kdelibs/ChangeLog,v 1.598 2009/05/29 23:39:06 tampakrap Exp $
34 +
35 +*kdelibs-3.5.10-r6 (30 May 2009)
36 +
37 + 30 May 2009; Theo Chatzimichos <tampakrap@g.o>
38 + -files/4.1.3-cmake-config.patch, +kdelibs-3.5.10-r6.ebuild,
39 + files/kdelibs-3.5.10-kde4-apps.patch, +files/kdelibs-3.5.10-khtml.patch,
40 + +files/kdelibs-3.5.10-kjs-gcc44.patch:
41 + Revision bump:
42 + add patch for kjs when compiled with gcc-4.4, thanks to Robert Forster,
43 + bug 270926
44 + remove symlink that causes doxygen to hang, bug 264767
45 + add patch for khtml, bug 243476
46 + restored (updated with kdeprefix) patch to handle kde4 apps in kde3 menu,
47 + removed kdeglobals as it completely screws kde3 session when kde4 is
48 + installed in /usr, by reavertm
49
50 29 May 2009; Diego E. Pettenò <flameeyes@g.o>
51 kdelibs-3.5.9.ebuild, kdelibs-3.5.9-r1.ebuild, kdelibs-3.5.9-r2.ebuild,
52
53
54
55 1.1 kde-base/kdelibs/kdelibs-3.5.10-r6.ebuild
56
57 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/kde-base/kdelibs/kdelibs-3.5.10-r6.ebuild?rev=1.1&view=markup
58 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/kde-base/kdelibs/kdelibs-3.5.10-r6.ebuild?rev=1.1&content-type=text/plain
59
60 Index: kdelibs-3.5.10-r6.ebuild
61 ===================================================================
62 # Copyright 1999-2009 Gentoo Foundation
63 # Distributed under the terms of the GNU General Public License v2
64 # $Header: /var/cvsroot/gentoo-x86/kde-base/kdelibs/kdelibs-3.5.10-r6.ebuild,v 1.1 2009/05/29 23:39:06 tampakrap Exp $
65
66 EAPI="1"
67 inherit kde flag-o-matic eutils multilib
68 set-kdedir 3.5
69
70 DESCRIPTION="KDE libraries needed by all KDE programs."
71 HOMEPAGE="http://www.kde.org/"
72 SRC_URI="mirror://kde/stable/${PV}/src/${P}.tar.bz2
73 mirror://gentoo/kdelibs-3.5-patchset-15.tar.bz2
74 mirror://gentoo/kde-3.5.9-seli-xinerama.tar.bz2"
75
76 LICENSE="GPL-2 LGPL-2"
77 SLOT="3.5"
78 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
79 IUSE="acl alsa arts bindist branding cups doc jpeg2k kerberos legacyssl utempter openexr spell tiff
80 avahi kernel_linux fam lua kdehiddenvisibility"
81
82 # Added aspell-en as dependency to work around bug 131512.
83 # Made openssl and zeroconf mandatory dependencies, see bug #172972 and #175984
84 RDEPEND="
85 !=kde-base/artsplugin-mpeglib-3.5*
86 !=kde-base/artsplugin-mpg123-3.5*
87 !kde-base/kdeaccessibility
88 !kde-base/kdeaddons
89 !kde-base/kdeadmin
90 !kde-base/kdeartwork
91 !kde-base/kdebase
92 !kde-base/kdeedu
93 !kde-base/kdegames
94 !kde-base/kdegraphics
95 !kde-base/kde
96 !kde-base/kdemultimedia
97 !kde-base/kdenetwork
98 !kde-base/kdepim
99 !kde-base/kdesdk
100 !kde-base/kdetoys
101 !kde-base/kdeutils
102 !kde-base/kdewebdev
103 !kde-base/ksync
104 !=kde-base/mpeglib-3.5*
105 app-arch/bzip2
106 >=dev-libs/libxslt-1.1.16
107 >=dev-libs/libxml2-2.6.6
108 >=dev-libs/libpcre-6.6
109 >=dev-libs/openssl-0.9.7d
110 media-libs/fontconfig
111 >=media-libs/freetype-2
112 media-libs/libart_lgpl
113 net-dns/libidn
114 >=sys-apps/portage-2.1.2.11
115 virtual/ghostscript
116 x11-libs/libXext
117 >=x11-libs/qt-3.3.3:3
118 acl? (
119 virtual/acl
120 )
121 alsa? ( media-libs/alsa-lib )
122 arts? ( ~kde-base/arts-3.5.10 )
123 !avahi? (
124 !bindist? (
125 !kde-misc/kdnssd-avahi
126 net-misc/mDNSResponder
127 )
128 )
129 cups? ( >=net-print/cups-1.1.19 )
130 fam? ( virtual/fam )
131 jpeg2k? ( media-libs/jasper )
132 kerberos? ( virtual/krb5 )
133 lua? ( dev-lang/lua )
134 openexr? ( >=media-libs/openexr-1.2.2-r2 )
135 spell? (
136 >=app-dicts/aspell-en-6.0.0
137 >=app-text/aspell-0.60.5
138 )
139 tiff? ( media-libs/tiff )
140 utempter? ( sys-libs/libutempter )
141 "
142
143 DEPEND="${RDEPEND}
144 sys-devel/gettext
145 doc? ( app-doc/doxygen )
146 "
147 RDEPEND="${RDEPEND}
148 !<=kde-base/kdebase-startkde-3.5.10-r3
149 x11-apps/rgb
150 x11-apps/iceauth
151 >=x11-misc/xdg-utils-1.0.2-r3
152 "
153 PDEPEND="
154 avahi? ( kde-misc/kdnssd-avahi )
155 bindist? ( kde-misc/kdnssd-avahi )
156 "
157
158 # Testing code is rather broken and merely for developer purposes, so disable it.
159 RESTRICT="test"
160
161 pkg_setup() {
162 if use legacyssl ; then
163 echo ""
164 elog "You have the legacyssl use flag enabled, which fixes issues with some broken"
165 elog "sites, but breaks others instead. It is strongly discouraged to use it."
166 elog "For more information, see bug #128922."
167 echo ""
168 fi
169
170 if ! use utempter ; then
171 echo ""
172 elog "On some setups, which rely on the correct update of utmp records, not using"
173 elog "utempter might not update them correctly. If you experience unexpected"
174 elog "behaviour, try to rebuild kde-base/kdelibs with utempter use-flag enabled."
175 echo ""
176 fi
177
178 if use alsa && ! built_with_use --missing true media-libs/alsa-lib midi; then
179 eerror "The alsa USE flag in this package enables ALSA support"
180 eerror "for libkmid, KDE midi library."
181 eerror "For this reason, you have to merge media-libs/alsa-lib"
182 eerror "with the midi USE flag enabled, or disable alsa USE flag"
183 eerror "for this package."
184 die "Missing midi USE flag on media-libs/alsa-lib"
185 fi
186 }
187
188 src_unpack() {
189 kde_src_unpack
190
191 # remove this symlink, bug 264767
192 rm -f "${WORKDIR}/${P}"/kdeprint/kdeprint
193
194 if use legacyssl ; then
195 # This patch won't be included upstream, see bug #128922.
196 epatch "${WORKDIR}/patches/kdelibs_3.5.4-kssl-3des.patch"
197 fi
198
199 if use utempter ; then
200 # Bug #135818 is the eternal reference.
201 epatch "${WORKDIR}/patches/kdelibs-3.5_libutempter.patch"
202 fi
203
204 if use branding ; then
205 # Add "(Gentoo)" to khtml user agent.
206 epatch "${WORKDIR}/patches/kdelibs_3.5-cattlebrand.diff"
207 fi
208
209 # Xinerama patch by Lubos Lunak.
210 # http://ktown.kde.org/~seli/xinerama/
211 epatch "${WORKDIR}/${PN}-xinerama.patch"
212
213 # patch that fixes kde4 in menus (adapted from archlinux)
214 epatch "${FILESDIR}/${P}-kde4-apps.patch"
215
216 #Fix glibc-2.10 compilation ( Bug 270404 )
217 epatch "${FILESDIR}/${P}-glibc-2.10.patch"
218
219 # bug 247817
220 epatch "${FILESDIR}/${PN}-3.5-perl.xml.patch"
221
222 # bug 270926
223 epatch "${FILESDIR}/${P}-kjs-gcc44.patch"
224
225 # bug 243476
226 epatch "${FILESDIR}/${P}-khtml.patch"
227 }
228
229 src_compile() {
230 rm -f "${S}/configure"
231
232 myconf="--with-distribution=Gentoo --disable-fast-malloc
233 --with-libart --with-libidn --with-ssl
234 --without-hspell
235 $(use_enable fam libfam) $(use_enable kernel_linux dnotify)
236 $(use_with acl) $(use_with alsa)
237 $(use_with arts) $(use_enable cups)
238 $(use_with kerberos gssapi) $(use_with tiff)
239 $(use_with jpeg2k jasper) $(use_with openexr)
240 $(use_with utempter) $(use_with lua)
241 $(use_enable kernel_linux sendfile) --enable-mitshm
242 $(use_with spell aspell)"
243
244 if use avahi || use bindist ; then
245 myconf="${myconf} --disable-dnssd"
246 else
247 myconf="${myconf} --enable-dnssd"
248 fi
249
250 if has_version x11-apps/rgb; then
251 myconf="${myconf} --with-rgbfile=/usr/share/X11/rgb.txt"
252 fi
253
254 # fix bug 58179, bug 85593
255 # kdelibs-3.4.0 needed -fno-gcse; 3.4.1 needs -mminimal-toc; this needs a
256 # closer look... - corsair
257 use ppc64 && append-flags "-mminimal-toc"
258
259 # work around bug #120858, gcc 3.4.x -Os miscompilation
260 use x86 && replace-flags "-Os" "-O2" # see bug #120858
261
262 replace-flags "-O3" "-O2" # see bug #148180
263
264 kde_src_compile
265
266 if use doc; then
267 emake apidox || die
268 fi
269 }
270
271 src_install() {
272 kde_src_install
273
274 if use doc; then
275 emake DESTDIR="${D}" install-apidox || die
276 fi
277
278 # Needed to create lib -> lib64 symlink for amd64 2005.0 profile
279 if [ "${SYMLINK_LIB}" = "yes" ]; then
280 dosym $(get_abi_LIBDIR ${DEFAULT_ABI}) ${KDEDIR}/lib
281 fi
282
283 # Get rid of the disabled version of the kdnsd libraries
284 if use avahi || use bindist ; then
285 rm -rf "${D}/${PREFIX}"/$(get_libdir)/libkdnssd.*
286 fi
287
288 dodir /etc/env.d
289
290 # List all the multilib libdirs
291 local libdirs
292 for libdir in $(get_all_libdirs); do
293 libdirs="${PREFIX}/${libdir}:${libdirs}"
294 done
295
296 # KDE implies that the install path is listed first in KDEDIRS and the user
297 # directory (implicitly added) to be the last entry. Doing otherwise breaks
298 # certain functionality. Do not break this (once again *sigh*), but read the code.
299 # KDE saves the installed path implicitly and so this is not needed, /usr
300 # is set in ${PREFIX}/share/config/kdeglobals and so KDEDIRS is not needed.
301 cat <<EOF > "${D}"/etc/env.d/45kdepaths-${SLOT} # number goes down with version upgrade
302 PATH=${PREFIX}/bin
303 ROOTPATH=${PREFIX}/sbin:${PREFIX}/bin
304 LDPATH=${libdirs}
305 MANPATH=${PREFIX}/share/man
306 CONFIG_PROTECT="${PREFIX}/share/config ${PREFIX}/env ${PREFIX}/shutdown /usr/share/config"
307 #KDE_IS_PRELINKED=1
308 # Excessive flushing to disk as in releases before KDE 3.5.10. Usually you don't want that.
309 #KDE_EXTRA_FSYNC=1
310 XDG_DATA_DIRS="${PREFIX}/share"
311 EOF
312
313 # Install shell script to run KDE 3 applications from outside of the KDE 3 desktop
314 # See http://lists.kde.org/?t=120569055200005&r=1&w=2 for reference
315
316 # List all the multilib libdirs
317 local _libdir _libdirs
318 for _libdir in $(get_all_libdirs); do
319 _libdirs="${_libdirs}:${PREFIX}/${_libdir}"
320 done
321 _libdirs=${_libdirs#:}
322
323 # Merge KDE prefix and LDPATH
324 sed -e "s#@REPLACE_PREFIX@#${PREFIX}#" \
325 -e "s#@REPLACE_LIBS@#${_libdirs}#" \
326 -i "${WORKDIR}/patches/kde3" || die "sed failed"
327 dobin "${WORKDIR}/patches/kde3"
328
329 # Make sure the target for the revdep-rebuild stuff exists. Fixes bug 184441.
330 dodir /etc/revdep-rebuild
331
332 cat <<EOF > "${D}"/etc/revdep-rebuild/50-kde3
333 SEARCH_DIRS="${PREFIX}/bin ${PREFIX}/lib*"
334 EOF
335 }