Gentoo Archives: gentoo-commits

From: "Wulf Krueger (philantrop)" <philantrop@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in kde-base/kdelibs: ChangeLog kdelibs-4.0.3.ebuild
Date: Thu, 03 Apr 2008 20:57:17
Message-Id: E1JhWUj-0003YN-KV@stork.gentoo.org
1 philantrop 08/04/03 20:57:13
2
3 Modified: ChangeLog
4 Added: kdelibs-4.0.3.ebuild
5 Log:
6 Version bump to KDE 4.0.3. This is still not intended for mainstream so DO NOT KEYWORD IT without talking to the KDE herd first.
7 (Portage version: 2.1.4.4)
8
9 Revision Changes Path
10 1.521 kde-base/kdelibs/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/kde-base/kdelibs/ChangeLog?rev=1.521&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/kde-base/kdelibs/ChangeLog?rev=1.521&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/kde-base/kdelibs/ChangeLog?r1=1.520&r2=1.521
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/kde-base/kdelibs/ChangeLog,v
19 retrieving revision 1.520
20 retrieving revision 1.521
21 diff -u -r1.520 -r1.521
22 --- ChangeLog 28 Mar 2008 23:34:31 -0000 1.520
23 +++ ChangeLog 3 Apr 2008 20:57:13 -0000 1.521
24 @@ -1,6 +1,13 @@
25 # ChangeLog for kde-base/kdelibs
26 # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/kde-base/kdelibs/ChangeLog,v 1.520 2008/03/28 23:34:31 philantrop Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/kde-base/kdelibs/ChangeLog,v 1.521 2008/04/03 20:57:13 philantrop Exp $
29 +
30 +*kdelibs-4.0.3 (03 Apr 2008)
31 +
32 + 03 Apr 2008; Wulf C. Krueger <philantrop@g.o>
33 + +kdelibs-4.0.3.ebuild:
34 + Version bump to KDE 4.0.3. This is still not intended for mainstream so DO
35 + NOT KEYWORD IT without talking to the KDE herd first.
36
37 *kdelibs-3.5.9-r1 (28 Mar 2008)
38
39
40
41
42 1.1 kde-base/kdelibs/kdelibs-4.0.3.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/kde-base/kdelibs/kdelibs-4.0.3.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/kde-base/kdelibs/kdelibs-4.0.3.ebuild?rev=1.1&content-type=text/plain
46
47 Index: kdelibs-4.0.3.ebuild
48 ===================================================================
49 # Copyright 1999-2008 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/kde-base/kdelibs/kdelibs-4.0.3.ebuild,v 1.1 2008/04/03 20:57:13 philantrop Exp $
52
53 EAPI="1"
54
55 CPPUNIT_REQUIRED="optional"
56 OPENGL_REQUIRED="optional"
57 inherit kde4-base
58
59 DESCRIPTION="KDE libraries needed by all KDE programs."
60 HOMEPAGE="http://www.kde.org/"
61
62 KEYWORDS="~amd64 ~x86"
63 IUSE="3dnow acl alsa altivec bindist +bzip2 debug doc fam htmlhandbook jpeg2k
64 kerberos mmx nls openexr +semantic-desktop spell sse sse2 ssl zeroconf"
65 LICENSE="GPL-2 LGPL-2"
66 RESTRICT="test"
67
68 COMMONDEPEND="
69 !<kde-base/kdebase-3.5.7-r6
70 !<kde-base/kdebase-startkde-3.5.7-r1
71 !=kde-base/kdebase-3.5.8
72 !=kde-base/kdebase-3.5.8-r1
73 !=kde-base/kdebase-3.5.8-r2
74 !=kde-base/kdebase-startkde-3.5.8
75 >=app-misc/strigi-0.5.7
76 >=dev-libs/libxml2-2.6.6
77 >=dev-libs/libxslt-1.1.17
78 media-libs/fontconfig
79 >=media-libs/freetype-2
80 media-libs/giflib
81 media-libs/jpeg
82 media-libs/libpng
83 >=sys-apps/dbus-0.91
84 x11-libs/libICE
85 x11-libs/libSM
86 x11-libs/libX11
87 x11-libs/libXau
88 x11-libs/libXcursor
89 x11-libs/libXdmcp
90 x11-libs/libXext
91 x11-libs/libXfixes
92 x11-libs/libXft
93 x11-libs/libXpm
94 x11-libs/libXrender
95 x11-libs/libXtst
96 >=x11-misc/shared-mime-info-0.20
97 acl? ( kernel_linux? ( sys-apps/acl ) )
98 alsa? ( >=media-libs/alsa-lib-1.0.14a )
99 fam? ( virtual/fam )
100 jpeg2k? ( media-libs/jasper )
101 kerberos? ( virtual/krb5 )
102 nls? ( virtual/libintl )
103 openexr? ( >=media-libs/openexr-1.2.2-r2 media-libs/ilmbase )
104 opengl? ( virtual/opengl )
105 >=dev-libs/libpcre-4.5
106 semantic-desktop? ( >=dev-libs/soprano-2.0.0 )
107 spell? ( app-text/aspell app-dicts/aspell-en app-text/enchant )
108 ssl? ( >=dev-libs/openssl-0.9.7d )
109 zeroconf? ( || ( net-dns/avahi
110 !bindist? ( net-misc/mDNSResponder ) ) )
111 "
112
113 DEPEND="${COMMONDEPEND}
114 doc? ( app-doc/doxygen )
115 sys-devel/gettext"
116
117 RDEPEND="${COMMONDEPEND}
118 x11-apps/rgb
119 x11-apps/iceauth"
120
121 # Patch to respect the sandbox when cmake tries to create symlinks,
122 # or executes an external program that tries to write files.
123 PATCHES="${FILESDIR}/e-tempdir.patch
124 ${FILESDIR}/${PN}-4.0.2-X11-optional.patch
125 ${FILESDIR}/${PN}-4.0.2-alsa-optional.patch"
126 # Create CMake switches to make Xcomposite, Xinerama & Xscreensaver optional.
127
128 pkg_setup() {
129 if has_version x11-libs/qt-core:4; then
130 ewarn "KDE ${PV} doesn't work well with Qt-4.4, expect strange bugs."
131 ewarn "It is highly recommend, that you install x11-libs/qt-4.3.4,"
132 ewarn "recompile ${P} and all of its dependencies if you want"
133 ewarn "to use KDE 4.0.2."
134 fi
135 KDE4_BUILT_WITH_USE_CHECK="--missing true sys-apps/dbus X"
136 use alsa && KDE4_BUILT_WITH_USE_CHECK="${KDE4_BUILT_WITH_USE_CHECK}
137 --missing true media-libs/alsa-lib midi"
138 if use zeroconf && has_version net-dns/avahi; then
139 KDE4_BUILT_WITH_USE_CHECK="${KDE4_BUILT_WITH_USE_CHECK}
140 net-dns/avahi mdnsresponder-compat"
141 fi
142
143 kde4-base_pkg_setup
144 }
145
146 src_compile() {
147 if use zeroconf; then
148 if has_version net-dns/avahi; then
149 mycmakeargs="${mycmakeargs} -DWITH_Avahi=ON -DWITH_DNSSD=OFF"
150 elif has_version net-misc/mDNSResponder; then
151 mycmakeargs="${mycmakeargs} -DWITH_Avahi=OFF -DWITH_DNSSD=ON"
152 else
153 die "USE=\"zeroconf\" enabled but neither net-dns/avahi nor net-misc/mDNSResponder were found."
154 fi
155 fi
156
157 mycmakeargs="${mycmakeargs}
158 -DWITH_HSPELL=OFF
159 $(cmake-utils_has 3dnow X86_3DNOW)
160 $(cmake-utils_has altivec PPC_ALTIVEC)
161 $(cmake-utils_has mmx X86_MMX)
162 $(cmake-utils_has sse X86_SSE)
163 $(cmake-utils_has sse2 X86_SSE2)
164 $(cmake-utils_use_with acl ACL)
165 $(cmake-utils_use_with alsa Alsa)
166 $(cmake-utils_use_with bzip2 BZip2)
167 $(cmake-utils_use_with fam FAM)
168 $(cmake-utils_use_with jpeg2k Jasper)
169 $(cmake-utils_use_with kerberos GSSAPI)
170 $(cmake-utils_use_with nls Libintl)
171 $(cmake-utils_use_with openexr OpenEXR)
172 $(cmake-utils_use_with opengl OpenGL)
173 $(cmake-utils_use_with semantic-desktop Soprano)
174 $(cmake-utils_use_with spell ASPELL)
175 $(cmake-utils_use_with spell ENCHANT)
176 $(cmake-utils_use_with ssl OpenSSL)
177 "
178
179 kde4-base_src_compile
180
181 # The building of apidox is not managed anymore by the build system
182 if use doc; then
183 einfo "Building API documentation"
184 cd "${S}"/doc/api/
185 ./doxygen.sh "${S}" || die "APIDOX generation failed"
186 fi
187 }
188
189 src_install() {
190 kde4-base_src_install
191
192 # Some external applications need FindXine.cmake. Therefore upstream moved it
193 # to kdelibs in trunk. Doing the same for :kde-4. See bug #209701.
194 insinto ${KDEDIR}/share/apps/cmake/modules/
195 doins "${FILESDIR}"/FindXine.cmake || die "doins FindXine failed."
196
197 if use doc; then
198 einfo "Installing API documentation. This could take a bit of time."
199 cd "${S}"/doc/api/
200 docinto /HTML/en/kdelibs-apidox
201 dohtml -r ${P}-apidocs/* || die "Install phase of KDE4 API Documentation failed"
202 fi
203
204 dodir /etc/env.d
205 dodir /etc/revdep-rebuild
206
207 # List all the multilib libdirs
208 local _libdir _libdirs
209 for _libdir in $(get_all_libdirs); do
210 _libdirs="${_libdirs}:${PREFIX}/${_libdir}"
211 done
212 _libdirs=${_libdirs#:}
213
214 cat <<-EOF > "${T}"/44kdepaths-${SLOT} # number goes down with version bump
215 PATH="${PREFIX}/bin"
216 ROOTPATH="${PREFIX}/sbin:${PREFIX}/bin"
217 LDPATH="${_libdirs}"
218 MANPATH="${PREFIX}/share/man"
219 CONFIG_PROTECT="${PREFIX}/share/config ${PREFIX}/env ${PREFIX}/shutdown /usr/share/config"
220 KDEDIRS="/usr:/usr/local:${PREFIX}"
221 #KDE_IS_PRELINKED=1
222 XDG_DATA_DIRS="/usr/share:${PREFIX}/share:/usr/local/share"
223 COLON_SEPARATED="XDG_DATA_DIRS"
224 EOF
225 doenvd "${T}"/44kdepaths-${SLOT}
226
227 # make sure 'source /etc/profile' doesn't hose the PATH
228 dodir /etc/profile.d
229 cat <<-'EOF' > "${D}"/etc/profile.d/44kdereorderpaths-${SLOT}.sh
230 if [ -n "${KDEDIR}" ]; then
231 export PATH=${KDEDIR}/bin:$(echo ${PATH} | sed "s#${KDEDIR}/s\?bin:##g")
232 export ROOTPATH=${KDEDIR}/sbin:${KDEDIR}/bin:$(echo ${PATH} | sed "s#${KDEDIR}/s\?bin:##g")
233 fi
234 EOF
235
236 cat <<-EOF > "${D}/etc/revdep-rebuild/50-kde-${SLOT}"
237 SEARCH_DIRS="${PREFIX}/bin ${PREFIX}/lib*"
238 EOF
239 }
240
241 src_test() {
242 # FIXME: Disable kate tests
243 mycmakeargs="${mycmakeargs}
244 -DKHTML_BUILD_TESTREGRESSION=ON"
245 kde4-base_src_test
246 }
247
248 pkg_postinst() {
249 if use zeroconf; then
250 echo
251 elog "To make zeroconf support available in KDE make sure that the 'mdnsd' daemon"
252 elog "is running. Make sure also that multicast dns lookups are enabled by editing"
253 elog "the 'hosts:' line in /etc/nsswitch.conf to include 'mdns', e.g.:"
254 elog " hosts: files mdns dns"
255 echo
256 fi
257
258 kde4-base_pkg_postinst
259 }
260
261
262
263 --
264 gentoo-commits@l.g.o mailing list