Gentoo Archives: gentoo-commits

From: "Andreas Hüttel" <dilfridge@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/kde:master commit in: kde-base/kdepim-l10n/
Date: Tue, 27 Dec 2011 14:00:35
Message-Id: 9b1f137f6910e02414f3e5b4e9fefcf71675bd2a.dilfridge@gentoo
1 commit: 9b1f137f6910e02414f3e5b4e9fefcf71675bd2a
2 Author: Andreas K. Huettel (dilfridge) <dilfridge <AT> gentoo <DOT> org>
3 AuthorDate: Tue Dec 27 14:02:13 2011 +0000
4 Commit: Andreas Hüttel <dilfridge <AT> gentoo <DOT> org>
5 CommitDate: Tue Dec 27 14:02:13 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/kde.git;a=commit;h=9b1f137f
7
8 [kde-base/kdepim-l10n] Add localization for kdepim-4.7.95
9
10 (Portage version: 2.1.10.41/git/Linux x86_64, unsigned Manifest commit)
11
12 ---
13 kde-base/kdepim-l10n/kdepim-l10n-4.7.95.ebuild | 112 ++++++++++++++++++++++++
14 1 files changed, 112 insertions(+), 0 deletions(-)
15
16 diff --git a/kde-base/kdepim-l10n/kdepim-l10n-4.7.95.ebuild b/kde-base/kdepim-l10n/kdepim-l10n-4.7.95.ebuild
17 new file mode 100644
18 index 0000000..5495a2f
19 --- /dev/null
20 +++ b/kde-base/kdepim-l10n/kdepim-l10n-4.7.95.ebuild
21 @@ -0,0 +1,112 @@
22 +# Copyright 1999-2011 Gentoo Foundation
23 +# Distributed under the terms of the GNU General Public License v2
24 +# $Header: /var/cvsroot/gentoo-x86/kde-base/kdepim-l10n/kdepim-l10n-4.7.4-r1.ebuild,v 1.1 2011/12/27 13:54:54 dilfridge Exp $
25 +
26 +EAPI=4
27 +
28 +KDE_HANDBOOK=optional
29 +inherit kde4-base
30 +
31 +DESCRIPTION="KDE PIM internationalization package"
32 +HOMEPAGE="http://www.kde.org/"
33 +LICENSE="GPL-2"
34 +
35 +DEPEND="
36 + sys-devel/gettext
37 +"
38 +RDEPEND=""
39 +
40 +KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
41 +IUSE=""
42 +
43 +MY_LANGS="ar bg bs ca ca@valencia cs da de el en_GB es et eu fi fr ga gl he hr
44 +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
45 +sv th tr ug uk wa zh_CN zh_TW"
46 +
47 +URI_BASE="${SRC_URI/-${PV}.tar.bz2/}"
48 +SRC_URI=""
49 +
50 +for MY_LANG in ${MY_LANGS} ; do
51 + IUSE="${IUSE} linguas_${MY_LANG}"
52 + SRC_URI="${SRC_URI} linguas_${MY_LANG}? ( ${URI_BASE/kdepim/kde}/kde-l10n-${MY_LANG}-${PV}.tar.bz2 )"
53 +done
54 +
55 +S="${WORKDIR}"
56 +
57 +src_unpack() {
58 + local LNG DIR
59 + if [[ -z ${A} ]]; then
60 + elog
61 + elog "You either have the LINGUAS variable unset, or it only"
62 + elog "contains languages not supported by ${P}."
63 + elog "You won't have any additional language support."
64 + elog
65 + elog "${P} supports these language codes:"
66 + elog "${MY_LANGS}"
67 + elog
68 + fi
69 +
70 + # For EAPI >= 3, or if not using .tar.xz archives:
71 + [[ -n ${A} ]] && unpack ${A}
72 + cd "${S}"
73 +
74 + # add all linguas to cmake
75 + if [[ -n ${A} ]]; then
76 + for LNG in ${LINGUAS}; do
77 + DIR="kde-l10n-${LNG}-${PV}"
78 + if [[ -d "${DIR}" ]] ; then
79 + echo "add_subdirectory( ${DIR} )" >> "${S}"/CMakeLists.txt
80 + fi
81 +
82 + # remove everything except kdepim and kdepim-runtime
83 + for SUBDIR in data docs messages scripts ; do
84 + if [[ -d "${S}/${DIR}/${SUBDIR}" ]] ; then
85 + einfo " ${SUBDIR} subdirectory"
86 + echo > "${S}/${DIR}/${SUBDIR}/CMakeLists.txt"
87 + [[ -d "${S}/${DIR}/${SUBDIR}/kdepim" ]] && ( echo "add_subdirectory(kdepim)" >> "${S}/${DIR}/${SUBDIR}/CMakeLists.txt" )
88 + [[ -d "${S}/${DIR}/${SUBDIR}/kdepim-runtime" ]] && ( echo "add_subdirectory(kdepim-runtime)" >> "${S}/${DIR}/${SUBDIR}/CMakeLists.txt" )
89 + fi
90 + done
91 +
92 + # in some cases we may have sub-lingua subdirs, e.g. sr :(
93 + for XSUBDIR in "${S}/${DIR}/${LNG}"@* ; do
94 + XLNG=$(echo ${XSUBDIR}|sed -e 's:^.*/::')
95 + if [[ -d "${XSUBDIR}" ]] ; then
96 + einfo " ${XLNG} variant"
97 + # remove everything except kdepim and kdepim-runtime
98 + for SUBDIR in data docs messages scripts ; do
99 + if [[ -d "${XSUBDIR}/${SUBDIR}" ]] ; then
100 + einfo " ${SUBDIR} subdirectory"
101 + echo > "${XSUBDIR}/${SUBDIR}/CMakeLists.txt"
102 + [[ -d "${XSUBDIR}/${SUBDIR}/kdepim" ]] && ( echo "add_subdirectory(kdepim)" >> "${XSUBDIR}/${SUBDIR}/CMakeLists.txt" )
103 + [[ -d "${XSUBDIR}/${SUBDIR}/kdepim-runtime" ]] && ( echo "add_subdirectory(kdepim-runtime)" >> "${XSUBDIR}/${SUBDIR}/CMakeLists.txt" )
104 + fi
105 + done
106 + fi
107 + done
108 + done
109 + fi
110 +}
111 +
112 +src_prepare() {
113 + [[ -n ${A} ]] && kde4-base_src_prepare
114 +}
115 +
116 +src_configure() {
117 + mycmakeargs=(
118 + $(cmake-utils_use_build handbook docs)
119 + )
120 + [[ -n ${A} ]] && kde4-base_src_configure
121 +}
122 +
123 +src_compile() {
124 + [[ -n ${A} ]] && kde4-base_src_compile
125 +}
126 +
127 +src_test() {
128 + [[ -n ${A} ]] && kde4-base_src_test
129 +}
130 +
131 +src_install() {
132 + [[ -n ${A} ]] && kde4-base_src_install
133 +}