blob: 253a546ec1976fb82568e58018145ede14e64ed5 (
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
|
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/kde-base/kdeadmin/kdeadmin-3.1.2.ebuild,v 1.7 2003/09/06 23:54:21 msterret Exp $
inherit kde-dist
IUSE="pam foreign-package foreign-sysvinit"
DESCRIPTION="KDE administration tools (user manager, etc.)"
KEYWORDS="x86 ppc sparc alpha hppa"
newdepend "pam? ( >=sys-libs/pam-0.72 )
foreign-package? ( >=app-arch/rpm-4.0.4-r1 dev-libs/popt )"
use pam && myconf="$myconf --with-pam" || myconf="$myconf --without-pam --with-shadow"
if [ -n "`use foreign-package`" ]; then
myconf="$myconf --with-rpmlib"
else
myconf="$myconf --without-rpm"
KDE_REMOVE_DIR="$KDE_REMOVE_DIR kpackage"
fi
if [ -z "`use foreign-sysvinit`" ]; then
KDE_REMOVE_DIR="$KDE_REMOVE_DIR ksysv"
fi
need-automake 1.7
need-autoconf 2.5
# we only want to compile the lilo config module on x86, but there we want to make sure it's
# always compiled to ensure consistent behaviour of the package across both lilo and grub systems,
# because configure when left to its own devices will build lilo-config or not basd on whether
# lilo is present in the path.
# so, we make configure build it by removing the configure.in.in file that checks for
# lilo's presense
src_unpack() {
kde_src_unpack
use x86 && echo > ${S}/lilo-config/configure.in.in
}
src_compile() {
AMVERSION= "`automake --version | head -n 1 | cut -d " " -f4`"
if ["$AMVERSION" != "1.7.2" ]; then
rm -f configure configure.in
fi
kde_src_compile configure
kde_src_compile make
}
# TODO: add nis support
|