diff options
author | Dan Armak <danarmak@gentoo.org> | 2001-09-29 12:35:38 +0000 |
---|---|---|
committer | Dan Armak <danarmak@gentoo.org> | 2001-09-29 12:35:38 +0000 |
commit | 19b9f02b6829f2c82196092a3a4e46960a121526 (patch) | |
tree | f7df3df78e6f96b4708e5f1891202be5a607b7e9 /eclass/kde-base.eclass | |
parent | zap of old portage and added db-3.2.9 to package.mask (diff) | |
download | historical-19b9f02b6829f2c82196092a3a4e46960a121526.tar.gz historical-19b9f02b6829f2c82196092a3a4e46960a121526.tar.bz2 historical-19b9f02b6829f2c82196092a3a4e46960a121526.zip |
Eclasses release 2. This time they are supposed to be fully operational.
Bug hunters please!
Diffstat (limited to 'eclass/kde-base.eclass')
-rw-r--r-- | eclass/kde-base.eclass | 90 |
1 files changed, 90 insertions, 0 deletions
diff --git a/eclass/kde-base.eclass b/eclass/kde-base.eclass new file mode 100644 index 000000000000..86bc568c0f46 --- /dev/null +++ b/eclass/kde-base.eclass @@ -0,0 +1,90 @@ +# Copyright 1999-2000 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Dan Armak <danarmak@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/eclass/kde-base.eclass,v 1.4 2001/09/29 12:35:38 danarmak Exp $ +# This is the kde ebuild for >=2.2.1 kde base packages. Don't use for kdelibs though :-) +. /usr/portage/eclass/inherit.eclass || die +inherit c autoconf base || die +ECLASS=kde-base + +DESCRIPTION="KDE ${PV} - " +HOMEPAGE="http://www.kde.org/" + +SRC_PATH="kde/stable/${PV}/src/${P}.tar.bz2" +SRC_URI="ftp://ftp.kde.org/pub/$SRC_PATH + ftp://ftp.fh-heilbronn.de/pub/mirrors/$SRC_PATH + ftp://ftp.sourceforge.net/pub/mirrors/$SRC_PATH" + +DEPEND="${DEPEND} + ( kde-base/kdelibs-${PV} ) + dev-util/objprelink + >=x11-libs/qt-x11-2.3.0" + +RDEPEND="${RDEPEND} + ( kde-base/kdelibs-${PV} ) + >=x11-libs/qt-x11-2.3.0" + +kde-base_src_compile() { + + echo "in kde-base_src_compile, 1st parameter is $1" + [ -z "$1" ] && kde-base_src_compile all + + while [ "$1" ]; do + + case $1 in + myconf) + echo "in kde-base_src_compile, action is myconf" + use qtmt && myconf="$myconf --enable-mt" + use mitshm && myconf="$myconf --enable-mitshm" + use objprelink && myconf="$myconf --enable-objprelink" + ;; + configure) + echo "in kde-base_src_compile, action is configure" + ./configure --host=${CHOST} --with-x \ + ${myconf} --with-xinerama || die + ;; + make) + echo "in kde-base_src_compile, action is make" + make || die + ;; + all) + echo "in kde-base_src_compile, action is all" + kde-base_src_compile myconf configure make + ;; + esac + + shift + done + +} + +kde-base_src_install() { + + echo "in kde-base_src_install, 1st parameter is $1" + [ -z "$1" ] && kde-base_src_install all + + while [ "$1" ]; do + + case $1 in + make) + echo "in kde-base_src_install, action is make" + make install DESTDIR=${D} || die + ;; + dodoc) + echo "in kde-base_src_install, action is dodoc" + dodoc AUTHORS ChangeLog COPYING README* + ;; + all) + echo "in kde-base_src_install, action is all" + kde-base_src_install make dodoc + ;; + esac + + shift + done + +} + + +EXPORT_FUNCTIONS src_compile src_install + |