blob: a78639cbbd6c79203082ac77cb4aff503c0d12e9 (
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
|
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Authors Dan Armak <danarmak@gentoo.org>, Bart Verwilst <verwilst@gentoo.org>
# $Header: /var/cvsroot/gentoo-x86/kde-base/kdebase/kdebase-3.0-r3.ebuild,v 1.2 2002/05/05 12:01:52 danarmak Exp $
. /usr/portage/eclass/inherit.eclass || die
inherit kde-dist
DESCRIPTION="${DESCRIPTION}Base"
newdepend ">=media-sound/cdparanoia-3.9.8
ldap? ( >=net-nds/openldap-1.2 )
pam? ( >=sys-libs/pam-0.73 )
motif? ( >=x11-libs/openmotif-2.1.30 )
encode? ( >=media-sound/lame-3.89b )
oggvorbis? ( >=media-libs/libvorbis-1.0_beta1 )
cups? ( net-print/cups )
ssl? ( >=dev-libs/openssl-0.9.6b )
media-sound/cdparanoia
opengl? ( virtual/opengl )" #this last for opengl screensavers
# samba? ( net-fs/samba ) #use flag doesn't exist yet and we don't want such a heavy dep by deafult
# lm_sensors? ( ?/lm_sensors ) # ebuild doesn't exist yet
src_unpack() {
base_src_unpack
kde_sandbox_patch ${S}/konsole ${S}/konsole/konsole
cd ${S}/konsole
for x in Makefile.am Makefile.in; do
mv $x $x.orig
sed -e 's:tipdir = $(DESTDIR)/$(kde_datadir):tipdir = $(kde_datadir):g' \
-e 's:updatedir = $(DESTDIR)/$(kde_datadir):updatedir = $(kde_datadir):g' $x.orig > $x
done
}
src_compile() {
kde_src_compile myconf
use ldap && myconf="$myconf --with-ldap" || myconf="$myconf --without-ldap"
use pam && myconf="$myconf --with-pam" || myconf="$myconf --with-shadow"
use motif && myconf="$myconf --with-motif" || myconf="$myconf --without-motif"
use encode && myconf="$myconf --with-lame" || myconf="$myconf --without-lame"
use cups && myconf="$myconf --with-cups" || myconf="$myconf --disable-cups"
use oggvorbis && myconf="$myconf --with-vorbis" || myconf="$myconf --without-vorbis"
use opengl && myconf="$myconf --with-gl" || myconf="$myconf --without-gl"
use ssl && myconf="$myconf --with-ssl" || myconf="$myconf --without-ssl"
use pam && myconf="$myconf --with-pam=yes" || myconf="$myconf --with-pam=no --with-shadow"
myconf="$myconf --with-dpms --with-cdparanoia"
kde_src_compile configure make
}
src_install() {
kde_src_install
insinto /etc/pam.d
newins ${FILESDIR}/kscreensaver.pam kscreensaver
newins kde.pamd kde
# startkde script
cd ${D}/${KDEDIR}/bin
patch -p0 < ${FILESDIR}/startkde-${PVR}-gentoo.diff || die
mv startkde startkde.orig
sed -e "s:_KDEDIR_:${KDEDIR}:" startkde.orig > startkde
rm startkde.orig
chmod a+x startkde
# x11 session script
cd ${T}
echo "#!/bin/sh
${KDEDIR}/bin/startkde" > kde-${PV}
chmod a+x kde-${PV}
# old scheme - compatibility
exeinto /usr/X11R6/bin/wm
doexe kde-${PV}
# new scheme - for now >=xfree-4.2-r3 only
exeinto /etc/X11/Sessions
doexe kde-${PV}
cd ${D}/${KDEDIR}/share/config/kdm || die
mv kdmrc kdmrc.orig
sed -e 's:SessionTypes=:SessionTypes=kde-3.0,kde-2.2.2,:' kdmrc.orig > kdmrc
rm kdmrc.orig
mkdir -p ${D}/usr/share/pixmaps
mv ${D}/usr/kde/3/share/apps/kdesktop/pics/* ${D}/usr/share/pixmaps/
rm -rf ${D}/usr/kde/3/share/apps/kdesktop/pics/
cd ${D}/usr/kde/3/share/apps/kdesktop/
ln -sf /usr/share/pixmaps/ pics
rmdir ${D}/${KDEDIR}/share/templates/.source/emptydir
}
pkg_postinst() {
mkdir -p ${KDEDIR}/share/templates/.source/emptydir
}
|