/[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.2 Revision 1.7
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.2 2001/09/28 19:30:09 danarmak Exp $ 4# $Header: /var/cvsroot/gentoo-x86/eclass/Attic/kde-base.eclass,v 1.7 2001/09/29 21:03:25 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# It can't be used for e.g. kdevelop, koffice because of their separate versionnig schemes.
6. /usr/portage/eclass/inherit.eclass || die 7. /usr/portage/eclass/inherit.eclass || die
7inherit base c autoconf || die 8inherit c autoconf base || die
8ECLASS=kde 9ECLASS=kde-base
9 10
10DESCRIPTION="Based on the $ECLASS eclass" 11DESCRIPTION="KDE ${PV} - "
11HOMEPAGE="http://www.kde.org/" 12HOMEPAGE="http://www.kde.org/"
12 13
13DEPEND="${DEPEND} ( kde-base/kdelibs-${PV} ) dev-util/objprelink >=x11-libs/qt-x11-2.3.0" 14SRC_PATH="kde/stable/${PV}/src/${P}.tar.bz2"
14#RDEPEND="${RDEPEND} kde-base/kdelibs-${PV} >=x11-libs/qt-x11-2.3.0" 15SRC_URI="ftp://ftp.kde.org/pub/$SRC_PATH
16 ftp://ftp.fh-heilbronn.de/pub/mirrors/$SRC_PATH
17 ftp://ftp.sourceforge.net/pub/mirrors/$SRC_PATH"
15 18
19DEPEND="${DEPEND}
20 ( kde-base/kdelibs-${PV} )
21 objprelink? ( dev-util/objprelink )
22 >=x11-libs/qt-x11-2.3.0"
23
24RDEPEND="${RDEPEND}
25 ( kde-base/kdelibs-${PV} )
26 >=x11-libs/qt-x11-2.3.0"
27
16kde_src_compile() { 28kde-base_src_compile() {
17 29
30 echo "in kde-base_src_compile, 1st parameter is $1"
31 [ -z "$1" ] && kde-base_src_compile all
32
18 while [ "$1" ]; do 33 while [ "$1" ]; do
19 34
20 case $1 in 35 case $1 in
21 myconf) 36 myconf)
37 echo "in kde-base_src_compile, action is myconf"
22 use qtmt && myconf="$myconf --enable-mt" 38 use qtmt && myconf="$myconf --enable-mt"
23 use mitshm && myconf="$myconf --enable-mitshm" 39 use objprelink && myconf="$myconf --enable-objprelink" || myconf="$myconf --disable-objprelink"
24 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.2  
changed lines
  Added in v.1.7

  ViewVC Help
Powered by ViewVC 1.1.20