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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (hide annotations) (download)
Mon May 29 13:48:54 2006 UTC (14 years, 2 months ago) by flameeyes
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Drop old versions.
(Portage version: 2.1_rc3)
 (Signed Manifest commit)

1 greg_g 1.1 # Copyright 1999-2005 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 flameeyes 1.4 # $Header: /var/cvsroot/gentoo-x86/kde-base/kde-i18n/kde-i18n-3.4.2.ebuild,v 1.3 2005/08/17 14:58:12 greg_g Exp $
4 greg_g 1.1
5     inherit kde
6    
7     DESCRIPTION="KDE internationalization package"
8     HOMEPAGE="http://www.kde.org/"
9     LICENSE="GPL-2"
10    
11     KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
12     IUSE=""
13     SLOT="${KDEMAJORVER}.${KDEMINORVER}"
14    
15     need-kde ${PV}
16    
17     LANGS="af ar bg bn br bs ca cs cy da de el en_GB eo es \
18     et eu fi fr fy ga he hi hsb hu is it ja lt mk \
19     nb nds nl nn pa pl pt pt_BR ro ru se sk sl sr \
20     sr@Latn sv ta tg tr uk zh_CN"
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     done
25    
26     pkg_setup() {
27     if [ -z "${A}" ]; then
28     echo
29     eerror "You must define a LINGUAS environment variable that contains a list"
30     eerror "of the language codes for which languages you would like to install."
31     eerror "Look at the LANGS variable inside the ebuild to see the list of"
32     eerror "available languages."
33     eerror "e.g.: LINGUAS=\"sv de pt\""
34     echo
35     die
36     fi
37     }
38    
39     src_unpack() {
40     unpack ${A}
41     # work around bug 96143
42 greg_g 1.2 if [ -e ${WORKDIR}/kde-i18n-pt_BR-3.4.2 ] ; then
43 greg_g 1.3 sed -i -e "s:kommander::" ${WORKDIR}/kde-i18n-pt_BR-3.4.2/docs/kdewebdev/Makefile.in
44 greg_g 1.1 fi
45     }
46    
47     src_compile() {
48     local _S=${S}
49     for dir in `ls ${WORKDIR}`; do
50     S=${WORKDIR}/${dir}
51     kde_src_compile myconf
52     myconf="${myconf} --prefix=${KDEDIR}"
53     kde_src_compile configure
54     kde_src_compile make
55     done
56     S=${_S}
57     }
58    
59     src_install() {
60     local _S=${S}
61     for dir in `ls ${WORKDIR}`; do
62     cd ${WORKDIR}/${dir}
63     make DESTDIR=${D} install || die
64     done
65     S=${_S}
66     }

  ViewVC Help
Powered by ViewVC 1.1.20