Gentoo Archives: gentoo-commits

From: Theo Chatzimichos <tampakrap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/kde:master commit in: kde-base/kde-l10n/
Date: Sat, 26 Feb 2011 16:33:36
Message-Id: 6b20205b07e4eaa33f057066a9b025069eae3bbd.tampakrap@gentoo
1 commit: 6b20205b07e4eaa33f057066a9b025069eae3bbd
2 Author: Theo Chatzimichos <tampakrap <AT> gentoo <DOT> org>
3 AuthorDate: Sat Feb 26 16:39:37 2011 +0000
4 Commit: Theo Chatzimichos <tampakrap <AT> gentoo <DOT> org>
5 CommitDate: Sat Feb 26 16:39:37 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/kde.git;a=commit;h=6b20205b
7
8 [kde-base/kde-l10n] Properly bump ebuild based on 4.6.0 one
9
10 ---
11 kde-base/kde-l10n/kde-l10n-4.6.1.ebuild | 118 ++++++++++++-------------------
12 1 files changed, 45 insertions(+), 73 deletions(-)
13
14 diff --git a/kde-base/kde-l10n/kde-l10n-4.6.1.ebuild b/kde-base/kde-l10n/kde-l10n-4.6.1.ebuild
15 index b4ff58a..3c9c377 100644
16 --- a/kde-base/kde-l10n/kde-l10n-4.6.1.ebuild
17 +++ b/kde-base/kde-l10n/kde-l10n-4.6.1.ebuild
18 @@ -1,8 +1,8 @@
19 # Copyright 1999-2011 Gentoo Foundation
20 # Distributed under the terms of the GNU General Public License v2
21 -# $Header: $
22 +# $Header: /var/cvsroot/gentoo-x86/kde-base/kde-l10n/kde-l10n-4.6.0.ebuild,v 1.1 2011/01/26 20:28:22 alexxy Exp $
23
24 -EAPI=3
25 +EAPI="3"
26
27 inherit kde4-base
28
29 @@ -10,100 +10,72 @@ DESCRIPTION="KDE internationalization package"
30 HOMEPAGE="http://www.kde.org/"
31 LICENSE="GPL-2"
32
33 -DEPEND=">=sys-devel/gettext-0.17"
34 +DEPEND="
35 + sys-devel/gettext
36 +"
37 RDEPEND=""
38
39 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
40 -IUSE=""
41 -
42 -LANGS="af ar be bg bn bn_IN br ca cs csb cy da de el en_GB eo es et eu fa fi fr
43 - fy ga gl gu he hi hr hsb hu hy is it ja ka kk km kn ko ku lb lt lv mk ml
44 - ms mt nb nds ne nl nn nso oc pa pl pt pt_BR ro ru rw se sk sl sr sv ta te tg
45 - th tr uk uz vi wa xh zh_CN zh_HK zh_TW"
46 -for LNG in ${LANGS}; do
47 - IUSE="${IUSE} linguas_${LNG}"
48 +IUSE="+handbook"
49 +
50 +# /usr/portage/distfiles $ ls -1 kde-l10n-*-${PV}.* |sed -e 's:-${PV}.tar.bz2::' -e 's:kde-l10n-::' |tr '\n' ' '
51 +MY_LANGS="ar bg ca ca@valencia cs da de el en_GB es et eu fi fr ga gl gu he hi
52 +hr hu ia id is it ja kk km kn ko lt lv mai nb nds nl nn pa pl pt pt_BR ro ru sk
53 +sl sr sv th tr uk wa zh_CN zh_TW"
54 +
55 +URI_BASE="${SRC_URI/-${PV}.tar.bz2/}"
56 +SRC_URI=""
57 +
58 +for MY_LANG in ${MY_LANGS} ; do
59 + IUSE="${IUSE} linguas_${MY_LANG}"
60 + SRC_URI="${SRC_URI} linguas_${MY_LANG}? ( ${URI_BASE}/${PN}-${MY_LANG}-${PV}.tar.bz2 )"
61 done
62 -S="${WORKDIR}"/${PN}
63 -
64 -pkg_setup() {
65 - local lng
66 - for lng in ${LINGUAS}; do
67 - enabled_linguas+=" ${lng}"
68 - done
69 - if [[ -z ${enabled_linguas} ]]; then
70 +
71 +S="${WORKDIR}"
72 +
73 +src_unpack() {
74 + local LNG DIR
75 + if [[ -z ${A} ]]; then
76 elog
77 elog "You either have the LINGUAS variable unset, or it only"
78 elog "contains languages not supported by ${P}."
79 elog "You won't have any additional language support."
80 elog
81 elog "${P} supports these language codes:"
82 - elog "${LANGS}"
83 + elog "${MY_LANGS}"
84 elog
85 fi
86 - kde4-base_pkg_setup
87 -}
88 -
89 -src_unpack() {
90 - local lng
91 -
92 - for lng in ${enabled_linguas}; do
93 - ESVN_REPO_URI="svn://anonsvn.kde.org/home/kde/trunk/l10n-kde4/${lng}"
94 - S="${WORKDIR}"/${PN}/${lng}
95 - subversion_src_unpack
96 - done
97 - ESVN_REPO_URI="svn://anonsvn.kde.org/home/kde/trunk/l10n-kde4/scripts"
98 - S="${WORKDIR}"/${PN}/scripts
99 - subversion_src_unpack
100 - S="${WORKDIR}"/${PN}
101 - kde4-base_src_unpack
102 -}
103
104 -src_prepare() {
105 - # we dont want l10n for all playgraund stuff we need ti only for kde!
106 - for lng in ${enabled_linguas}; do
107 - rm -r "${S}/${lng}"/docs/extragear*
108 - rm -r "${S}/${lng}"/docs/playground*
109 - rm -r "${S}/${lng}"/docs/kdereview
110 - rm -r "${S}/${lng}"/docs/kdevelop
111 - rm -r "${S}/${lng}"/docs/koffice
112 - rm -r "${S}/${lng}"/messages/extragear*
113 - rm -r "${S}/${lng}"/messages/playground*
114 - rm -r "${S}/${lng}"/messages/kdereview
115 - rm -r "${S}/${lng}"/messages/koffice
116 - done
117 + # For EAPI >= 3, or if not using .tar.xz archives:
118 + [[ -n ${A} ]] && unpack ${A}
119 + cd "${S}"
120 +
121 + # add all linguas to cmake
122 + if [[ -n ${A} ]]; then
123 + for LNG in ${LINGUAS}; do
124 + DIR="${PN}-${LNG}-${PV}"
125 + if [[ -d "${DIR}" ]] ; then
126 + echo "add_subdirectory( ${DIR} )" >> "${S}"/CMakeLists.txt
127 + fi
128 + done
129 + fi
130 }
131
132 src_configure() {
133 - local lng
134 -
135 - if [[ ! -z ${enabled_linguas} ]]; then
136 - cat <<-EOF > "${S}"/CMakeLists.txt
137 - project(kde-l10n)
138 -
139 - find_package(KDE4 REQUIRED)
140 - include (KDE4Defaults)
141 - include(MacroOptionalAddSubdirectory)
142 -
143 - find_package(Gettext REQUIRED)
144 -
145 - EOF
146 -
147 - for lng in ${enabled_linguas} ; do
148 - "${S}"/scripts/autogen.sh ${lng}
149 - echo "add_subdirectory( ${lng} )" >> "${S}"/CMakeLists.txt
150 - done
151 - kde4-base_src_configure
152 - fi
153 + mycmakeargs=(
154 + $(cmake-utils_use_build handbook docs)
155 + )
156 + [[ -n ${A} ]] && kde4-base_src_configure
157 }
158
159 src_compile() {
160 - [[ -z ${enabled_linguas} ]] || kde4-base_src_compile
161 + [[ -n ${A} ]] && kde4-base_src_compile
162 }
163
164 src_test() {
165 - [[ -z ${enabled_linguas} ]] || kde4-base_src_test
166 + [[ -n ${A} ]] && kde4-base_src_test
167 }
168
169 src_install() {
170 - [[ -z ${enabled_linguas} ]] || kde4-base_src_install
171 + [[ -n ${A} ]] && kde4-base_src_install
172 }