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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.13 - (show annotations) (download)
Mon Nov 9 09:54:42 2009 UTC (10 years, 7 months ago) by abcd
Branch: MAIN
CVS Tags: HEAD
Changes since 1.12: +1 -1 lines
FILE REMOVED
Drop KDE 3.5.9
(Portage version: -svn/cvs/Linux i686)

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.9.ebuild,v 1.12 2009/10/12 05:34:25 abcd 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 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 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 use linguas_ru && epatch "${FILESDIR}/${P}-russian.patch"
59 }
60
61 src_compile() {
62 for dir in $(ls "${WORKDIR}"); do
63 KDE_S="${WORKDIR}/${dir}"
64 kde_src_compile myconf
65 myconf="${myconf} --prefix=${KDEDIR}"
66 kde_src_compile configure
67 kde_src_compile make
68 done
69 }
70
71 src_install() {
72 for dir in $(ls "${WORKDIR}"); do
73 cd "${WORKDIR}/${dir}"
74 emake DESTDIR="${D}" install || die
75 done
76 }

  ViewVC Help
Powered by ViewVC 1.1.20