Gentoo Archives: gentoo-commits

From: Alexey Shvetsov <alexxy@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/kde:master commit in: kde-base/kde-l10n/
Date: Mon, 30 May 2011 20:56:33
Message-Id: 074a999942c0f07d2f952883889089cdab9e4481.alexxy@gentoo
1 commit: 074a999942c0f07d2f952883889089cdab9e4481
2 Author: Alexey Shvetsov <alexxy <AT> gentoo <DOT> org>
3 AuthorDate: Mon May 30 20:55:50 2011 +0000
4 Commit: Alexey Shvetsov <alexxy <AT> gentoo <DOT> org>
5 CommitDate: Mon May 30 20:55:50 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/kde.git;a=commit;h=074a9999
7
8 [kde-base] Add kde-l10n
9
10 ---
11 kde-base/kde-l10n/kde-l10n-4.6.80.ebuild | 91 ++++++++++++++++++++++++++++++
12 1 files changed, 91 insertions(+), 0 deletions(-)
13
14 diff --git a/kde-base/kde-l10n/kde-l10n-4.6.80.ebuild b/kde-base/kde-l10n/kde-l10n-4.6.80.ebuild
15 new file mode 100644
16 index 0000000..57e5a61
17 --- /dev/null
18 +++ b/kde-base/kde-l10n/kde-l10n-4.6.80.ebuild
19 @@ -0,0 +1,91 @@
20 +# Copyright 1999-2011 Gentoo Foundation
21 +# Distributed under the terms of the GNU General Public License v2
22 +# $Header: /var/cvsroot/gentoo-x86/kde-base/kde-l10n/kde-l10n-4.6.3-r1.ebuild,v 1.2 2011/05/17 05:44:19 maekke Exp $
23 +
24 +EAPI="3"
25 +
26 +inherit kde4-base
27 +
28 +DESCRIPTION="KDE internationalization package"
29 +HOMEPAGE="http://www.kde.org/"
30 +LICENSE="GPL-2"
31 +
32 +DEPEND="
33 + sys-devel/gettext
34 +"
35 +RDEPEND="!<kde-misc/konq-plugins-4.6"
36 +
37 +KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
38 +IUSE="+handbook"
39 +
40 +# /usr/portage/distfiles $ ls -1 kde-l10n-*-${PV}.* |sed -e 's:-${PV}.tar.bz2::' -e 's:kde-l10n-::' |tr '\n' ' '
41 +MY_LANGS="ar bg ca ca@valencia cs da de el en_GB es et eu fi fr ga gl gu he hi
42 +hr hu ia id is it ja kk km kn ko lt lv nb nds nl nn pa pl pt pt_BR ro ru sk
43 +sl sr sv th tr uk wa zh_CN zh_TW"
44 +
45 +URI_BASE="${SRC_URI/-${PV}.tar.bz2/}"
46 +SRC_URI=""
47 +
48 +for MY_LANG in ${MY_LANGS} ; do
49 + IUSE="${IUSE} linguas_${MY_LANG}"
50 + SRC_URI="${SRC_URI} linguas_${MY_LANG}? ( ${URI_BASE}/${PN}-${MY_LANG}-${PV}.tar.bz2 )"
51 +done
52 +
53 +S="${WORKDIR}"
54 +
55 +src_unpack() {
56 + local LNG DIR
57 + if [[ -z ${A} ]]; then
58 + elog
59 + elog "You either have the LINGUAS variable unset, or it only"
60 + elog "contains languages not supported by ${P}."
61 + elog "You won't have any additional language support."
62 + elog
63 + elog "${P} supports these language codes:"
64 + elog "${MY_LANGS}"
65 + elog
66 + fi
67 +
68 + # For EAPI >= 3, or if not using .tar.xz archives:
69 + [[ -n ${A} ]] && unpack ${A}
70 + cd "${S}"
71 +
72 + # add all linguas to cmake
73 + if [[ -n ${A} ]]; then
74 + for LNG in ${LINGUAS}; do
75 + DIR="${PN}-${LNG}-${PV}"
76 + if [[ -d "${DIR}" ]] ; then
77 + echo "add_subdirectory( ${DIR} )" >> "${S}"/CMakeLists.txt
78 + fi
79 + done
80 + fi
81 +}
82 +
83 +src_prepare() {
84 + # Upstream added kdepim-runtime translations by mistake and does not want to
85 + # make a new tarball, bug 366353
86 +
87 + find "${S}" -name CMakeLists.txt -type f \
88 + -exec sed -i -e 's:add_subdirectory(kdepim-runtime):# no kdepim-runtime:g' {} +
89 +
90 + kde4-base_src_prepare
91 +}
92 +
93 +src_configure() {
94 + mycmakeargs=(
95 + $(cmake-utils_use_build handbook docs)
96 + )
97 + [[ -n ${A} ]] && kde4-base_src_configure
98 +}
99 +
100 +src_compile() {
101 + [[ -n ${A} ]] && kde4-base_src_compile
102 +}
103 +
104 +src_test() {
105 + [[ -n ${A} ]] && kde4-base_src_test
106 +}
107 +
108 +src_install() {
109 + [[ -n ${A} ]] && kde4-base_src_install
110 +}