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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Sat Jan 9 10:14:33 2010 UTC (10 years, 6 months ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.9: +1 -1 lines
FILE REMOVED
Remove kde-i18n. Moved to kde-sunset overlay. And replaced by kde-l10n.

1 # Copyright 1999-2009 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.10.ebuild,v 1.9 2009/07/12 11:27:12 armin76 Exp $
4
5 EAPI="1"
6 WANT_AUTOMAKE="1.10"
7
8 inherit eutils kde
9
10 DESCRIPTION="KDE internationalization package"
11 HOMEPAGE="http://www.kde.org/"
12 LICENSE="GPL-2"
13
14 SLOT="${KDEMAJORVER}.${KDEMINORVER}"
15 KEYWORDS="alpha amd64 hppa ia64 ~mips ppc ppc64 sparc x86 ~x86-fbsd"
16 IUSE=""
17
18 DEPEND=">=sys-devel/automake-1.10.1"
19 RDEPEND=""
20
21 need-kde ${PV}
22 LANGS="af ar az bg bn br bs ca cs csb cy da de el en_GB eo es et
23 eu fa fi fr fy ga gl he hi hr hu is it ja kk km ko lt lv mk
24 mn ms nb nds nl nn pa pl pt pt_BR ro ru rw se sk sl sr
25 sr@Latn ss sv ta te tg th tr uk uz uz@cyrillic vi wa zh_CN zh_TW"
26
27 for X in ${LANGS} ; do
28 SRC_URI="${SRC_URI} linguas_${X}? ( mirror://kde/stable/${PV}/src/kde-i18n/kde-i18n-${X}-${PV}.tar.bz2 )"
29 IUSE="${IUSE} linguas_${X}"
30 done
31
32 src_unpack() {
33 if [[ -z ${LINGUAS} ]] || [[ -z ${A} && "${LINGUAS}" != "en" ]]; then
34 echo
35 ewarn "You either have the LINGUAS environment variable unset or it"
36 ewarn "contains languages not supported by kde-base/kde-i18n."
37 ewarn "Because of that, kde-i18n will not add any kind of language"
38 ewarn "support."
39 ewarn
40 ewarn "If you didn't intend this to happen, the available language"
41 ewarn "codes are:"
42 ewarn "${LANGS}"
43 echo
44 fi
45
46 # Override kde_src_unpack.
47 [[ -n ${A} ]] && unpack ${A}
48
49 # Work around KDE bug 126311.
50 for dir in $(ls "${WORKDIR}"); do
51 lang=$(echo ${dir} | cut -f3 -d-)
52
53 [[ -e "${WORKDIR}/${dir}/docs/common/Makefile.in" ]] || continue
54 sed -e "s:\$(KDE_LANG)/${lang}/:\$(KDE_LANG)/:g" \
55 -i "${WORKDIR}/${dir}/docs/common/Makefile.in" || die "Failed to fix ${lang}."
56 done
57 }
58
59 src_compile() {
60 for dir in $(ls "${WORKDIR}"); do
61 KDE_S="${WORKDIR}/${dir}"
62 kde_src_compile myconf
63 myconf="${myconf} --prefix=${KDEDIR}"
64 kde_src_compile configure
65 kde_src_compile make
66 done
67 }
68
69 src_install() {
70 for dir in $(ls "${WORKDIR}"); do
71 cd "${WORKDIR}/${dir}"
72 emake DESTDIR="${D}" install || die
73 done
74 }

  ViewVC Help
Powered by ViewVC 1.1.20