diff options
author | Dan Armak <danarmak@gentoo.org> | 2005-11-12 12:40:58 +0000 |
---|---|---|
committer | Dan Armak <danarmak@gentoo.org> | 2005-11-12 12:40:58 +0000 |
commit | 05ce8a34a96020ad8d80f494bac6a9bfefe88635 (patch) | |
tree | e18cac857523574e1ed2332ddccbf92eb01279b1 | |
parent | Version bump, bug 105882 (diff) | |
download | gentoo-2-05ce8a34a96020ad8d80f494bac6a9bfefe88635.tar.gz gentoo-2-05ce8a34a96020ad8d80f494bac6a9bfefe88635.tar.bz2 gentoo-2-05ce8a34a96020ad8d80f494bac6a9bfefe88635.zip |
add support for 3.5.0_rc1 distfiles, which are on mirror://gentoo only
-rw-r--r-- | eclass/kde-dist.eclass | 46 | ||||
-rw-r--r-- | eclass/kde-meta.eclass | 47 |
2 files changed, 52 insertions, 41 deletions
diff --git a/eclass/kde-dist.eclass b/eclass/kde-dist.eclass index a72aa812eb92..2749999172f3 100644 --- a/eclass/kde-dist.eclass +++ b/eclass/kde-dist.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/kde-dist.eclass,v 1.71 2005/10/15 09:53:34 greg_g Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/kde-dist.eclass,v 1.72 2005/11/12 12:40:58 danarmak Exp $ # # Author Dan Armak <danarmak@gentoo.org> # @@ -9,24 +9,31 @@ inherit kde -# kde 3.1 prereleases have tarball versions of 3.0.6 ff -unset SRC_URI -case "${PV}" in - 1*) SRC_PATH="stable/3.0.2/src/${P}.tar.bz2";; # backward compatibility for unmerging ebuilds - 2.2.2a) SRC_PATH="Attic/2.2.2/src/${PN}-${PV/a/}.tar.bz2" ;; - 2.2.2*) SRC_PATH="Attic/2.2.2/src/${P}.tar.bz2" ;; - 3.2.0) SRC_PATH="stable/3.2/src/${P}.tar.bz2" ;; - 3.3.0) SRC_PATH="stable/3.3/src/${P}.tar.bz2" ;; - 3.4.0) SRC_PATH="stable/3.4/src/${P}.tar.bz2" ;; - 3.5_alpha1) SRC_PATH="unstable/${PV/_/-}/src/${PN}-3.4.90.tar.bz2" ;; - 3.5_beta1) SRC_PATH="unstable/${PV/_/-}/src/${PN}-3.4.91.tar.bz2" ;; - 3.5.0_beta2) SRC_PATH="unstable/3.5-beta2/src/${PN}-3.4.92.tar.bz2" ;; - 3*) SRC_PATH="stable/${PV}/src/${P}.tar.bz2" ;; - 5) SRC_URI="" # cvs ebuilds, no SRC_URI needed - 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}" +# 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 + SRC_URI="$SRC_URI mirror://gentoo/$P.tar.bz2" +else + + # kde 3.1 prereleases have tarball versions of 3.0.6 ff + unset SRC_URI + case "${PV}" in + 1*) SRC_PATH="stable/3.0.2/src/${P}.tar.bz2";; # backward compatibility for unmerging ebuilds + 2.2.2a) SRC_PATH="Attic/2.2.2/src/${PN}-${PV/a/}.tar.bz2" ;; + 2.2.2*) SRC_PATH="Attic/2.2.2/src/${P}.tar.bz2" ;; + 3.2.0) SRC_PATH="stable/3.2/src/${P}.tar.bz2" ;; + 3.3.0) SRC_PATH="stable/3.3/src/${P}.tar.bz2" ;; + 3.4.0) SRC_PATH="stable/3.4/src/${P}.tar.bz2" ;; + 3.5_alpha1) SRC_PATH="unstable/${PV/_/-}/src/${PN}-3.4.90.tar.bz2" ;; + 3.5_beta1) SRC_PATH="unstable/${PV/_/-}/src/${PN}-3.4.91.tar.bz2" ;; + 3.5.0_beta2) SRC_PATH="unstable/3.5-beta2/src/${PN}-3.4.92.tar.bz2" ;; + 3*) SRC_PATH="stable/${PV}/src/${P}.tar.bz2" ;; + 5) SRC_URI="" # cvs ebuilds, no SRC_URI needed + 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}" +fi debug-print "${ECLASS}: finished, SRC_URI=${SRC_URI}" need-kde ${PV} @@ -35,6 +42,7 @@ need-kde ${PV} [ "${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/" diff --git a/eclass/kde-meta.eclass b/eclass/kde-meta.eclass index 704095bcd132..b94263e17294 100644 --- a/eclass/kde-meta.eclass +++ b/eclass/kde-meta.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/kde-meta.eclass,v 1.54 2005/10/18 06:53:35 greg_g Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/kde-meta.eclass,v 1.55 2005/11/12 12:40:58 danarmak Exp $ # # Author Dan Armak <danarmak@gentoo.org> # Simone Gotti <motaboy@gentoo.org> @@ -65,55 +65,58 @@ if [ "$KDEBASE" = "true" ]; then # unset, making src_unpack extract directly from the tarball in distfiles # Does anyone really want to make this code generic based on $TARBALLVER above? case "$PV" in - 3.4.0_beta1) XDELTA_BASE="unstable/3.3.90/src/$KMNAME-3.3.90.tar.bz2" - XDELTA_DELTA="unstable/3.3.91/src/$KMNAME-3.3.90-3.3.91.tar.xdelta" + 3.4.0_beta1) XDELTA_BASE="mirror://kde/unstable/3.3.90/src/$KMNAME-3.3.90.tar.bz2" + XDELTA_DELTA="mirror://kde/unstable/3.3.91/src/$KMNAME-3.3.90-3.3.91.tar.xdelta" ;; - 3.4.0_beta2) XDELTA_BASE="unstable/3.3.90/src/$KMNAME-3.3.90.tar.bz2" - XDELTA_DELTA="unstable/3.3.91/src/$KMNAME-3.3.90-3.3.91.tar.xdelta unstable/3.3.91/src/$KMNAME-3.3.91-3.3.92.tar.xdelta" + 3.4.0_beta2) XDELTA_BASE="mirror://kde/unstable/3.3.90/src/$KMNAME-3.3.90.tar.bz2" + XDELTA_DELTA="mirror://kde/unstable/3.3.91/src/$KMNAME-3.3.90-3.3.91.tar.xdelta mirror://kde/unstable/3.3.91/src/$KMNAME-3.3.91-3.3.92.tar.xdelta" ;; - 3.4.0_rc1) XDELTA_BASE="unstable/3.3.90/src/$KMNAME-3.3.90.tar.bz2" - XDELTA_DELTA="unstable/3.3.91/src/$KMNAME-3.3.90-3.3.91.tar.xdelta unstable/3.3.91/src/$KMNAME-3.3.91-3.3.92.tar.xdelta unstable/3.4.0-rc1/src/$KMNAME-3.3.92-3.4.0-rc1.tar.xdelta" + 3.4.0_rc1) XDELTA_BASE="mirror://kde/unstable/3.3.90/src/$KMNAME-3.3.90.tar.bz2" + XDELTA_DELTA="mirror://kde/unstable/3.3.91/src/$KMNAME-3.3.90-3.3.91.tar.xdelta mirror://kde/unstable/3.3.91/src/$KMNAME-3.3.91-3.3.92.tar.xdelta mirror://kde/unstable/3.4.0-rc1/src/$KMNAME-3.3.92-3.4.0-rc1.tar.xdelta" ;; 3.4.0) ;; # xdeltas break off at first stable version, since most people # don't have prerelease tarballs handy - 3.4.1) XDELTA_BASE="stable/3.4/src/$KMNAME-3.4.0.tar.bz2" - XDELTA_DELTA="stable/3.4.1/src/$KMNAME-3.4.0-3.4.1.tar.xdelta" + 3.4.1) XDELTA_BASE="mirror://kde/stable/3.4/src/$KMNAME-3.4.0.tar.bz2" + XDELTA_DELTA="mirror://kde/stable/3.4.1/src/$KMNAME-3.4.0-3.4.1.tar.xdelta" ;; - 3.4.2) XDELTA_BASE="stable/3.4/src/$KMNAME-3.4.0.tar.bz2" - XDELTA_DELTA="stable/3.4.1/src/$KMNAME-3.4.0-3.4.1.tar.xdelta stable/3.4.2/src/$KMNAME-3.4.1-3.4.2.tar.xdelta" + 3.4.2) XDELTA_BASE="mirror://kde/stable/3.4/src/$KMNAME-3.4.0.tar.bz2" + XDELTA_DELTA="mirror://kde/stable/3.4.1/src/$KMNAME-3.4.0-3.4.1.tar.xdelta mirror://kde/stable/3.4.2/src/$KMNAME-3.4.1-3.4.2.tar.xdelta" ;; - 3.5.0_beta2) XDELTA_BASE="unstable/3.4.91/src/$KMNAME-3.4.91.tar.bz2" - XDELTA_DELTA="unstable/3.4.92/src/$KMNAME-3.4.91-3.4.92.tar.xdelta" + 3.5.0_beta2) XDELTA_BASE="mirror://kde/unstable/3.4.91/src/$KMNAME-3.4.91.tar.bz2" + XDELTA_DELTA="mirror://kde/unstable/3.4.92/src/$KMNAME-3.4.91-3.4.92.tar.xdelta" + ;; + 3.5.0_rc1) XDELTA_BASE="mirror://kde/unstable/3.4.91/src/$KMNAME-3.4.91.tar.bz2" + XDELTA_DELTA="mirror://kde/unstable/3.4.92/src/$KMNAME-3.4.91-3.4.92.tar.xdelta mirror://gentoo/$KMNAME-3.4.92-3.5.0_rc1.tar.xdelta" ;; *) ;; esac elif [ "$KMNAME" == "koffice" ]; then - SRC_PATH="stable/koffice-$PV/src/koffice-$PV.tar.bz2" + SRC_PATH="mirror://kde/stable/koffice-$PV/src/koffice-$PV.tar.bz2" XDELTA_BASE="" XDELTA_DELTA="" case $PV in 1.3.5) - SRC_PATH="stable/koffice-$PV/src/koffice-$PV.tar.bz2" - XDELTA_BASE="stable/koffice-1.3.4/src/koffice-1.3.4.tar.bz2" - XDELTA_DELTA="stable/koffice-1.3.5/src/koffice-1.3.4-1.3.5.tar.xdelta" + SRC_PATH="mirror://kde/stable/koffice-$PV/src/koffice-$PV.tar.bz2" + XDELTA_BASE="mirror://kde/stable/koffice-1.3.4/src/koffice-1.3.4.tar.bz2" + XDELTA_DELTA="mirror://kde/stable/koffice-1.3.5/src/koffice-1.3.4-1.3.5.tar.xdelta" ;; 1.4.0_rc1) - SRC_PATH="unstable/koffice-1.4-rc1/src/koffice-1.3.98.tar.bz2" + SRC_PATH="mirror://kde/unstable/koffice-1.4-rc1/src/koffice-1.3.98.tar.bz2" ;; 1.4.0) - SRC_PATH="stable/koffice-1.4/src/koffice-$PV.tar.bz2" + SRC_PATH="mirror://kde/stable/koffice-1.4/src/koffice-$PV.tar.bz2" ;; esac fi # Common xdelta code if [ -n "$XDELTA_BASE" ]; then # depends on $PV only, so is safe to modify SRC_URI inside it - SRC_URI="$SRC_URI kdexdeltas? ( mirror://kde/$XDELTA_BASE " + SRC_URI="$SRC_URI kdexdeltas? ( $XDELTA_BASE " for x in $XDELTA_DELTA; do - SRC_URI="$SRC_URI mirror://kde/$x" + SRC_URI="$SRC_URI $x" done - SRC_URI="$SRC_URI ) !kdexdeltas? ( mirror://kde/$SRC_PATH )" + SRC_URI="$SRC_URI ) !kdexdeltas? ( $SRC_PATH )" else # xdelta don't available, for example with kde 3.4 alpha/beta/rc ebuilds. SRC_URI="$SRC_URI mirror://kde/$SRC_PATH" fi |