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/kdepim-l10n: kdepim-l10n-4.7.0.ebuild ChangeLog
Date: Thu, 28 Jul 2011 21:22:40
Message-Id: 20110728212230.EF0B22004B@flycatcher.gentoo.org
1 dilfridge 11/07/28 21:22:30
2
3 Modified: ChangeLog
4 Added: kdepim-l10n-4.7.0.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.13 kde-base/kdepim-l10n/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/kde-base/kdepim-l10n/ChangeLog?rev=1.13&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/kde-base/kdepim-l10n/ChangeLog?rev=1.13&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/kde-base/kdepim-l10n/ChangeLog?r1=1.12&r2=1.13
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/kde-base/kdepim-l10n/ChangeLog,v
20 retrieving revision 1.12
21 retrieving revision 1.13
22 diff -u -r1.12 -r1.13
23 --- ChangeLog 28 Jul 2011 20:46:07 -0000 1.12
24 +++ ChangeLog 28 Jul 2011 21:22:30 -0000 1.13
25 @@ -1,6 +1,12 @@
26 # ChangeLog for kde-base/kdepim-l10n
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/kde-base/kdepim-l10n/ChangeLog,v 1.12 2011/07/28 20:46:07 dilfridge Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/kde-base/kdepim-l10n/ChangeLog,v 1.13 2011/07/28 21:22:30 dilfridge Exp $
30 +
31 +*kdepim-l10n-4.7.0 (28 Jul 2011)
32 +
33 + 28 Jul 2011; Andreas K. Huettel <dilfridge@g.o>
34 + +kdepim-l10n-4.7.0.ebuild:
35 + Split kdepim translations out again
36
37 28 Jul 2011; Andreas K. Huettel <dilfridge@g.o>
38 -kdepim-l10n-4.4.11.1.ebuild:
39
40
41
42 1.1 kde-base/kdepim-l10n/kdepim-l10n-4.7.0.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/kde-base/kdepim-l10n/kdepim-l10n-4.7.0.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/kde-base/kdepim-l10n/kdepim-l10n-4.7.0.ebuild?rev=1.1&content-type=text/plain
46
47 Index: kdepim-l10n-4.7.0.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/kdepim-l10n/kdepim-l10n-4.7.0.ebuild,v 1.1 2011/07/28 21:22:30 dilfridge Exp $
52
53 EAPI=4
54
55 inherit kde4-base
56
57 DESCRIPTION="KDE PIM internationalization package"
58 HOMEPAGE="http://www.kde.org/"
59 LICENSE="GPL-2"
60
61 DEPEND="
62 sys-devel/gettext
63 "
64 RDEPEND=""
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}/kde-l10n-${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="kde-l10n-${LNG}-${PV}"
105 if [[ -d "${DIR}" ]] ; then
106 echo "add_subdirectory( ${DIR} )" >> "${S}"/CMakeLists.txt
107 fi
108
109 # remove everything except kdepim
110 for SUBDIR in data docs messages scripts ; do
111 if [[ -d "${S}/${DIR}/${SUBDIR}" ]] ; then
112 einfo " ${SUBDIR} subdirectory"
113 echo > "${S}/${DIR}/${SUBDIR}/CMakeLists.txt"
114 [[ -d "${S}/${DIR}/${SUBDIR}/kdepim" ]] && ( echo "add_subdirectory(kdepim)" >> "${S}/${DIR}/${SUBDIR}/CMakeLists.txt" )
115 fi
116 done
117
118 # in some cases we may have sub-lingua subdirs, e.g. sr :(
119 for XSUBDIR in "${S}/${DIR}/${LNG}"@* ; do
120 XLNG=$(echo ${XSUBDIR}|sed -e 's:^.*/::')
121 if [[ -d "${XSUBDIR}" ]] ; then
122 einfo " ${XLNG} variant"
123 # remove everything except kdepim
124 for SUBDIR in data docs messages scripts ; do
125 if [[ -d "${XSUBDIR}/${SUBDIR}" ]] ; then
126 einfo " ${SUBDIR} subdirectory"
127 echo > "${XSUBDIR}/${SUBDIR}/CMakeLists.txt"
128 [[ -d "${XSUBDIR}/${SUBDIR}/kdepim" ]] && ( echo "add_subdirectory(kdepim)" >> "${XSUBDIR}/${SUBDIR}/CMakeLists.txt" )
129 fi
130 done
131 fi
132 done
133 done
134 fi
135 }
136
137 src_prepare() {
138 [[ -n ${A} ]] && kde4-base_src_prepare
139 }
140
141 src_configure() {
142 mycmakeargs=(
143 $(cmake-utils_use_build handbook docs)
144 )
145 [[ -n ${A} ]] && kde4-base_src_configure
146 }
147
148 src_compile() {
149 [[ -n ${A} ]] && kde4-base_src_compile
150 }
151
152 src_test() {
153 [[ -n ${A} ]] && kde4-base_src_test
154 }
155
156 src_install() {
157 [[ -n ${A} ]] && kde4-base_src_install
158 }