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/kde-l10n: ChangeLog kde-l10n-4.7.0-r1.ebuild
Date: Thu, 28 Jul 2011 20:55:30
Message-Id: 20110728205443.E17382004B@flycatcher.gentoo.org
1 dilfridge 11/07/28 20:54:43
2
3 Modified: ChangeLog
4 Added: kde-l10n-4.7.0-r1.ebuild
5 Log:
6 Split kdepim translations out again
7
8 (Portage version: 2.1.10.7/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.100 kde-base/kde-l10n/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/kde-base/kde-l10n/ChangeLog?rev=1.100&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/kde-base/kde-l10n/ChangeLog?rev=1.100&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/kde-base/kde-l10n/ChangeLog?r1=1.99&r2=1.100
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/kde-base/kde-l10n/ChangeLog,v
20 retrieving revision 1.99
21 retrieving revision 1.100
22 diff -u -r1.99 -r1.100
23 --- ChangeLog 27 Jul 2011 14:04:26 -0000 1.99
24 +++ ChangeLog 28 Jul 2011 20:54:43 -0000 1.100
25 @@ -1,6 +1,12 @@
26 # ChangeLog for kde-base/kde-l10n
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/kde-base/kde-l10n/ChangeLog,v 1.99 2011/07/27 14:04:26 alexxy Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/kde-base/kde-l10n/ChangeLog,v 1.100 2011/07/28 20:54:43 dilfridge Exp $
30 +
31 +*kde-l10n-4.7.0-r1 (28 Jul 2011)
32 +
33 + 28 Jul 2011; Andreas K. Huettel <dilfridge@g.o>
34 + +kde-l10n-4.7.0-r1.ebuild:
35 + Split kdepim translations out again
36
37 *kde-l10n-4.7.0 (27 Jul 2011)
38
39
40
41
42 1.1 kde-base/kde-l10n/kde-l10n-4.7.0-r1.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/kde-base/kde-l10n/kde-l10n-4.7.0-r1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/kde-base/kde-l10n/kde-l10n-4.7.0-r1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: kde-l10n-4.7.0-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/kde-l10n/kde-l10n-4.7.0-r1.ebuild,v 1.1 2011/07/28 20:54:43 dilfridge Exp $
52
53 EAPI="3"
54
55 inherit kde4-base
56
57 DESCRIPTION="KDE internationalization package"
58 HOMEPAGE="http://www.kde.org/"
59 LICENSE="GPL-2"
60
61 DEPEND="
62 sys-devel/gettext
63 "
64 RDEPEND="!<kde-misc/konq-plugins-4.6"
65
66 KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
67 IUSE="+handbook"
68
69 # /usr/portage/distfiles $ ls -1 kde-l10n-*-${PV}.* |sed -e 's:-${PV}.tar.bz2::' -e 's:kde-l10n-::' |tr '\n' ' '
70 MY_LANGS="ar bg bs ca ca@valencia cs da de el en_GB es et eu fi fr ga gl he hr
71 hu ia id is it ja kk km kn ko lt lv nb nds nl nn pa pl pt pt_BR ro ru sk sl sr
72 sv th tr ug uk wa zh_CN zh_TW"
73
74 URI_BASE="${SRC_URI/-${PV}.tar.bz2/}"
75 SRC_URI=""
76
77 for MY_LANG in ${MY_LANGS} ; do
78 IUSE="${IUSE} linguas_${MY_LANG}"
79 SRC_URI="${SRC_URI} linguas_${MY_LANG}? ( ${URI_BASE}/${PN}-${MY_LANG}-${PV}.tar.bz2 )"
80 done
81
82 S="${WORKDIR}"
83
84 src_unpack() {
85 local LNG DIR
86 if [[ -z ${A} ]]; then
87 elog
88 elog "You either have the LINGUAS variable unset, or it only"
89 elog "contains languages not supported by ${P}."
90 elog "You won't have any additional language support."
91 elog
92 elog "${P} supports these language codes:"
93 elog "${MY_LANGS}"
94 elog
95 fi
96
97 # For EAPI >= 3, or if not using .tar.xz archives:
98 [[ -n ${A} ]] && unpack ${A}
99 cd "${S}"
100
101 # add all linguas to cmake
102 if [[ -n ${A} ]]; then
103 for LNG in ${LINGUAS}; do
104 DIR="${PN}-${LNG}-${PV}"
105 if [[ -d "${DIR}" ]] ; then
106 echo "add_subdirectory( ${DIR} )" >> "${S}"/CMakeLists.txt
107 fi
108 done
109 fi
110 }
111
112 src_prepare() {
113 # Upstream added kdepim-runtime translations by mistake and does not want to
114 # make a new tarball, bug 366353
115
116 find "${S}" -name CMakeLists.txt -type f \
117 -exec sed -i -e 's:add_subdirectory(kdepim-runtime):# no kdepim-runtime:g' {} +
118 find "${S}" -name CMakeLists.txt -type f \
119 -exec sed -i -e 's:add_subdirectory(kdepim):# no kdepim:g' {} +
120
121 kde4-base_src_prepare
122 }
123
124 src_configure() {
125 mycmakeargs=(
126 $(cmake-utils_use_build handbook docs)
127 )
128 [[ -n ${A} ]] && kde4-base_src_configure
129 }
130
131 src_compile() {
132 [[ -n ${A} ]] && kde4-base_src_compile
133 }
134
135 src_test() {
136 [[ -n ${A} ]] && kde4-base_src_test
137 }
138
139 src_install() {
140 [[ -n ${A} ]] && kde4-base_src_install
141 }