Gentoo Archives: gentoo-commits

From: "Arfrever Frehtes Taifersar Arahesis (arfrever)" <arfrever@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in kde-base/kdelibs: kdelibs-4.2.4-r3.ebuild ChangeLog kdelibs-4.2.4-r2.ebuild
Date: Sat, 20 Jun 2009 13:43:31
Message-Id: E1MI0qu-0003qi-VP@stork.gentoo.org
1 arfrever 09/06/20 13:43:28
2
3 Modified: ChangeLog
4 Added: kdelibs-4.2.4-r3.ebuild
5 Removed: kdelibs-4.2.4-r2.ebuild
6 Log:
7 Update patch for bug #274566.
8 (Portage version: 13655-svn/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.611 kde-base/kdelibs/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/kde-base/kdelibs/ChangeLog?rev=1.611&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/kde-base/kdelibs/ChangeLog?rev=1.611&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/kde-base/kdelibs/ChangeLog?r1=1.610&r2=1.611
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/kde-base/kdelibs/ChangeLog,v
20 retrieving revision 1.610
21 retrieving revision 1.611
22 diff -u -r1.610 -r1.611
23 --- ChangeLog 18 Jun 2009 02:33:54 -0000 1.610
24 +++ ChangeLog 20 Jun 2009 13:43:28 -0000 1.611
25 @@ -1,6 +1,13 @@
26 # ChangeLog for kde-base/kdelibs
27 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/kde-base/kdelibs/ChangeLog,v 1.610 2009/06/18 02:33:54 jer Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/kde-base/kdelibs/ChangeLog,v 1.611 2009/06/20 13:43:28 arfrever Exp $
30 +
31 +*kdelibs-4.2.4-r3 (20 Jun 2009)
32 +
33 + 20 Jun 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@g.o>
34 + -kdelibs-4.2.4-r2.ebuild, +kdelibs-4.2.4-r3.ebuild,
35 + files/4.2.4-CVE-2009-1690.patch:
36 + Update patch for bug #274566.
37
38 18 Jun 2009; Jeroen Roovers <jer@g.o> kdelibs-3.5.10-r6.ebuild:
39 Stable for HPPA (bug #271889).
40
41
42
43 1.1 kde-base/kdelibs/kdelibs-4.2.4-r3.ebuild
44
45 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/kde-base/kdelibs/kdelibs-4.2.4-r3.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/kde-base/kdelibs/kdelibs-4.2.4-r3.ebuild?rev=1.1&content-type=text/plain
47
48 Index: kdelibs-4.2.4-r3.ebuild
49 ===================================================================
50 # Copyright 1999-2009 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/kde-base/kdelibs/kdelibs-4.2.4-r3.ebuild,v 1.1 2009/06/20 13:43:28 arfrever Exp $
53
54 EAPI="2"
55
56 CPPUNIT_REQUIRED="optional"
57 OPENGL_REQUIRED="optional"
58 WEBKIT_REQUIRED="always"
59 inherit kde4-base fdo-mime
60
61 DESCRIPTION="KDE libraries needed by all KDE programs."
62 HOMEPAGE="http://www.kde.org/"
63
64 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~x86"
65 LICENSE="LGPL-2.1"
66 IUSE="3dnow acl alsa altivec bindist +bzip2 debug doc fam +handbook jpeg2k kerberos
67 mmx nls openexr +semantic-desktop spell sse sse2 ssl zeroconf"
68
69 # needs the kate regression testsuite from svn
70 RESTRICT="test"
71
72 COMMONDEPEND="
73 >=app-misc/strigi-0.6.3[dbus,qt4]
74 dev-libs/libpcre
75 dev-libs/libxml2
76 dev-libs/libxslt
77 >=kde-base/automoc-0.9.87
78 media-fonts/dejavu
79 media-libs/fontconfig
80 media-libs/freetype:2
81 media-libs/giflib
82 media-libs/jpeg
83 media-libs/libpng
84 >=media-sound/phonon-4.3.1[xcb]
85 sys-apps/dbus[X]
86 sys-libs/libutempter
87 sys-libs/zlib
88 x11-libs/libICE
89 x11-libs/libSM
90 x11-libs/libX11
91 x11-libs/libXau
92 x11-libs/libXcursor
93 x11-libs/libXdmcp
94 x11-libs/libXext
95 x11-libs/libXfixes
96 x11-libs/libXft
97 x11-libs/libXpm
98 x11-libs/libXrender
99 x11-libs/libXtst
100 x11-misc/shared-mime-info
101 acl? ( virtual/acl )
102 alsa? ( media-libs/alsa-lib[midi] )
103 bzip2? ( app-arch/bzip2 )
104 fam? ( virtual/fam )
105 jpeg2k? ( media-libs/jasper )
106 kerberos? ( virtual/krb5 )
107 openexr? (
108 media-libs/openexr
109 media-libs/ilmbase
110 )
111 semantic-desktop? ( >=dev-libs/soprano-2.2.2[dbus] )
112 spell? (
113 app-dicts/aspell-en
114 app-text/aspell
115 app-text/enchant
116 )
117 ssl? ( dev-libs/openssl )
118 zeroconf? (
119 || (
120 net-dns/avahi[mdnsresponder-compat]
121 !bindist? ( net-misc/mDNSResponder )
122 )
123 )
124 "
125 DEPEND="${COMMONDEPEND}
126 doc? ( app-doc/doxygen )
127 nls? ( virtual/libintl )
128 "
129 # Blockers added for !kdeprefix? due to packages from old versions,
130 # removed in the meanwhile
131 # kde-base/libplasma
132 # kde-base/knewsticker
133 # kde-base/kpercentage
134 # kde-base/ktnef
135 RDEPEND="${COMMONDEPEND}
136 !<=kde-base/kdebase-3.5.9-r4
137 !<=kde-base/kdebase-startkde-3.5.10
138 !<kde-base/kdelibs-3.5.10
139 !x11-libs/qt-phonon
140 !kdeprefix? (
141 !kde-base/kitchensync:4.1
142 !kde-base/knewsticker:4.1
143 !kde-base/kpercentage:4.1
144 !kde-base/ktnef:4.1
145 !kde-base/libplasma
146 !<=kde-misc/kdnssd-avahi-0.1.2:0
147 )
148 kdeprefix? (
149 !<=kde-misc/kdnssd-avahi-0.1.2:0
150 )
151 x11-apps/iceauth
152 x11-apps/rgb
153 >=x11-misc/xdg-utils-1.0.2-r3
154 "
155 PDEPEND="
156 >=kde-base/kde-env-${PV}:${SLOT}[kdeprefix=]
157 >=kde-base/kdebase-data-${PV}:${SLOT}[kdeprefix=]
158 "
159
160 # upstream patches / dist patches
161 PATCHES=(
162 "${FILESDIR}/dist/09_disable_debug_messages_if_not_explicitly_enabled.patch"
163 "${FILESDIR}/dist/20_use_dejavu_as_default_font.patch"
164 "${FILESDIR}/dist/23_solid_no_double_build.patch"
165 "${FILESDIR}/${PN}-${SLOT}-fixx11h.h.patch"
166 "${FILESDIR}/${PV}-fixPopupForPlasmaboard.patch"
167 "${FILESDIR}/${PV}-CVE-2009-1690.patch"
168 )
169
170 src_prepare() {
171 sed -e 's/find_package(ACL)/macro_optional_find_package(ACL)/' \
172 -i CMakeLists.txt || die "Failed to make ACL disabled even when present in system."
173
174 # Rename applications.menu
175 sed -e "s|FILES[[:space:]]applications.menu|FILES applications.menu RENAME kde-${SLOT}-applications.menu|g" \
176 -i kded/CMakeLists.txt || die "Sed for applications.menu failed."
177
178 kde4-base_src_prepare
179 }
180
181 src_configure() {
182 if use zeroconf; then
183 if has_version net-dns/avahi; then
184 mycmakeargs="${mycmakeargs} -DWITH_Avahi=ON -DWITH_DNSSD=OFF"
185 elif has_version net-misc/mDNSResponder; then
186 mycmakeargs="${mycmakeargs} -DWITH_Avahi=OFF -DWITH_DNSSD=ON"
187 else
188 die "USE=\"zeroconf\" enabled but neither net-dns/avahi nor net-misc/mDNSResponder were found."
189 fi
190 else
191 mycmakeargs="${mycmakeargs} -DWITH_Avahi=OFF -DWITH_DNSSD=OFF"
192 fi
193 if use kdeprefix; then
194 HME=".kde${SLOT}"
195 else
196 HME=".kde4"
197 fi
198 mycmakeargs="${mycmakeargs}
199 -DWITH_HSPELL=OFF
200 -DKDE_DEFAULT_HOME=${HME}
201 $(cmake-utils_use_build handbook doc)
202 $(cmake-utils_use_has 3dnow X86_3DNOW)
203 $(cmake-utils_use_has altivec PPC_ALTIVEC)
204 $(cmake-utils_use_has mmx X86_MMX)
205 $(cmake-utils_use_has sse X86_SSE)
206 $(cmake-utils_use_has sse2 X86_SSE2)
207 $(cmake-utils_use_with acl ACL)
208 $(cmake-utils_use_with alsa Alsa)
209 $(cmake-utils_use_with bzip2 BZip2)
210 $(cmake-utils_use_with fam FAM)
211 $(cmake-utils_use_with jpeg2k Jasper)
212 $(cmake-utils_use_with kerberos GSSAPI)
213 $(cmake-utils_use_with nls Libintl)
214 $(cmake-utils_use_with openexr OpenEXR)
215 $(cmake-utils_use_with opengl OpenGL)
216 $(cmake-utils_use_with semantic-desktop Soprano)
217 $(cmake-utils_use_with spell ASPELL)
218 $(cmake-utils_use_with spell ENCHANT)
219 $(cmake-utils_use_with ssl OpenSSL)
220 "
221 kde4-base_src_configure
222 }
223
224 src_compile() {
225 kde4-base_src_compile
226
227 # The building of apidox is not managed anymore by the build system
228 if use doc; then
229 einfo "Building API documentation"
230 cd "${S}"/doc/api/
231 ./doxygen.sh "${S}" || die "APIDOX generation failed"
232 fi
233 }
234
235 src_install() {
236 kde4-base_src_install
237
238 if use doc; then
239 einfo "Installing API documentation. This could take a bit of time."
240 cd "${S}"/doc/api/
241 docinto /HTML/en/kdelibs-apidox
242 dohtml -r ${P}-apidocs/* || die "Install phase of KDE4 API Documentation failed"
243 fi
244 }
245
246 pkg_postinst() {
247 fdo-mime_mime_database_update
248 if use zeroconf; then
249 echo
250 elog "To make zeroconf support available in KDE make sure that the 'mdnsd' daemon"
251 elog "is running. Make sure also that multicast dns lookups are enabled by editing"
252 elog "the 'hosts:' line in /etc/nsswitch.conf to include 'mdns', e.g.:"
253 elog " hosts: files mdns dns"
254 echo
255 fi
256 elog "Your homedir is set to "'${HOME}'"/${HME}"
257 elog
258 elog "If you experience weird application behavior (missing texts, etc.) run as root:"
259 elog "# chmod 755 -R /usr/share/config $PREFIX/share/config"
260
261 kde4-base_pkg_postinst
262 }
263
264 pkg_prerm() {
265 # Remove ksycoca4 global database
266 rm -f "${PREFIX}"/share/kde4/services/ksycoca4
267 }
268
269 pkg_postrm() {
270 fdo-mime_mime_database_update
271
272 kde4-base_pkg_postrm
273 }