blob: 5fbb668a35cd8310d389a5e7c9823e970ac21b4c (
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
|
# 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-i18n.eclass,v 1.23 2002/08/29 08:21:30 danarmak Exp $
inherit kde
ECLASS=kde-i18n
INHERITED="$INHERITED $ECLASS"
S=${WORKDIR}/${PN}
DESCRIPTION="KDE ${PV} - i18n: ${PN}"
HOMEPAGE="http://www.kde.org/"
LICENSE="GPL-2"
KEYWORDS="x86 ppc"
SLOT="$KDEMAJORVER.$KDEMINORVER"
myconf="$myconf --enable-final"
need-kde ${PV}
if [ "$PN" == "kde-i18n" -o "$PV" == "2.2.2" ]; then
SRC_PATH="stable/${PV}/src/${P}.tar.bz2"
else
SRC_PATH="stable/${PV}/src/kde-i18n/${P}.tar.bz2"
fi
SRC_URI="$SRC_URI mirror://kde/$SRC_PATH
http://www.ibiblio.org/gentoo/distfiles/kde-i18n-gentoo.patch"
kde-i18n_src_unpack() {
unpack ${A//kde-i18n-gentoo.patch} || die
cd ${S}
if [ -f "docs/common/Makefile.in" ]; then
patch -p0 < ${DISTDIR}/kde-i18n-gentoo.patch
echo Please ignore possible errors about rejected patch above
fi
}
EXPORT_FUNCTIONS src_unpack
|