Gentoo Archives: gentoo-commits

From: Johannes Huber <johu@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/kde:master commit in: kde-base/kdepim-l10n/
Date: Tue, 01 May 2012 11:08:17
Message-Id: 1335870337.43dfbcc4394f4106346b8a76c404d46436a661df.johu@gentoo
1 commit: 43dfbcc4394f4106346b8a76c404d46436a661df
2 Author: Johannes Huber <johu <AT> gentoo <DOT> org>
3 AuthorDate: Tue May 1 11:05:37 2012 +0000
4 Commit: Johannes Huber <johu <AT> gentoo <DOT> org>
5 CommitDate: Tue May 1 11:05:37 2012 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/kde.git;a=commit;h=43dfbcc4
7
8 [kde-base/kdepim-l10n] Version bump 4.8.3.
9
10 (Portage version: 2.2.0_alpha101/git/Linux x86_64, unsigned Manifest commit)
11
12 ---
13 kde-base/kdepim-l10n/kdepim-l10n-4.8.3.ebuild | 112 +++++++++++++++++++++++++
14 1 files changed, 112 insertions(+), 0 deletions(-)
15
16 diff --git a/kde-base/kdepim-l10n/kdepim-l10n-4.8.3.ebuild b/kde-base/kdepim-l10n/kdepim-l10n-4.8.3.ebuild
17 new file mode 100644
18 index 0000000..0e088a2
19 --- /dev/null
20 +++ b/kde-base/kdepim-l10n/kdepim-l10n-4.8.3.ebuild
21 @@ -0,0 +1,112 @@
22 +# Copyright 1999-2012 Gentoo Foundation
23 +# Distributed under the terms of the GNU General Public License v2
24 +# $Header: $
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 ~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 fa fi fr ga gl he
44 +hr hu ia id is it ja kk km ko lt lv nb nds nl nn pa pl pt pt_BR ro ru si sk sl
45 +sr sv tg th tr ug uk vi wa zh_CN zh_TW"
46 +
47 +URI_BASE="${SRC_URI/-${PV}.tar.xz/}"
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.xz )"
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 +}