diff options
author | Wulf Krueger <philantrop@gentoo.org> | 2008-02-20 20:59:43 +0000 |
---|---|---|
committer | Wulf Krueger <philantrop@gentoo.org> | 2008-02-20 20:59:43 +0000 |
commit | 27d67b71a994f9887d55e798f590e585a303ea5f (patch) | |
tree | 64fc6f6a2b4a6388080668b27452dedc571c75f0 /eclass/kde-dist.eclass | |
parent | Adding a new 2.0.6_pre8 to replace the other pre-release versions in testing. (diff) | |
download | historical-27d67b71a994f9887d55e798f590e585a303ea5f.tar.gz historical-27d67b71a994f9887d55e798f590e585a303ea5f.tar.bz2 historical-27d67b71a994f9887d55e798f590e585a303ea5f.zip |
EAPI-1 enhancements for KDE 3.5.9. Thanks, Ingmar, for preparing these.
Diffstat (limited to 'eclass/kde-dist.eclass')
-rw-r--r-- | eclass/kde-dist.eclass | 37 |
1 files changed, 25 insertions, 12 deletions
diff --git a/eclass/kde-dist.eclass b/eclass/kde-dist.eclass index 33591363c338..4aa2f374ab62 100644 --- a/eclass/kde-dist.eclass +++ b/eclass/kde-dist.eclass @@ -1,9 +1,14 @@ -# Copyright 1999-2004 Gentoo Foundation +# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/kde-dist.eclass,v 1.74 2006/01/01 01:14:59 swegener Exp $ -# -# Author Dan Armak <danarmak@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/eclass/kde-dist.eclass,v 1.75 2008/02/20 20:59:43 philantrop Exp $ + +# @ECLASS: kde-dist.eclass +# @MAINTAINER: +# kde@gentoo.org # +# original author Dan Armak <danarmak@gentoo.org> +# @BLURB: This is the kde-dist eclass for >=2.2.1 kde base packages +# @DESCRIPTION: # This is the kde-dist eclass for >=2.2.1 kde base packages. Don't use for kdelibs though :-) # Don't use it for e.g. kdevelop, koffice because of their separate versioning schemes. @@ -11,7 +16,7 @@ inherit kde # Upstream released 3.5.0_rc1 with tarballs labelled as just 3.5.0, so we have our own copies # on mirror://gentoo -if [ "$PV" == "3.5.0_rc1" ]; then +if [[ "$PV" == "3.5.0_rc1" ]]; then SRC_URI="$SRC_URI mirror://gentoo/$P.tar.bz2" else @@ -33,17 +38,17 @@ else debug-print "${ECLASS}: cvs detected" ;; *) debug-print "${ECLASS}: Error: unrecognized version $PV, could not set SRC_URI" ;; esac - [ -n "${SRC_PATH}" ] && SRC_URI="${SRC_URI} mirror://kde/${SRC_PATH}" + [[ -n "${SRC_PATH}" ]] && SRC_URI="${SRC_URI} mirror://kde/${SRC_PATH}" fi debug-print "${ECLASS}: finished, SRC_URI=${SRC_URI}" need-kde ${PV} # 3.5 prereleases -[ "${PV}" == "3.5_alpha1" ] && S=${WORKDIR}/${PN}-3.4.90 -[ "${PV}" == "3.5_beta1" ] && S=${WORKDIR}/${PN}-3.4.91 -[ "${PV}" == "3.5.0_beta2" ] && S=${WORKDIR}/${PN}-3.4.92 -[ "${PV}" == "3.5.0_rc1" ] && S=${WORKDIR}/${PN}-3.5.0 +[[ "${PV}" == "3.5_alpha1" ]] && S=${WORKDIR}/${PN}-3.4.90 +[[ "${PV}" == "3.5_beta1" ]] && S=${WORKDIR}/${PN}-3.4.91 +[[ "${PV}" == "3.5.0_beta2" ]] && S=${WORKDIR}/${PN}-3.4.92 +[[ "${PV}" == "3.5.0_rc1" ]] && S=${WORKDIR}/${PN}-3.5.0 DESCRIPTION="KDE ${PV} - " HOMEPAGE="http://www.kde.org/" @@ -52,6 +57,14 @@ SLOT="${KDEMAJORVER}.${KDEMINORVER}" # add blockers on split packages derived from this one for x in $(get-child-packages ${CATEGORY}/${PN}); do - DEPEND="${DEPEND} !=${x}-${SLOT}*" - RDEPEND="${RDEPEND} !=${x}-${SLOT}*" + case ${EAPI:-0} in + # Add EAPIs without SLOT dependencies. + 0) DEPEND="${DEPEND} !=${x}-${KDEMAJORVER}.${KDEMINORVER}*" + RDEPEND="${RDEPEND} !=${x}-${KDEMAJORVER}.${KDEMINORVER}*" + ;; + # EAPIs with SLOT dependencies. + *) DEPEND="${DEPEND} !${x}:${SLOT}" + RDEPEND="${RDEPEND} !${x}:${SLOT}" + ;; + esac done |