summaryrefslogtreecommitdiff
blob: 2749999172f3845cb360abcf1a9a4793416958b3 (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# 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.72 2005/11/12 12:40:58 danarmak Exp $
#
# Author Dan Armak <danarmak@gentoo.org>
#
# 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.

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
	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}

# 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

DESCRIPTION="KDE ${PV} - "
HOMEPAGE="http://www.kde.org/"
LICENSE="GPL-2"
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}*"
done