Gentoo Archives: gentoo-commits

From: "Andreas HAttel (dilfridge)" <dilfridge@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in kde-base/kdepim-l10n: ChangeLog kdepim-l10n-4.4.11.1-r1.ebuild
Date: Sun, 01 May 2011 13:33:29
Message-Id: 20110501133318.63ABF20054@flycatcher.gentoo.org
1 dilfridge 11/05/01 13:33:18
2
3 Modified: ChangeLog
4 Added: kdepim-l10n-4.4.11.1-r1.ebuild
5 Log:
6 Fix problem with locale variants, bug 365365
7
8 (Portage version: 2.1.9.46/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.7 kde-base/kdepim-l10n/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/kde-base/kdepim-l10n/ChangeLog?rev=1.7&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/kde-base/kdepim-l10n/ChangeLog?rev=1.7&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/kde-base/kdepim-l10n/ChangeLog?r1=1.6&r2=1.7
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/kde-base/kdepim-l10n/ChangeLog,v
20 retrieving revision 1.6
21 retrieving revision 1.7
22 diff -u -r1.6 -r1.7
23 --- ChangeLog 21 Apr 2011 22:10:21 -0000 1.6
24 +++ ChangeLog 1 May 2011 13:33:18 -0000 1.7
25 @@ -1,6 +1,12 @@
26 # ChangeLog for kde-base/kdepim-l10n
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/kde-base/kdepim-l10n/ChangeLog,v 1.6 2011/04/21 22:10:21 dilfridge Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/kde-base/kdepim-l10n/ChangeLog,v 1.7 2011/05/01 13:33:18 dilfridge Exp $
30 +
31 +*kdepim-l10n-4.4.11.1-r1 (01 May 2011)
32 +
33 + 01 May 2011; Andreas K. Huettel <dilfridge@g.o>
34 + +kdepim-l10n-4.4.11.1-r1.ebuild:
35 + Fix problem with locale variants, bug 365365
36
37 *kdepim-l10n-4.4.11.1 (21 Apr 2011)
38
39
40
41
42 1.1 kde-base/kdepim-l10n/kdepim-l10n-4.4.11.1-r1.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/kde-base/kdepim-l10n/kdepim-l10n-4.4.11.1-r1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/kde-base/kdepim-l10n/kdepim-l10n-4.4.11.1-r1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: kdepim-l10n-4.4.11.1-r1.ebuild
48 ===================================================================
49 # Copyright 1999-2011 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/kde-base/kdepim-l10n/kdepim-l10n-4.4.11.1-r1.ebuild,v 1.1 2011/05/01 13:33:18 dilfridge Exp $
52
53 EAPI=4
54 KDE_MINIMAL="4.6"
55
56 inherit kde4-base
57
58 DESCRIPTION="KDE PIM internationalization package"
59 HOMEPAGE="http://www.kde.org/"
60 LICENSE="GPL-2"
61
62 DEPEND="
63 sys-devel/gettext
64 "
65 RDEPEND=""
66 add_blocker kde-l10n 0 :4.4
67
68 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
69 IUSE=""
70
71 MY_LANGS="ar bg ca ca@valencia cs csb da de el en_GB eo es et eu
72 fi fr fy ga gl gu he hi hr hu id is it ja kk km kn ko lt lv
73 mai mk ml nb nds nl nn pa pl pt pt_BR ro ru si sk sl sr sv tg
74 tr uk wa zh_CN zh_TW"
75
76 URI_BASE="${SRC_URI/-${PV}.tar.bz2/}"
77 SRC_URI=""
78
79 for MY_LANG in ${MY_LANGS} ; do
80 IUSE="${IUSE} linguas_${MY_LANG}"
81 SRC_URI="${SRC_URI} linguas_${MY_LANG}? ( ${URI_BASE}/kde-l10n-${MY_LANG}-4.4.5.tar.bz2 )"
82 done
83
84 S="${WORKDIR}"
85
86 src_unpack() {
87 local LNG DIR
88 if [[ -z ${A} ]]; then
89 elog
90 elog "You either have the LINGUAS variable unset, or it only"
91 elog "contains languages not supported by ${P}."
92 elog "You won't have any additional language support."
93 elog
94 elog "${P} supports these language codes:"
95 elog "${MY_LANGS}"
96 elog
97 fi
98
99 # For EAPI >= 3, or if not using .tar.xz archives:
100 [[ -n ${A} ]] && unpack ${A}
101 cd "${S}"
102
103 # for all linguas do:
104 if [[ -n ${A} ]]; then
105 for LNG in ${LINGUAS}; do
106 einfo "Processing ${LNG} localization"
107 DIR="kde-l10n-${LNG}-4.4.5"
108
109 # add subdir to toplevel cmake file
110 if [[ -d "${DIR}" ]] ; then
111 echo "add_subdirectory( ${DIR} )" >> "${S}"/CMakeLists.txt
112 fi
113
114 # remove everything except kdepim
115 for SUBDIR in data docs messages scripts ; do
116 if [[ -d "${S}/${DIR}/${SUBDIR}" ]] ; then
117 einfo " ${SUBDIR} subdirectory"
118 echo > "${S}/${DIR}/${SUBDIR}/CMakeLists.txt"
119 [[ -d "${S}/${DIR}/${SUBDIR}/kdepim" ]] && ( echo "add_subdirectory(kdepim)" >> "${S}/${DIR}/${SUBDIR}/CMakeLists.txt" )
120 fi
121 done
122
123 # in some cases we may have sub-lingua subdirs, e.g. sr :(
124 for XSUBDIR in "${S}/${DIR}/${LNG}"@* ; do
125 XLNG=$(echo ${XSUBDIR}|sed -e 's:^.*/::')
126 if [[ -d "${XSUBDIR}" ]] ; then
127 einfo " ${XLNG} variant"
128 # remove everything except kdepim
129 for SUBDIR in data docs messages scripts ; do
130 if [[ -d "${XSUBDIR}/${SUBDIR}" ]] ; then
131 einfo " ${SUBDIR} subdirectory"
132 echo > "${XSUBDIR}/${SUBDIR}/CMakeLists.txt"
133 [[ -d "${XSUBDIR}/${SUBDIR}/kdepim" ]] && ( echo "add_subdirectory(kdepim)" >> "${XSUBDIR}/${SUBDIR}/CMakeLists.txt" )
134 fi
135 done
136 fi
137 done
138 done
139 fi
140 }
141
142 src_prepare() {
143 [[ -n ${A} ]] && kde4-base_src_prepare
144 }
145
146 src_configure() {
147 mycmakeargs="${mycmakeargs}
148 -DBUILD_docs=OFF"
149 [[ -n ${A} ]] && kde4-base_src_configure
150 }
151
152 src_compile() {
153 [[ -n ${A} ]] && kde4-base_src_compile
154 }
155
156 src_test() {
157 [[ -n ${A} ]] && kde4-base_src_test
158 }
159
160 src_install() {
161 [[ -n ${A} ]] && kde4-base_src_install
162 }