1 |
commit: ddb7d3bed543e36ed09f33f5fcfae5e19688cc0a |
2 |
Author: Andreas K. Huettel <andreas.huettel <AT> physik <DOT> uni-r <DOT> de> |
3 |
AuthorDate: Thu Jul 28 12:45:30 2011 +0000 |
4 |
Commit: Andreas Hüttel <dilfridge <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jul 28 13:03:51 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/kde.git;a=commit;h=ddb7d3be |
7 |
|
8 |
[kde-base/kde-l10n] Add 4.7.0 l10 that does not collide with kdepim-4.4 |
9 |
|
10 |
(Portage version: 2.1.10.7/git/Linux x86_64, signed Manifest commit with key 7887F787) |
11 |
|
12 |
--- |
13 |
kde-base/kde-l10n/kde-l10n-4.7.0-r1.ebuild | 93 ++++++++++++++++++++++++++++ |
14 |
1 files changed, 93 insertions(+), 0 deletions(-) |
15 |
|
16 |
diff --git a/kde-base/kde-l10n/kde-l10n-4.7.0-r1.ebuild b/kde-base/kde-l10n/kde-l10n-4.7.0-r1.ebuild |
17 |
new file mode 100644 |
18 |
index 0000000..cd5ae33 |
19 |
--- /dev/null |
20 |
+++ b/kde-base/kde-l10n/kde-l10n-4.7.0-r1.ebuild |
21 |
@@ -0,0 +1,93 @@ |
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/kde-l10n/kde-l10n-4.7.0.ebuild,v 1.1 2011/07/27 14:04:26 alexxy Exp $ |
25 |
+ |
26 |
+EAPI="3" |
27 |
+ |
28 |
+inherit kde4-base |
29 |
+ |
30 |
+DESCRIPTION="KDE internationalization package" |
31 |
+HOMEPAGE="http://www.kde.org/" |
32 |
+LICENSE="GPL-2" |
33 |
+ |
34 |
+DEPEND=" |
35 |
+ sys-devel/gettext |
36 |
+" |
37 |
+RDEPEND="!<kde-misc/konq-plugins-4.6" |
38 |
+ |
39 |
+KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux" |
40 |
+IUSE="+handbook" |
41 |
+ |
42 |
+# /usr/portage/distfiles $ ls -1 kde-l10n-*-${PV}.* |sed -e 's:-${PV}.tar.bz2::' -e 's:kde-l10n-::' |tr '\n' ' ' |
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 sr |
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}/${PN}-${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="${PN}-${LNG}-${PV}" |
78 |
+ if [[ -d "${DIR}" ]] ; then |
79 |
+ echo "add_subdirectory( ${DIR} )" >> "${S}"/CMakeLists.txt |
80 |
+ fi |
81 |
+ done |
82 |
+ fi |
83 |
+} |
84 |
+ |
85 |
+src_prepare() { |
86 |
+ # Upstream added kdepim-runtime translations by mistake and does not want to |
87 |
+ # make a new tarball, bug 366353 |
88 |
+ |
89 |
+ find "${S}" -name CMakeLists.txt -type f \ |
90 |
+ -exec sed -i -e 's:add_subdirectory(kdepim-runtime):# no kdepim-runtime:g' {} + |
91 |
+ find "${S}" -name CMakeLists.txt -type f \ |
92 |
+ -exec sed -i -e 's:add_subdirectory(kdepim):# no kdepim:g' {} + |
93 |
+ |
94 |
+ kde4-base_src_prepare |
95 |
+} |
96 |
+ |
97 |
+src_configure() { |
98 |
+ mycmakeargs=( |
99 |
+ $(cmake-utils_use_build handbook docs) |
100 |
+ ) |
101 |
+ [[ -n ${A} ]] && kde4-base_src_configure |
102 |
+} |
103 |
+ |
104 |
+src_compile() { |
105 |
+ [[ -n ${A} ]] && kde4-base_src_compile |
106 |
+} |
107 |
+ |
108 |
+src_test() { |
109 |
+ [[ -n ${A} ]] && kde4-base_src_test |
110 |
+} |
111 |
+ |
112 |
+src_install() { |
113 |
+ [[ -n ${A} ]] && kde4-base_src_install |
114 |
+} |