blob: 37e3b2b8e37af51298b416e7eac6376d8a2f20c0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/kde-base/libkdepim/libkdepim-3.5.9.ebuild,v 1.8 2008/05/18 20:52:48 maekke Exp $
KMNAME=kdepim
EAPI="1"
inherit kde-meta eutils
SRC_URI="${SRC_URI}
mirror://gentoo/kdepim-3.5-patchset-04.tar.bz2"
DESCRIPTION="common library for KDE PIM apps"
KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 sparc x86 ~x86-fbsd"
IUSE=""
RDEPEND=">=kde-base/libkcal-${PV}:${SLOT}
!<=kde-base/kmail-3.5.6-r1"
DEPEND="${RDEPEND}
x11-apps/xhost"
KMCOPYLIB="libkcal libkcal"
KMEXTRA="libemailfunctions/
pixmaps"
KMEXTRACTONLY="kmail/hi16-app-kmail.png
kmail/hi22-app-kmail.png
kmail/hi32-app-kmail.png
kmail/hi48-app-kmail.png
kmail/hi64-app-kmail.png
kmail/hi128-app-kmail.png"
src_unpack() {
kde-meta_src_unpack
# Call Qt 3 designer
sed -i -e "s:\"designer\":\"${QTDIR}/bin/designer\":g" "${S}/libkdepim/kcmdesignerfields.cpp" || die "sed failed"
if ! xhost >> /dev/null 2>/dev/null; then
einfo "User ${USER} has no X access, disabling tests."
sed -e "s:tests::" -i libkdepim/Makefile.am || die "sed failed"
fi
}
src_install() {
kde-meta_src_install
# Install KMail icons with libkdepim to work around bug #136810.
for res in 16 22 32 48 64 128 ; do
dodir ${KDEDIR}/share/icons/hicolor/${res}x${res}/apps/
cp kmail/hi${res}-app-kmail.png "${D}/${KDEDIR}/share/icons/hicolor/${res}x${res}/apps/kmail.png"
done
}
|