blob: 174b3598952d9c7f869fa88e8a8c05998a0d2a6e (
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/kde-base/kde-i18n/kde-i18n-3.1.4.ebuild,v 1.5 2003/09/25 15:41:15 caleb Exp $
inherit kde
need-kde ${PV}
DESCRIPTION="KDE ${PV} - i18n: ${PN}"
HOMEPAGE="http://www.kde.org/"
LICENSE="GPL-2"
KEYWORDS="x86"
SLOT="$KDEMAJORVER.$KDEMINORVER"
RESTRICT="nomirror"
LANGS="af ar bg bs ca cs da de el es en_GB eo es et eu fa fi fr he hr hu is it
ja lt mk mt bn nl nn nso pl pt pt_BR ro ru se sk sl sr ss sv ta th tr uk ven vi xh
zh_CN zh_TW zu"
BASEDIR="mirror://kde/stable/${PV}/src/"
#Maybe this isn't the smartest way of doing things, but it works
#for the purposes of this ebuild.
USE="${USE} ${LINGUAS}"
# Important:
#
# If you start the emerge without setting the LINGUAS variable, then try to
# reemerge, portage will NOT scan your changes, because the ebuild itself
# hasn't changed. You need to "touch" this ebuild file to make portage re-evaluate
# this ebuild after your LINGUAS changes.
if [ -z "${LINGUAS}" ]; then
ewarn "Using the LINGUAS environment variable, you can download only"
ewarn "language packages you are interested in. Currently you are"
ewarn "downloading all languages available."
SRC_URI="$BASEDIR/kde-i18n-${PV}.tar.bz2"
else
for pkg in $LANGS
do
if [ `use ${pkg}` ] ; then
SRC_URI="$SRC_URI $BASEDIR/kde-i18n/kde-i18n-${pkg}-${PV}.tar.bz2"
echo "using package ${pkg}"
fi
done
fi
src_unpack() {
base_src_unpack unpack
}
src_compile() {
local _S=${S}
for dir in `ls ${WORKDIR}`; do
S=${WORKDIR}/$dir
kde_src_compile myconf
myconf="$myconf --prefix=$KDEDIR -C"
kde_src_compile configure
kde_src_compile make
done
S=${_S}
}
src_install() {
local _S=${S}
for dir in `ls ${WORKDIR}`; do
cd ${WORKDIR}/$dir
make install DESTDIR=${D} destdir=${D}
done
S=${_S}
}
|