Gentoo Archives: gentoo-commits

From: "Alexey Shvetsov (alexxy)" <alexxy@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in kde-base/kdelibs: kdelibs-4.4.5.ebuild ChangeLog
Date: Wed, 30 Jun 2010 15:37:19
Message-Id: 20100630153632.E019A2CF56@corvid.gentoo.org
1 alexxy 10/06/30 15:36:32
2
3 Modified: ChangeLog
4 Added: kdelibs-4.4.5.ebuild
5 Log:
6 [kde-base] Bump KDE SC 4.4.5 =)
7 (Portage version: 2.2_rc67_p182/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.692 kde-base/kdelibs/ChangeLog
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/kde-base/kdelibs/ChangeLog?rev=1.692&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/kde-base/kdelibs/ChangeLog?rev=1.692&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/kde-base/kdelibs/ChangeLog?r1=1.691&r2=1.692
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/kde-base/kdelibs/ChangeLog,v
19 retrieving revision 1.691
20 retrieving revision 1.692
21 diff -u -r1.691 -r1.692
22 --- ChangeLog 27 Jun 2010 18:02:55 -0000 1.691
23 +++ ChangeLog 30 Jun 2010 15:36:32 -0000 1.692
24 @@ -1,6 +1,11 @@
25 # ChangeLog for kde-base/kdelibs
26 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/kde-base/kdelibs/ChangeLog,v 1.691 2010/06/27 18:02:55 fauli Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/kde-base/kdelibs/ChangeLog,v 1.692 2010/06/30 15:36:32 alexxy Exp $
29 +
30 +*kdelibs-4.4.5 (30 Jun 2010)
31 +
32 + 30 Jun 2010; Alexey Shvetsov <alexxy@g.o> +kdelibs-4.4.5.ebuild:
33 + Version bump
34
35 27 Jun 2010; Christian Faulhammer <fauli@g.o> kdelibs-4.4.4.ebuild:
36 x86 stable, bug 322791
37
38
39
40 1.1 kde-base/kdelibs/kdelibs-4.4.5.ebuild
41
42 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/kde-base/kdelibs/kdelibs-4.4.5.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/kde-base/kdelibs/kdelibs-4.4.5.ebuild?rev=1.1&content-type=text/plain
44
45 Index: kdelibs-4.4.5.ebuild
46 ===================================================================
47 # Copyright 1999-2010 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/kde-base/kdelibs/kdelibs-4.4.5.ebuild,v 1.1 2010/06/30 15:36:32 alexxy Exp $
50
51 EAPI="3"
52
53 CPPUNIT_REQUIRED="optional"
54 OPENGL_REQUIRED="optional"
55 WEBKIT_REQUIRED="always"
56 inherit kde4-base fdo-mime
57
58 DESCRIPTION="KDE libraries needed by all KDE programs."
59 HOMEPAGE="http://www.kde.org/"
60
61 KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
62 LICENSE="LGPL-2.1"
63 IUSE="3dnow acl alsa altivec bindist +bzip2 debug doc fam +handbook jpeg2k kerberos
64 lzma mmx nls openexr policykit semantic-desktop spell sse sse2 ssl zeroconf"
65
66 # needs the kate regression testsuite from svn
67 RESTRICT="test"
68
69 COMMONDEPEND="
70 app-crypt/qca:2
71 >=app-misc/strigi-0.6.3
72 ~dev-libs/libattica-0.1.2
73 dev-libs/libpcre[unicode]
74 dev-libs/libxml2
75 dev-libs/libxslt
76 media-libs/fontconfig
77 media-libs/freetype:2
78 media-libs/giflib
79 media-libs/jpeg:0
80 media-libs/libpng
81 sys-libs/zlib
82 >=x11-misc/shared-mime-info-0.60
83 acl? ( virtual/acl )
84 alsa? ( media-libs/alsa-lib )
85 aqua? (
86 >=media-sound/phonon-4.3.80
87 sys-apps/dbus
88 )
89 !aqua? (
90 >=media-sound/phonon-4.3.80[xcb]
91 sys-apps/dbus[X]
92 x11-libs/libICE
93 x11-libs/libSM
94 x11-libs/libX11
95 x11-libs/libXau
96 x11-libs/libXcursor
97 x11-libs/libXdmcp
98 x11-libs/libXext
99 x11-libs/libXfixes
100 x11-libs/libXft
101 x11-libs/libXpm
102 x11-libs/libXrender
103 x11-libs/libXtst
104 !kernel_SunOS? ( sys-libs/libutempter )
105 )
106 bzip2? ( app-arch/bzip2 )
107 fam? ( virtual/fam )
108 jpeg2k? ( media-libs/jasper )
109 kerberos? ( virtual/krb5 )
110 lzma? ( app-arch/xz-utils )
111 openexr? (
112 media-libs/openexr
113 media-libs/ilmbase
114 )
115 policykit? ( sys-auth/polkit-qt )
116 semantic-desktop? (
117 >=dev-libs/shared-desktop-ontologies-0.2
118 >=dev-libs/soprano-2.3.73[dbus,raptor,redland]
119 )
120 spell? ( app-text/enchant )
121 ssl? ( dev-libs/openssl )
122 zeroconf? (
123 || (
124 net-dns/avahi[mdnsresponder-compat]
125 !bindist? ( net-misc/mDNSResponder )
126 )
127 )
128 "
129 DEPEND="${COMMONDEPEND}
130 doc? ( app-doc/doxygen )
131 nls? ( virtual/libintl )
132 "
133 RDEPEND="${COMMONDEPEND}
134 !dev-libs/conversion
135 !dev-libs/kunitconversion
136 !x11-libs/qt-phonon
137 !<=kde-misc/kdnssd-avahi-0.1.2:0
138 >=app-crypt/gnupg-2.0.11
139 app-misc/ca-certificates
140 $(add_kdebase_dep kde-env)
141 !aqua? (
142 x11-apps/iceauth
143 x11-apps/rgb
144 >=x11-misc/xdg-utils-1.0.2-r3
145 )
146 "
147 PDEPEND="
148 policykit? ( >=sys-auth/polkit-kde-0.95.1 )
149 semantic-desktop? ( $(add_kdebase_dep nepomuk) )
150 "
151
152 # Blockers added due to packages from old versions, removed in the meanwhile
153 # as well as for file collisions
154 add_blocker libknotificationitem
155 add_blocker libkworkspace '<4.3.66'
156 # @since 4.4 - kpilot is gone (blocker added to help upgrades)
157 add_blocker kpilot
158 # Block some old versions of KDE-3.5 packages that don't work well with KDE-4
159 add_blocker kdebase 0 3.5.9-r4:3.5
160 add_blocker kdebase-startkde 0 3.5.10:3.5
161 add_blocker kdelibs 0 '<3.5.10:3.5'
162 # libnepomukquery moved to kdelibs from plasma-workspace between 4.3.74 -> 4.3.75
163 add_blocker plasma-workspace '<4.3.75'
164
165 PATCHES=(
166 "${FILESDIR}/dist/01_gentoo_set_xdg_menu_prefix.patch"
167 "${FILESDIR}/dist/02_gentoo_append_xdg_config_dirs.patch"
168 "${FILESDIR}/dist/23_solid_no_double_build.patch"
169 "${FILESDIR}/${PN}-4.3.80-module-suffix.patch"
170 "${FILESDIR}/${PN}-4.4.66-macos-unbundle.patch"
171 "${FILESDIR}/${PN}-4.3.3-klauncher_kdeinit.patch"
172 "${FILESDIR}/${PN}-4.3.3-klauncher_kioslave.patch"
173 "${FILESDIR}/${PN}-4.3.3-klauncher_mac.patch"
174 "${FILESDIR}/${PN}-4.4.3-mimetypes.patch"
175 )
176
177 src_prepare() {
178 kde4-base_src_prepare
179
180 # Rename applications.menu (needs 01_gentoo_set_xdg_menu_prefix.patch to work)
181 local menu_prefix="kde-${SLOT}-"
182 sed -e "s|FILES[[:space:]]applications.menu|FILES applications.menu RENAME ${menu_prefix}applications.menu|g" \
183 -i kded/CMakeLists.txt || die "Sed on CMakeLists.txt for applications.menu failed."
184 sed -e "s|@REPLACE_MENU_PREFIX@|${menu_prefix}|g" \
185 -i kded/vfolder_menu.cpp || die "Sed on vfolder_menu.cpp failed."
186
187 if use aqua; then
188 sed -i -e \
189 "s:BUNDLE_INSTALL_DIR \"/Applications:BUNDLE_INSTALL_DIR \"${EPREFIX}/${APP_BUNDLE_DIR}:g" \
190 cmake/modules/FindKDE4Internal.cmake || die "failed to sed FindKDE4Internal.cmake"
191
192 #if [[ ${CHOST} == *-darwin8 ]]; then
193 sed -i -e \
194 "s:set(_add_executable_param MACOSX_BUNDLE):remove(_add_executable_param MACOSX_BUNDLE):g" \
195 cmake/modules/KDE4Macros.cmake || die "failed to sed KDE4Macros.cmake"
196 #fi
197
198 # solid/solid/backends/iokit doesn't properly link, so disable it.
199 sed -e "s|\(APPLE\)|(FALSE)|g" -i solid/solid/CMakeLists.txt \
200 || die "disabling solid/solid/backends/iokit failed"
201 sed -e "s|m_backend = .*Backends::IOKit.*;|m_backend = 0;|g" -i solid/solid/managerbase.cpp \
202 || die "disabling solid/solid/backends/iokit failed"
203
204 # There's no fdatasync on OSX and the check fails to detect that.
205 sed -e "/HAVE_FDATASYNC/ d" -i config.h.cmake \
206 || die "disabling fdatasync failed"
207
208 # Fix nameser include to nameser8_compat
209 sed -e "s|nameser8_compat.h|nameser_compat.h|g" -i kio/misc/kpac/discovery.cpp \
210 || die "fixing nameser include failed"
211 append-flags -DHAVE_ARPA_NAMESER8_COMPAT_H=1
212
213 # Try to fix kkeyserver_mac
214 epatch "${FILESDIR}"/${PN}-4.3.80-kdeui_util_kkeyserver_mac.patch
215 fi
216
217 if [[ ${CHOST} == *-solaris* ]] ; then
218 epatch "${FILESDIR}/kdelibs-4.3.2-solaris-ksyscoca.patch"
219 # getgrouplist not in solaris libc
220 epatch "${FILESDIR}/kdelibs-4.3.2-solaris-getgrouplist.patch"
221 # solaris has no d_type element in dir_ent
222 epatch "${FILESDIR}/kdelibs-4.3.2-solaris-fileunix.patch"
223 fi
224 }
225
226 src_configure() {
227 if use zeroconf; then
228 if has_version net-dns/avahi; then
229 mycmakeargs=(-DWITH_Avahi=ON -DWITH_DNSSD=OFF)
230 elif has_version net-misc/mDNSResponder; then
231 mycmakeargs=(-DWITH_Avahi=OFF -DWITH_DNSSD=ON)
232 else
233 die "USE=\"zeroconf\" enabled but neither net-dns/avahi nor net-misc/mDNSResponder were found."
234 fi
235 else
236 mycmakeargs=(-DWITH_Avahi=OFF -DWITH_DNSSD=OFF)
237 fi
238 if use kdeprefix; then
239 HME=".kde${SLOT}"
240 else
241 HME=".kde4"
242 fi
243 mycmakeargs+=(
244 -DWITH_HSPELL=OFF
245 -DWITH_ASPELL=OFF
246 -DKDE_DEFAULT_HOME=${HME}
247 -DKAUTH_BACKEND=POLKITQT-1
248 $(cmake-utils_use_build handbook doc)
249 $(cmake-utils_use_has 3dnow X86_3DNOW)
250 $(cmake-utils_use_has altivec PPC_ALTIVEC)
251 $(cmake-utils_use_has mmx X86_MMX)
252 $(cmake-utils_use_has sse X86_SSE)
253 $(cmake-utils_use_has sse2 X86_SSE2)
254 $(cmake-utils_use_with acl)
255 $(cmake-utils_use_with alsa)
256 $(cmake-utils_use_with bzip2 BZip2)
257 $(cmake-utils_use_with fam)
258 $(cmake-utils_use_with jpeg2k Jasper)
259 $(cmake-utils_use_with kerberos GSSAPI)
260 $(cmake-utils_use_with lzma LibLZMA)
261 $(cmake-utils_use_with nls Libintl)
262 $(cmake-utils_use_with openexr OpenEXR)
263 $(cmake-utils_use_with opengl OpenGL)
264 $(cmake-utils_use_with policykit PolkitQt-1)
265 $(cmake-utils_use_with semantic-desktop Soprano)
266 $(cmake-utils_use_with semantic-desktop SharedDesktopOntologies)
267 $(cmake-utils_use_with spell ENCHANT)
268 $(cmake-utils_use_with ssl OpenSSL)
269 )
270 kde4-base_src_configure
271 }
272
273 src_compile() {
274 kde4-base_src_compile
275
276 # The building of apidox is not managed anymore by the build system
277 if use doc; then
278 einfo "Building API documentation"
279 cd "${S}"/doc/api/
280 ./doxygen.sh "${S}" || die "APIDOX generation failed"
281 fi
282 }
283
284 src_install() {
285 kde4-base_src_install
286
287 # use system certificates
288 rm -f "${ED}/${KDEDIR}"/share/apps/kssl/ca-bundle.crt || die
289 dosym /etc/ssl/certs/ca-certificates.crt \
290 "${KDEDIR}"/share/apps/kssl/ca-bundle.crt || die
291
292 if use doc; then
293 einfo "Installing API documentation. This could take a bit of time."
294 cd "${S}"/doc/api/
295 docinto /HTML/en/kdelibs-apidox
296 dohtml -r ${P}-apidocs/* || die "Install phase of KDE4 API Documentation failed"
297 fi
298
299 if use aqua; then
300 einfo "fixing ${PN} plugins"
301
302 local _PV=${PV:0:3}.0
303 local _dir=${EKDEDIR}/$(get_libdir)/kde4/plugins/script
304
305 install_name_tool -id \
306 "${_dir}/libkrossqtsplugin.${_PV}.dylib" \
307 "${D}/${_dir}/libkrossqtsplugin.${_PV}.dylib" \
308 || die "failed fixing libkrossqtsplugin.${_PV}.dylib"
309
310 einfo "fixing ${PN} cmake detection files"
311 #sed -i -e \
312 # "s:if (HAVE_XKB):if (HAVE_XKB AND NOT APPLE):g" \
313 echo -e "set(XKB_FOUND FALSE)\nset(HAVE_XKB FALSE)" > \
314 "${ED}"/${KDEDIR}/share/apps/cmake/modules/FindXKB.cmake \
315 || die "failed fixing FindXKB.cmake"
316 fi
317 }
318
319 pkg_postinst() {
320 fdo-mime_mime_database_update
321
322 if use zeroconf; then
323 echo
324 elog "To make zeroconf support available in KDE make sure that the 'mdnsd' daemon"
325 elog "is running."
326 echo
327 einfo "If you also want to use zeroconf for hostname resolution, emerge sys-auth/nss-mdns"
328 einfo "and enable multicast dns lookups by editing the 'hosts:' line in /etc/nsswitch.conf"
329 einfo "to include 'mdns', e.g.:"
330 einfo " hosts: files mdns dns"
331 echo
332 fi
333
334 elog "Your homedir is set to \${HOME}/${HME}"
335 echo
336
337 if ! has_version sys-apps/hal; then
338 echo
339 ewarn "You need sys-apps/hal for new device notifications, power management and any"
340 ewarn "other hardware related functionalities to work."
341 echo
342 fi
343
344 kde4-base_pkg_postinst
345 }
346
347 pkg_prerm() {
348 # Remove ksycoca4 global database
349 rm -f "${EROOT}${PREFIX}"/share/kde4/services/ksycoca4
350 }
351
352 pkg_postrm() {
353 fdo-mime_mime_database_update
354
355 kde4-base_pkg_postrm
356 }