/[gentoo-x86]/eclass/kde-base.eclass
Gentoo

Diff of /eclass/kde-base.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.5 Revision 1.18
1# Copyright 1999-2000 Gentoo Technologies, Inc. 1# Copyright 1999-2000 Gentoo Technologies, Inc.
2# Distributed under the terms of the GNU General Public License, v2 or later 2# Distributed under the terms of the GNU General Public License v2
3# Author Dan Armak <danarmak@gentoo.org> 3# Author Dan Armak <danarmak@gentoo.org>
4# $Header: /var/cvsroot/gentoo-x86/eclass/Attic/kde-base.eclass,v 1.5 2001/09/29 13:12:52 danarmak Exp $ 4# $Header: /var/cvsroot/gentoo-x86/eclass/Attic/kde-base.eclass,v 1.18 2002/10/25 19:57:51 vapier Exp $
5# This is the kde ebuild for >=2.2.1 kde base packages. Don't use for kdelibs though :-) 5# This is the kde ebuild for std. kde-dependant apps which follow configure/make/make install
6. /usr/portage/eclass/inherit.eclass || die 6# procedures and have std. configure options.
7inherit c autoconf base || die 7
8inherit kde
8ECLASS=kde-base 9ECLASS=kde-base
10INHERITED="$INHERITED $ECLASS"
9 11
10DESCRIPTION="KDE ${PV} - " 12newdepend /c
11HOMEPAGE="http://www.kde.org/"
12 13
13SRC_PATH="kde/stable/${PV}/src/${P}.tar.bz2" 14DESCRIPTION="Based on the $ECLASS eclass"
14SRC_URI="ftp://ftp.kde.org/pub/$SRC_PATH 15HOMEPAGE="http://apps.kde.com/"
15 ftp://ftp.fh-heilbronn.de/pub/mirrors/$SRC_PATH
16 ftp://ftp.sourceforge.net/pub/mirrors/$SRC_PATH"
17
18DEPEND="${DEPEND}
19 ( kde-base/kdelibs-${PV} )
20 objprelink? ( dev-util/objprelink )
21 >=x11-libs/qt-x11-2.3.0"
22
23RDEPEND="${RDEPEND}
24 ( kde-base/kdelibs-${PV} )
25 >=x11-libs/qt-x11-2.3.0"
26
27kde-base_src_compile() {
28
29 echo "in kde-base_src_compile, 1st parameter is $1"
30 [ -z "$1" ] && kde-base_src_compile all
31
32 while [ "$1" ]; do
33
34 case $1 in
35 myconf)
36 echo "in kde-base_src_compile, action is myconf"
37 use qtmt && myconf="$myconf --enable-mt"
38 use mitshm && myconf="$myconf --enable-mitshm"
39 use objprelink && myconf="$myconf --enable-objprelink"
40 ;;
41 configure)
42 echo "in kde-base_src_compile, action is configure"
43 ./configure --host=${CHOST} --with-x \
44 ${myconf} --with-xinerama || die
45 ;;
46 make)
47 echo "in kde-base_src_compile, action is make"
48 make || die
49 ;;
50 all)
51 echo "in kde-base_src_compile, action is all"
52 kde-base_src_compile myconf configure make
53 ;;
54 esac
55
56 shift
57 done
58
59}
60
61kde-base_src_install() {
62
63 echo "in kde-base_src_install, 1st parameter is $1"
64 [ -z "$1" ] && kde-base_src_install all
65
66 while [ "$1" ]; do
67
68 case $1 in
69 make)
70 echo "in kde-base_src_install, action is make"
71 make install DESTDIR=${D} || die
72 ;;
73 dodoc)
74 echo "in kde-base_src_install, action is dodoc"
75 dodoc AUTHORS ChangeLog COPYING README*
76 ;;
77 all)
78 echo "in kde-base_src_install, action is all"
79 kde-base_src_install make dodoc
80 ;;
81 esac
82
83 shift
84 done
85
86}
87 16
88 17
89EXPORT_FUNCTIONS src_compile src_install
90 18
19
20

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.18

  ViewVC Help
Powered by ViewVC 1.1.20