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-3.5.8-r1.ebuild
Date: Sat, 03 Nov 2007 16:11:24
Message-Id: E1IoLah-00079c-Kd@stork.gentoo.org
1 philantrop 07/11/03 16:11:19
2
3 Modified: ChangeLog
4 Added: kdelibs-3.5.8-r1.ebuild
5 Log:
6 Added several upstream patches: Un-break editable controls like zoom selectors. BSD patch that should fix startup problems. Incorrect username shortening in konqueror. Miscellaneous post-3.5.8 fixes.
7 (Portage version: 2.1.3.16)
8
9 Revision Changes Path
10 1.492 kde-base/kdelibs/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/kde-base/kdelibs/ChangeLog?rev=1.492&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/kde-base/kdelibs/ChangeLog?rev=1.492&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/kde-base/kdelibs/ChangeLog?r1=1.491&r2=1.492
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/kde-base/kdelibs/ChangeLog,v
19 retrieving revision 1.491
20 retrieving revision 1.492
21 diff -u -r1.491 -r1.492
22 --- ChangeLog 19 Oct 2007 22:27:24 -0000 1.491
23 +++ ChangeLog 3 Nov 2007 16:11:18 -0000 1.492
24 @@ -1,6 +1,16 @@
25 # ChangeLog for kde-base/kdelibs
26 # Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/kde-base/kdelibs/ChangeLog,v 1.491 2007/10/19 22:27:24 philantrop Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/kde-base/kdelibs/ChangeLog,v 1.492 2007/11/03 16:11:18 philantrop Exp $
29 +
30 +*kdelibs-3.5.8-r1 (03 Nov 2007)
31 +
32 + 03 Nov 2007; Wulf C. Krueger <philantrop@g.o>
33 + +kdelibs-3.5.8-r1.ebuild:
34 + Added several upstream patches:
35 + - Un-break editable controls like zoom selectors.
36 + - BSD patch that should fix startup problems.
37 + - Incorrect username shortening in konqueror.
38 + - Miscellaneous post-3.5.8 fixes.
39
40 *kdelibs-3.5.8 (19 Oct 2007)
41
42
43
44
45 1.1 kde-base/kdelibs/kdelibs-3.5.8-r1.ebuild
46
47 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/kde-base/kdelibs/kdelibs-3.5.8-r1.ebuild?rev=1.1&view=markup
48 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/kde-base/kdelibs/kdelibs-3.5.8-r1.ebuild?rev=1.1&content-type=text/plain
49
50 Index: kdelibs-3.5.8-r1.ebuild
51 ===================================================================
52 # Copyright 1999-2007 Gentoo Foundation
53 # Distributed under the terms of the GNU General Public License v2
54 # $Header: /var/cvsroot/gentoo-x86/kde-base/kdelibs/kdelibs-3.5.8-r1.ebuild,v 1.1 2007/11/03 16:11:19 philantrop Exp $
55
56 inherit kde flag-o-matic eutils multilib
57 set-kdedir 3.5
58
59 DESCRIPTION="KDE libraries needed by all KDE programs."
60 HOMEPAGE="http://www.kde.org/"
61 SRC_URI="mirror://kde/stable/${PV}/src/${P}.tar.bz2
62 mirror://gentoo/kdelibs-3.5-patchset-12.tar.bz2
63 mirror://gentoo/${P}-seli-xinerama.patch.bz2"
64
65 LICENSE="GPL-2 LGPL-2"
66 SLOT="3.5"
67 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
68 IUSE="acl alsa arts branding cups doc jpeg2k kerberos legacyssl utempter openexr spell tiff
69 avahi kernel_linux fam lua kdehiddenvisibility"
70
71 # Added aspell-en as dependency to work around bug 131512.
72 # Made openssl and zeroconf mandatory dependencies, see bug #172972 and #175984
73 RDEPEND="$(qt_min_version 3.3.3)
74 arts? ( >=kde-base/arts-3.5.5 )
75 app-arch/bzip2
76 >=media-libs/freetype-2
77 media-libs/fontconfig
78 >=dev-libs/libxslt-1.1.16
79 >=dev-libs/libxml2-2.6.6
80 >=dev-libs/libpcre-6.6
81 media-libs/libart_lgpl
82 net-dns/libidn
83 >=dev-libs/openssl-0.9.7d
84 acl? ( kernel_linux? ( sys-apps/acl ) )
85 alsa? ( media-libs/alsa-lib )
86 cups? ( >=net-print/cups-1.1.19 )
87 tiff? ( media-libs/tiff )
88 kerberos? ( virtual/krb5 )
89 jpeg2k? ( media-libs/jasper )
90 openexr? ( >=media-libs/openexr-1.2.2-r2 )
91 !avahi? ( net-misc/mDNSResponder !kde-misc/kdnssd-avahi )
92 fam? ( virtual/fam )
93 virtual/ghostscript
94 utempter? ( sys-libs/libutempter )
95 !kde-base/kde-env
96 lua? ( dev-lang/lua )
97 spell? ( >=app-text/aspell-0.60.5 >=app-dicts/aspell-en-6.0.0 )
98 >=sys-apps/portage-2.1.2.11
99 !kde-base/ksync"
100
101 DEPEND="${RDEPEND}
102 doc? ( app-doc/doxygen )
103 sys-devel/gettext"
104
105 RDEPEND="${RDEPEND}
106 x11-apps/rgb
107 x11-apps/iceauth"
108
109 PDEPEND="avahi? ( kde-misc/kdnssd-avahi )"
110
111 # Testing code is rather broken and merely for developer purposes, so disable it.
112 RESTRICT="test"
113
114 pkg_setup() {
115 if use legacyssl ; then
116 echo ""
117 elog "You have the legacyssl use flag enabled, which fixes issues with some broken"
118 elog "sites, but breaks others instead. It is strongly discouraged to use it."
119 elog "For more information, see bug #128922."
120 echo ""
121 fi
122
123 if ! use utempter ; then
124 echo ""
125 elog "On some setups, which rely on the correct update of utmp records, not using"
126 elog "utempter might not update them correctly. If you experience unexpected"
127 elog "behaviour, try to rebuild kde-base/kdelibs with utempter use-flag enabled."
128 echo ""
129 fi
130
131 if use alsa && ! built_with_use --missing true media-libs/alsa-lib midi; then
132 eerror "The alsa USE flag in this package enables ALSA support"
133 eerror "for libkmid, KDE midi library."
134 eerror "For this reason, you have to merge media-libs/alsa-lib"
135 eerror "with the midi USE flag enabled, or disable alsa USE flag"
136 eerror "for this package."
137 die "Missing midi USE flag on media-libs/alsa-lib"
138 fi
139 }
140
141 src_unpack() {
142 kde_src_unpack
143
144 if use legacyssl ; then
145 # This patch won't be included upstream, see bug #128922.
146 epatch "${WORKDIR}/patches/kdelibs_3.5.4-kssl-3des.patch"
147 fi
148
149 if use utempter ; then
150 # Bug #135818 is the eternal reference.
151 epatch "${WORKDIR}/patches/kdelibs-3.5_libutempter.patch"
152 fi
153
154 if use branding ; then
155 # Add "(Gentoo)" to khtml user agent.
156 epatch "${WORKDIR}/patches/kdelibs_3.5-cattlebrand.diff"
157 fi
158
159 # Xinerama patch from Lubos Lunak.
160 # http://ktown.kde.org/~seli/xinerama/
161 epatch "${WORKDIR}/${P}-seli-xinerama.patch"
162 }
163
164 src_compile() {
165 rm -f "${S}/configure"
166
167 myconf="--with-distribution=Gentoo --disable-fast-malloc
168 --with-libart --with-libidn --with-ssl
169 --without-hspell
170 $(use_enable fam libfam) $(use_enable kernel_linux dnotify)
171 $(use_with acl) $(use_with alsa)
172 $(use_with arts) $(use_enable cups)
173 $(use_with kerberos gssapi) $(use_with tiff)
174 $(use_with jpeg2k jasper) $(use_with openexr)
175 $(use_with utempter) $(use_with lua)
176 $(use_enable kernel_linux sendfile) --enable-mitshm
177 $(use_with spell aspell)"
178
179 if ! use avahi; then
180 myconf="${myconf} --enable-dnssd"
181 else
182 myconf="${myconf} --disable-dnssd"
183 fi
184
185 if has_version x11-apps/rgb; then
186 myconf="${myconf} --with-rgbfile=/usr/share/X11/rgb.txt"
187 fi
188
189 # fix bug 58179, bug 85593
190 # kdelibs-3.4.0 needed -fno-gcse; 3.4.1 needs -mminimal-toc; this needs a
191 # closer look... - corsair
192 use ppc64 && append-flags "-mminimal-toc"
193
194 # work around bug #120858, gcc 3.4.x -Os miscompilation
195 use x86 && replace-flags "-Os" "-O2" # see bug #120858
196
197 replace-flags "-O3" "-O2" # see bug #148180
198
199 export BINDNOW_FLAGS="$(bindnow-flags)"
200
201 kde_src_compile
202
203 if use doc; then
204 make apidox || die
205 fi
206 }
207
208 src_install() {
209 kde_src_install
210
211 if use doc; then
212 make DESTDIR="${D}" install-apidox || die
213 fi
214
215 # Needed to create lib -> lib64 symlink for amd64 2005.0 profile
216 if [ "${SYMLINK_LIB}" = "yes" ]; then
217 dosym $(get_abi_LIBDIR ${DEFAULT_ABI}) ${KDEDIR}/lib
218 fi
219
220 # Get rid of the disabled version of the kdnsd libraries
221 if use avahi; then
222 rm -rf "${D}/${PREFIX}"/$(get_libdir)/libkdnssd.*
223 fi
224
225 dodir /etc/env.d
226
227 # List all the multilib libdirs
228 local libdirs
229 for libdir in $(get_all_libdirs); do
230 libdirs="${libdirs}:${PREFIX}/${libdir}"
231 done
232
233 # Please note that the KDE install path has to be the last value in KDEDIRS.
234 cat <<EOF > "${D}"/etc/env.d/45kdepaths-${SLOT} # number goes down with version upgrade
235 PATH=${PREFIX}/bin
236 ROOTPATH=${PREFIX}/sbin:${PREFIX}/bin
237 LDPATH=${libdirs:1}
238 MANPATH=${PREFIX}/share/man
239 CONFIG_PROTECT="${PREFIX}/share/config ${PREFIX}/env ${PREFIX}/shutdown /usr/share/config"
240 KDEDIRS="/usr:/usr/local:${PREFIX}"
241 #KDE_IS_PRELINKED=1
242 XDG_DATA_DIRS="/usr/share:${PREFIX}/share:/usr/local/share"
243 COLON_SEPARATED="XDG_DATA_DIRS"
244 EOF
245
246 # Make sure the target for the revdep-rebuild stuff exists. Fixes bug 184441.
247 dodir /etc/revdep-rebuild
248
249 cat <<EOF > "${D}"/etc/revdep-rebuild/50-kde3
250 SEARCH_DIRS="${PREFIX}/bin ${PREFIX}/lib*"
251 EOF
252 }
253
254
255
256 --
257 gentoo-commits@g.o mailing list