blob: f7b47204d2d23d8c2bee8ef8b3e61272bb0e5467 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# Author Dan Armak <danarmak@gentoo.org>
# $Header: /var/cvsroot/gentoo-x86/eclass/kde.org.eclass,v 1.25 2003/01/05 12:41:49 hannes Exp $
# Contains the locations of ftp.kde.org packages and their mirrors
ECLASS=kde.org
INHERITED="$INHERITED $ECLASS"
# kde 3.1 prereleases have tarball versions of 3.0.6 ff
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.1_alpha1) SRC_PATH="unstable/kde-3.1-alpha1/src/${P//3.1_alpha1/3.0.6}.tar.bz2" ;;
3.1_beta1) SRC_PATH="unstable/kde-3.1-beta1/src/${P//3.1_beta1/3.0.7}.tar.bz2" ;;
3.1_beta2) SRC_PATH="unstable/kde-3.1-beta2/src/${P//3.1_beta2/3.0.8}.tar.bz2" ;;
3.1_rc1) SRC_PATH="unstable/kde-3.1-rc1/src/${P//3.1_rc1/3.0.9}.tar.bz2" ;;
3.1_rc2) SRC_PATH="unstable/kde-3.1-rc2/src/${P//3.1_rc2/3.0.98}.tar.bz2" ;;
3.1_rc3) SRC_PATH="unstable/kde-3.1-rc3/src/${P//3.1_rc3/3.0.99}.tar.bz2" ;;
3.1_rc5) SRC_PATH="unstable/kde-3.1-rc5/src/${P//_}.tar.bz2" ;;
3.1_rc6) SRC_PATH="unstable/kde-3.1-rc6/src/${P//_}.tar.bz2" ;;
3*) SRC_PATH="stable/$PV/src/${P}.tar.bz2" ;;
5) SRC_URI="" # cvs ebuilds, no SRC_URI needed
debug-print "$ECLASS: finished, cvs detected, SRC_URI=$SRC_URI"
return 0 ;;
*) debug-print "$ECLASS: Error: unrecognized version $PV, could not set SRC_URI" ;;
esac
SRC_URI="mirror://kde/$SRC_PATH"
debug-print "$ECLASS: finished, SRC_URI=$SRC_URI"
|