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

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.20