1 |
commit: db8cca3ba3dc97db95e7e720fba5eb6861f4d7ae |
2 |
Author: Michael Palimaka <kensington <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jul 6 12:45:37 2017 +0000 |
4 |
Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jul 6 12:46:59 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/kde-sunset.git/commit/?id=db8cca3b |
7 |
|
8 |
app-office/calligra-l10n: import from main tree |
9 |
|
10 |
Package-Manager: Portage-2.3.6, Repoman-2.3.2 |
11 |
|
12 |
.../calligra-l10n/calligra-l10n-2.9.11-r1.ebuild | 106 +++++++++++++++++++++ |
13 |
app-office/calligra-l10n/metadata.xml | 12 +++ |
14 |
2 files changed, 118 insertions(+) |
15 |
|
16 |
diff --git a/app-office/calligra-l10n/calligra-l10n-2.9.11-r1.ebuild b/app-office/calligra-l10n/calligra-l10n-2.9.11-r1.ebuild |
17 |
new file mode 100644 |
18 |
index 0000000..15f72e6 |
19 |
--- /dev/null |
20 |
+++ b/app-office/calligra-l10n/calligra-l10n-2.9.11-r1.ebuild |
21 |
@@ -0,0 +1,106 @@ |
22 |
+# Copyright 1999-2017 Gentoo Foundation |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=6 |
26 |
+ |
27 |
+inherit kde4-base |
28 |
+ |
29 |
+DESCRIPTION="Calligra localization package" |
30 |
+HOMEPAGE="https://www.kde.org/" |
31 |
+LICENSE="GPL-2" |
32 |
+SLOT="4" |
33 |
+ |
34 |
+KEYWORDS="amd64 ~arm x86" |
35 |
+IUSE="doc" |
36 |
+ |
37 |
+DEPEND="sys-devel/gettext" |
38 |
+RDEPEND="!app-office/koffice-l10n" |
39 |
+ |
40 |
+CAL_FTS="braindump flow karbon kexi krita plan sheets stage words" |
41 |
+for cal_ft in ${CAL_FTS}; do |
42 |
+ IUSE+=" calligra_features_${cal_ft}" |
43 |
+done |
44 |
+unset cal_ft |
45 |
+ |
46 |
+MY_LANGS="bs ca ca@valencia cs da de el en_GB es et fi fr gl hu it ja kk nb nl |
47 |
+pl pt pt_BR ru sk sv tr uk zh_CN zh_TW" |
48 |
+ |
49 |
+case ${PV} in |
50 |
+ 2.[456789].[789]?) |
51 |
+ # beta or rc releases |
52 |
+ URI_BASE="mirror://kde/unstable/${PN/-l10n/}-${PV}/${PN}" ;; |
53 |
+ 2.[456789].?|2.[456789].??) |
54 |
+ # stable releases |
55 |
+ URI_BASE="mirror://kde/stable/${PN/-l10n/}-${PV}/${PN}" ;; |
56 |
+ *) |
57 |
+ SRC_URI="" ;; |
58 |
+esac |
59 |
+ |
60 |
+SRC_URI="" |
61 |
+ |
62 |
+for MY_LANG in ${MY_LANGS} ; do |
63 |
+ IUSE="${IUSE} l10n_${MY_LANG/[@_]/-}" |
64 |
+ SRC_URI="${SRC_URI} l10n_${MY_LANG/[@_]/-}? ( ${URI_BASE}/${PN}-${MY_LANG}-${PV}.tar.xz )" |
65 |
+done |
66 |
+unset MY_LANG |
67 |
+ |
68 |
+S="${WORKDIR}" |
69 |
+ |
70 |
+pkg_setup() { |
71 |
+ if [[ -z ${A} ]]; then |
72 |
+ elog |
73 |
+ elog "None of the requested L10N are supported by ${P}." |
74 |
+ elog |
75 |
+ elog "${P} supports these language codes:" |
76 |
+ elog "${MY_LANGS//[@_]/-}" |
77 |
+ elog |
78 |
+ fi |
79 |
+} |
80 |
+ |
81 |
+src_unpack() { |
82 |
+ [[ -n ${A} ]] && unpack ${A} |
83 |
+} |
84 |
+ |
85 |
+src_prepare() { |
86 |
+ cat <<-EOF > CMakeLists.txt || die |
87 |
+project(${PN}) |
88 |
+$(printf "add_subdirectory( %s )\n" \ |
89 |
+ `find . -mindepth 1 -maxdepth 1 -type d | sed -e "s:^\./::"`) |
90 |
+EOF |
91 |
+ |
92 |
+ local cal_ft |
93 |
+ for cal_ft in ${CAL_FTS}; do |
94 |
+ if ! use calligra_features_${cal_ft} ; then |
95 |
+ if ls -U ./*/messages/calligra/${cal_ft}*po > /dev/null 2>&1; then |
96 |
+ rm ./*/messages/calligra/${cal_ft}*po || \ |
97 |
+ die "Failed to remove ${cal_ft} messages" |
98 |
+ fi |
99 |
+ if ls -U ./*/docs/calligra/${cal_ft} > /dev/null 2>&1; then |
100 |
+ sed -e "\:add_subdirectory(\s*${cal_ft}\s*): s:^:#:" \ |
101 |
+ -i ./*/docs/calligra/CMakeLists.txt || \ |
102 |
+ die "Failed to comment out ${cal_ft} docs" |
103 |
+ fi |
104 |
+ fi |
105 |
+ done |
106 |
+ |
107 |
+ kde4-base_src_prepare |
108 |
+} |
109 |
+ |
110 |
+src_configure() { |
111 |
+ local mycmakeargs=( |
112 |
+ -DBUILD_DATA=ON |
113 |
+ -DBUILD_DOC=$(usex doc) |
114 |
+ -DBUILD_MESSAGES=ON |
115 |
+ ) |
116 |
+ [[ -n ${A} ]] && kde4-base_src_configure |
117 |
+} |
118 |
+ |
119 |
+src_compile() { |
120 |
+ [[ -n ${A} ]] && kde4-base_src_compile |
121 |
+} |
122 |
+ |
123 |
+src_test() { :; } |
124 |
+ |
125 |
+src_install() { |
126 |
+ [[ -n ${A} ]] && kde4-base_src_install |
127 |
+} |
128 |
|
129 |
diff --git a/app-office/calligra-l10n/metadata.xml b/app-office/calligra-l10n/metadata.xml |
130 |
new file mode 100644 |
131 |
index 0000000..494a039 |
132 |
--- /dev/null |
133 |
+++ b/app-office/calligra-l10n/metadata.xml |
134 |
@@ -0,0 +1,12 @@ |
135 |
+<?xml version="1.0" encoding="UTF-8"?> |
136 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
137 |
+<pkgmetadata> |
138 |
+ <maintainer type="project"> |
139 |
+ <email>kde@g.o</email> |
140 |
+ <name>Gentoo KDE Project</name> |
141 |
+ </maintainer> |
142 |
+ <maintainer type="project"> |
143 |
+ <email>office@g.o</email> |
144 |
+ <name>Gentoo Office project</name> |
145 |
+ </maintainer> |
146 |
+</pkgmetadata> |