/[gentoo-x86]/kde-base/kde-i18n/kde-i18n-3.5.3.ebuild
Gentoo

Contents of /kde-base/kde-i18n/kde-i18n-3.5.3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Sat Nov 18 17:04:29 2006 UTC (13 years, 7 months ago) by flameeyes
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Remove old versions.
(Portage version: 2.1.2_rc2)
 (Signed Manifest commit)

1 # Copyright 1999-2006 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/kde-base/kde-i18n/kde-i18n-3.5.3.ebuild,v 1.3 2006/11/07 23:54:36 flameeyes Exp $
4
5 inherit kde
6
7 DESCRIPTION="KDE internationalization package"
8 HOMEPAGE="http://www.kde.org/"
9 LICENSE="GPL-2"
10
11 SLOT="${KDEMAJORVER}.${KDEMINORVER}"
12 KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
13 IUSE=""
14
15 need-kde ${PV}
16
17 LANGS="af ar az bg bn br bs ca cs cy da de el en_GB eo es et
18 eu fa fi fr fy ga gl he hi hr hu is it ja kk km ko lt lv
19 mk mn ms nb nds nl nn pa pl pt pt_BR ro ru rw se sk sl
20 sr sr@Latn ss sv ta tg tr uk uz vi zh_CN zh_TW"
21
22 for X in ${LANGS} ; do
23 SRC_URI="${SRC_URI} linguas_${X}? ( mirror://kde/stable/${PV}/src/kde-i18n/kde-i18n-${X}-${PV}.tar.bz2 )"
24 IUSE="${IUSE} linguas_${X}"
25 done
26
27 src_unpack() {
28 if [ -z "${A}" ]; then
29 echo
30 eerror "You must set the LINGUAS environment variable to a list of valid"
31 eerror "language codes, one for each language you would like to install."
32 eerror "e.g.: LINGUAS=\"sv de pt\""
33 eerror ""
34 eerror "The available language codes are:"
35 echo "${LANGS}"
36 echo
37 die
38 fi
39
40 # Override kde_src_unpack.
41 unpack ${A}
42
43 # Work around KDE bug 126311.
44 for dir in `ls ${WORKDIR}`; do
45 lang=`echo ${dir} | cut -f3 -d-`
46 [[ -e ${WORKDIR}/${dir}/docs/common/Makefile.in ]] || continue
47 sed -e "s:\$(KDE_LANG)/${lang}/:\$(KDE_LANG)/:g" \
48 -i ${WORKDIR}/${dir}/docs/common/Makefile.in || die "Failed to fix ${lang}."
49 done
50 }
51
52 src_compile() {
53 local _S=${S}
54 for dir in `ls ${WORKDIR}`; do
55 S=${WORKDIR}/${dir}
56 KDE_S=$S
57 kde_src_compile myconf
58 myconf="${myconf} --prefix=${KDEDIR}"
59 kde_src_compile configure
60 kde_src_compile make
61 done
62 S=${_S}
63 }
64
65 src_install() {
66 local _S=${S}
67 for dir in `ls ${WORKDIR}`; do
68 cd ${WORKDIR}/${dir}
69 make DESTDIR=${D} install || die
70 done
71 S=${_S}
72 }

  ViewVC Help
Powered by ViewVC 1.1.20