summaryrefslogtreecommitdiff
blob: 624920a21deaa7b659e1704acb26dbce5430d62f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Dan Armak <danarmak@gentoo.ogr>
# $Header: /var/cvsroot/gentoo-x86/app-i18n/kde-i18n/kde-i18n-3.0.ebuild,v 1.4 2002/04/04 23:18:58 danarmak Exp $
. /usr/portage/eclass/inherit.eclass || die
inherit kde-i18n
S=${WORKDIR}/${P}

src_unpack() {

    cd ${WORKDIR}
    unpack ${P}.tar.bz2
    
    # we need to patch the Makefile.in's of <lang>/docs/common/ for each language.
    # but we can't patch Makefile.am's, so better than patching in src_compile, we 
    # make -f Makefile.cvs here in src_unpack.
    cd ${S}
    make -f Makefile.cvs
    for x in `cat subdirs`; do
	cd ${S}/${x}
	[ -d docs/common ] && ( patch -p0 < ${DISTDIR}/kde-i18n-gentoo.patch || die )
    done 

}