/[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.6 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.6 2001/09/29 14:57:23 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# It can't be used for e.g. kdevelop, koffice because of their separate versionnig schemes. 6# procedures and have std. configure options.
7. /usr/portage/eclass/inherit.eclass || die 7
8inherit c autoconf base || die 8inherit kde
9ECLASS=kde-base 9ECLASS=kde-base
10INHERITED="$INHERITED $ECLASS"
10 11
11DESCRIPTION="KDE ${PV} - " 12newdepend /c
12HOMEPAGE="http://www.kde.org/"
13 13
14SRC_PATH="kde/stable/${PV}/src/${P}.tar.bz2" 14DESCRIPTION="Based on the $ECLASS eclass"
15SRC_URI="ftp://ftp.kde.org/pub/$SRC_PATH 15HOMEPAGE="http://apps.kde.com/"
16 ftp://ftp.fh-heilbronn.de/pub/mirrors/$SRC_PATH
17 ftp://ftp.sourceforge.net/pub/mirrors/$SRC_PATH"
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
28kde-base_src_compile() {
29
30 echo "in kde-base_src_compile, 1st parameter is $1"
31 [ -z "$1" ] && kde-base_src_compile all
32
33 while [ "$1" ]; do
34
35 case $1 in
36 myconf)
37 echo "in kde-base_src_compile, action is myconf"
38 use qtmt && myconf="$myconf --enable-mt"
39 use mitshm && myconf="$myconf --enable-mitshm"
40 use objprelink && myconf="$myconf --enable-objprelink"
41 ;;
42 configure)
43 echo "in kde-base_src_compile, action is configure"
44 ./configure --host=${CHOST} --with-x \
45 ${myconf} --with-xinerama || die
46 ;;
47 make)
48 echo "in kde-base_src_compile, action is make"
49 make || die
50 ;;
51 all)
52 echo "in kde-base_src_compile, action is all"
53 kde-base_src_compile myconf configure make
54 ;;
55 esac
56
57 shift
58 done
59
60}
61
62kde-base_src_install() {
63
64 echo "in kde-base_src_install, 1st parameter is $1"
65 [ -z "$1" ] && kde-base_src_install all
66
67 while [ "$1" ]; do
68
69 case $1 in
70 make)
71 echo "in kde-base_src_install, action is make"
72 make install DESTDIR=${D} || die
73 ;;
74 dodoc)
75 echo "in kde-base_src_install, action is dodoc"
76 dodoc AUTHORS ChangeLog COPYING README*
77 ;;
78 all)
79 echo "in kde-base_src_install, action is all"
80 kde-base_src_install make dodoc
81 ;;
82 esac
83
84 shift
85 done
86
87}
88 16
89 17
90EXPORT_FUNCTIONS src_compile src_install
91 18
19
20

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

  ViewVC Help
Powered by ViewVC 1.1.20