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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Sun Feb 17 03:00:07 2008 UTC (12 years, 4 months ago) by ingmar
Branch: MAIN
CVS Tags: HEAD
Changes since 1.9: +1 -1 lines
FILE REMOVED
Spring cleaning.
(Portage version: 2.1.4.4)

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

  ViewVC Help
Powered by ViewVC 1.1.20