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

Contents of /eclass/kde-base.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (hide annotations) (download)
Sat Sep 29 21:03:25 2001 UTC (18 years, 10 months ago) by danarmak
Branch: MAIN
Changes since 1.6: +2 -3 lines
deleted all references to the mitshm use flag, drobbins decided to get rid of it.

1 danarmak 1.1 # Copyright 1999-2000 Gentoo Technologies, Inc.
2     # Distributed under the terms of the GNU General Public License, v2 or later
3     # Author Dan Armak <danarmak@gentoo.org>
4 danarmak 1.7 # $Header: /home/cvsroot/gentoo-x86/eclass/kde-base.eclass,v 1.6 2001/09/29 14:57:23 danarmak Exp $
5 danarmak 1.1 # This is the kde ebuild for >=2.2.1 kde base packages. Don't use for kdelibs though :-)
6 danarmak 1.6 # It can't be used for e.g. kdevelop, koffice because of their separate versionnig schemes.
7 danarmak 1.2 . /usr/portage/eclass/inherit.eclass || die
8 danarmak 1.4 inherit c autoconf base || die
9     ECLASS=kde-base
10 danarmak 1.1
11 danarmak 1.4 DESCRIPTION="KDE ${PV} - "
12 danarmak 1.1 HOMEPAGE="http://www.kde.org/"
13    
14 danarmak 1.4 SRC_PATH="kde/stable/${PV}/src/${P}.tar.bz2"
15     SRC_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"
18    
19     DEPEND="${DEPEND}
20     ( kde-base/kdelibs-${PV} )
21 danarmak 1.5 objprelink? ( dev-util/objprelink )
22 danarmak 1.4 >=x11-libs/qt-x11-2.3.0"
23    
24     RDEPEND="${RDEPEND}
25 danarmak 1.6 ( kde-base/kdelibs-${PV} )
26 danarmak 1.4 >=x11-libs/qt-x11-2.3.0"
27 danarmak 1.1
28 danarmak 1.4 kde-base_src_compile() {
29 danarmak 1.6
30 danarmak 1.4 echo "in kde-base_src_compile, 1st parameter is $1"
31     [ -z "$1" ] && kde-base_src_compile all
32    
33 danarmak 1.1 while [ "$1" ]; do
34 danarmak 1.4
35 danarmak 1.1 case $1 in
36 danarmak 1.4 myconf)
37     echo "in kde-base_src_compile, action is myconf"
38     use qtmt && myconf="$myconf --enable-mt"
39 danarmak 1.7 use objprelink && myconf="$myconf --enable-objprelink" || myconf="$myconf --disable-objprelink"
40 danarmak 1.4 ;;
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 danarmak 1.1 esac
55    
56     shift
57     done
58    
59     }
60    
61 danarmak 1.4 kde-base_src_install() {
62 danarmak 1.1
63 danarmak 1.4 echo "in kde-base_src_install, 1st parameter is $1"
64     [ -z "$1" ] && kde-base_src_install all
65    
66 danarmak 1.1 while [ "$1" ]; do
67    
68     case $1 in
69     make)
70 danarmak 1.4 echo "in kde-base_src_install, action is make"
71 danarmak 1.1 make install DESTDIR=${D} || die
72     ;;
73     dodoc)
74 danarmak 1.4 echo "in kde-base_src_install, action is dodoc"
75     dodoc AUTHORS ChangeLog COPYING README*
76 danarmak 1.1 ;;
77     all)
78 danarmak 1.4 echo "in kde-base_src_install, action is all"
79     kde-base_src_install make dodoc
80 danarmak 1.1 ;;
81     esac
82    
83     shift
84     done
85    
86     }
87    
88    
89 danarmak 1.4 EXPORT_FUNCTIONS src_compile src_install
90 danarmak 1.1

  ViewVC Help
Powered by ViewVC 1.1.20