blob: cb6e101d30a1ce96e55684be47c8c47ba6b37151 (
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
104
105
106
107
108
109
110
111
112
113
114
115
|
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Achim Gottinger <achim@gentoo.org>
# $Header: /var/cvsroot/gentoo-x86/kde-base/kdebase/kdebase-2.2.1.ebuild,v 1.3 2001/09/19 18:56:33 danarmak Exp $
S=${WORKDIR}/${P}
DESCRIPTION="KDE ${PV} - Base"
SRC_PATH="kde/stable/${PV}/src/${P}.tar.bz2"
SRC_URI="ftp://ftp.kde.org/pub/$SRC_PATH
ftp://ftp.fh-heilbronn.de/pub/mirrors/$SRC_PATH
ftp://ftp.sourceforge.net/pub/mirrors/$SRC_PATH"
HOMEPAGE="http://www.kde.org/"
DEPEND="~kde-base/kdelibs-${PV}
>=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 )
lame? ( =media-sound/lame-3.89b )
vorbis? ( >=media-libs/libvorbis-1.0_beta1 )
cups? ( net-print/cups )
ssl? ( dev-libs/openssl )
objprelink? ( dev-util/objprelink )"
src_unpack() {
cd ${WORKDIR}
unpack ${P}.tar.bz2
}
src_compile() {
local myconf
if [ "`use ldap`" ] ; then
myconf="--with-ldap"
else
myconf="--without-ldap"
fi
if [ "`use pam`" ] ; then
myconf="$myconf --with-pam"
else
myconf="$myconf --with-shadow"
fi
if [ "`use qtmt`" ] ; then
myconf="$myconf --enable-mt"
fi
if [ "`use mitshm`" ] ; then
myconf="$myconf --enable-mitshm"
fi
if [ -z "`use motif`" ] ; then
myconf="$myconf --without-motif"
fi
if [ -z "`use lame`" ] ; then
myconf="$myconf --without-lame"
fi
if [ -z "`use cups`" ] ; then
myconf="$myconf --disable-cups"
fi
if [ -z "`use vorbis`" ] ; then
myconf="$myconf --without-vorbis"
fi
if [ -z "`use opengl`" ] ; then
myconf="$myconf --without-gl"
fi
if [ -z "`use ssl`" ] ; then
myconf="$myconf --without-ssl"
fi
if [ "`use objprelink`" ] ; then
myconf="$myconf --enable-objprelink"
fi
./configure --host=${CHOST} --with-x \
${myconf} --with-xinerama || die
make || die
}
src_install() {
cd ${S}
make install DESTDIR=${D} || die
insinto /etc/pam.d
newins ${FILESDIR}/kscreensaver.pam kscreensaver
newins kde.pamd kde
dodoc AUTHORS ChangeLog README*
sed -e "s:^#\!/bin/sh:#\!/bin/sh --login:" ${D}/usr/bin/startkde > ${D}/usr/bin/startkde.tmp
mv ${D}/usr/bin/startkde.tmp ${D}/usr/bin/startkde
chmod a+x ${D}/usr/bin/startkde
exeinto /usr/X11R6/bin/wm
doexe ${FILESDIR}/{kde${PV},xsession}
cd ${D}/usr/X11R6/bin/wm
ln -sf kde${PV} kde
cd ${D}/usr/share/config/kdm
mv kdmrc kdmrc.orig
sed -e 's/SessionTypes=/SessionTypes=xsession,/' kdmrc.orig > kdmrc
rm kdmrc.orig
}
|