/[gentoo-x86]/eclass/kde-i18n.eclass
Gentoo

Contents of /eclass/kde-i18n.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.45 - (show annotations) (download)
Sun Jul 13 09:08:26 2003 UTC (17 years ago) by danarmak
Branch: MAIN
Branch point for: RELEASE-1_4
Changes since 1.44: +41 -5 lines
support for the new kde-i18n live cvs ebuilds. shouldn't affect anything else in any way.

1 # Copyright 1999-2003 Gentoo Technologies, Inc.
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /home/cvsroot/gentoo-x86/eclass/kde-i18n.eclass,v 1.44 2003/02/22 08:36:54 carpaski Exp $
4 #
5 # Author Dan Armak <danarmak@gentoo.org>
6
7 inherit kde
8 ECLASS=kde-i18n
9 INHERITED="$INHERITED $ECLASS"
10
11 S=${WORKDIR}/${PN}
12 DESCRIPTION="KDE ${PV} - i18n: ${PN}"
13 HOMEPAGE="http://www.kde.org/"
14 LICENSE="GPL-2"
15
16 SLOT="$KDEMAJORVER.$KDEMINORVER"
17
18 need-kde ${PV}
19
20 # RPV and RP for Real P and PV
21 case "$PV" in
22 3.1_beta1) RPV=3.0.7;;
23 3.1_beta2) RPV=3.0.8;;
24 3.1_rc1) RPV=3.0.9;;
25 3.1_rc2) RPV=3.0.98;;
26 3.1_rc5) RPV=3.1rc5;;
27 3.1_rc6) RPV=3.1rc6;;
28 *) RPV=$PV;;
29 esac
30 RP="$PN-$RPV"
31
32 case "$PV" in
33 2.2.2) SRC_PATH="Attic/${PV}/src/${P}.tar.bz2"
34 KEYWORDS="x86";;
35 3.1_*) SRC_PATH="unstable/kde-${PV//_/-}/src/kde-i18n/${RP}.tar.bz2"
36 KEYWORDS="~x86 ~ppc";;
37 3.0.5a) SRC_PATH="stable/${PV}/src/kde-i18n/${PN}-${PV/a/}.tar.bz2"
38 KEYWORDS="x86 ppc";;
39 3*) SRC_PATH="stable/${PV}/src/kde-i18n/${P}.tar.bz2"
40 KEYWORDS="x86 ppc";;
41 5) KEYWORDS="x86";;
42 esac
43
44 if [ "$PV" == "5" ]; then
45 S=${WORKDIR}/kde-i18n
46 elif [ "$PN" == "kde-i18n" ]; then
47 SRC_PATH=${SRC_PATH/src\/kde-i18n\//src\//}
48 S=${WORKDIR}/${RP}
49 fi
50
51 # for cvs ebuilds we don't need to fetch tarballs
52 if [ "$PV" != "5" ]; then
53 SRC_URI="$SRC_URI mirror://kde/$SRC_PATH"
54 fi
55
56 kde-i18n_src_unpack() {
57
58 if [ "$PV" == "5" ]; then
59 KCVS_MODULE=kde-i18n
60 [ "$PN" != "kde-i18n" ] && KCVS_SUBDIR="${PN//kde-i18n-}"
61 KCVS_SUBDIR_NODOC=true
62 kde-source_src_unpack
63 else
64 base_src_unpack
65 fi
66
67 for dir in ${S} `cat ${S}/subdirs`; do
68 if [ -f "$dir/docs/common/Makefile.in" ]; then
69 # this enables destdir!=kdelibsdir
70 cd $dir/docs/common
71 cp Makefile.in Makefile.in.orig
72 sed -e 's:(kde_htmldir)/en/common:(kde_libs_htmldir)/en/common:g' Makefile.in.orig > Makefile.in
73 fi
74 done
75
76 if [ "$PV" == "5" -a "$PN" != "kde-i18n" ]; then
77 cd $S
78 echo ${PN//kde-i18n-/} > subdirs
79 fi
80
81 }
82
83 kde-i18n_src_compile() {
84
85 kde_src_compile myconf
86 myconf="$myconf --prefix=$KDEDIR"
87
88 # enable caching because that makes running all the configure scripts in the subdirs faster
89 # (for cvs i18n packages)
90 myconf="$myconf -C"
91
92 kde_src_compile configure
93
94 # wierd, but this is apparently equired by what's in kde i18n cvs nowadays
95 if [ "$PV" == "5" ]; then
96 for x in `cat subdirs`; do
97 cd $S/$x
98 test -f ./configure && ( ./configure --cache-file=../config.cache $myconf || die "configure failed" )
99 done
100 fi
101
102 cd $S
103 kde_src_compile make
104
105 }
106
107 EXPORT_FUNCTIONS src_unpack src_compile
108

  ViewVC Help
Powered by ViewVC 1.1.20