1 |
commit: 58786218b1e0b317dff5b9d4dc117178c8fa61f0 |
2 |
Author: Michael Everitt <m.j.everitt <AT> iee <DOT> org> |
3 |
AuthorDate: Sun Oct 7 19:05:45 2018 +0000 |
4 |
Commit: Michael Everitt <m.j.everitt <AT> iee <DOT> org> |
5 |
CommitDate: Sun Oct 7 19:05:45 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/user/veremit.git/commit/?id=58786218 |
7 |
|
8 |
Add scribus qt4 packages |
9 |
|
10 |
Signed-off-by: Michael Everitt <m.j.everitt <AT> iee.org> |
11 |
|
12 |
app-office/scribus/Manifest | 2 + |
13 |
.../scribus/files/scribus-1.4.0-minizip.patch | 60 ++++++++ |
14 |
app-office/scribus/metadata.xml | 19 +++ |
15 |
app-office/scribus/scribus-1.4.6.ebuild | 171 +++++++++++++++++++++ |
16 |
app-office/scribus/scribus-1.4.7.ebuild | 171 +++++++++++++++++++++ |
17 |
5 files changed, 423 insertions(+) |
18 |
|
19 |
diff --git a/app-office/scribus/Manifest b/app-office/scribus/Manifest |
20 |
new file mode 100644 |
21 |
index 0000000..cd5c14e |
22 |
--- /dev/null |
23 |
+++ b/app-office/scribus/Manifest |
24 |
@@ -0,0 +1,2 @@ |
25 |
+DIST scribus-1.4.6.tar.xz 73601104 BLAKE2B 5968a48410d1a2a4caa333c9f83b43f68c964862d9aa3cb20e136760201ef2ef6cb82f770026b6f962758c9d397f25a017d906433f52f88bec11c57105c27f6b SHA512 74d8a89eb767535bcd8fe5e3c55d03709d59ff8fc5280005bcc2ad36cae1d37c8442ab85abaea86fdee9f351a901c86947231001324e2d8df00cbd8e5c18d1e3 |
26 |
+DIST scribus-1.4.7.tar.xz 72763748 BLAKE2B a3daa485cd35164d5055d920d53d1945c2760d48c552a2ce34193d1be2c5dc43e3c7d3c2ac64712f6d33c3b822648a78d8ba68f42c48bd3eb01739e28ec7aca1 SHA512 7627a46f0de2a7d4d3d3223e852db2fcdf9af439654cee3130046cd0a9a39f89dc185fc0342d9e03067e996c378929a2fee3f05cefee0b831a823622cf41e957 |
27 |
|
28 |
diff --git a/app-office/scribus/files/scribus-1.4.0-minizip.patch b/app-office/scribus/files/scribus-1.4.0-minizip.patch |
29 |
new file mode 100644 |
30 |
index 0000000..c0a4b7c |
31 |
--- /dev/null |
32 |
+++ b/app-office/scribus/files/scribus-1.4.0-minizip.patch |
33 |
@@ -0,0 +1,60 @@ |
34 |
+ Scribus.pro | 4 ---- |
35 |
+ scribus/CMakeLists.txt | 2 -- |
36 |
+ 2 files changed, 0 insertions(+), 6 deletions(-) |
37 |
+ |
38 |
+diff --git a/Scribus.pro b/Scribus.pro |
39 |
+index 17b5417..0cc23c9 100644 |
40 |
+--- a/Scribus.pro |
41 |
++++ b/Scribus.pro |
42 |
+@@ -276,7 +276,6 @@ HEADERS += scribus/about.h \ |
43 |
+ scribus/insertaframe.h \ |
44 |
+ scribus/insertTable.h \ |
45 |
+ scribus/inspage.h \ |
46 |
+- scribus/ioapi.h \ |
47 |
+ scribus/javadocs.h \ |
48 |
+ scribus/KarbonCurveFit.h \ |
49 |
+ scribus/langmgr.h \ |
50 |
+@@ -496,7 +495,6 @@ HEADERS += scribus/about.h \ |
51 |
+ scribus/undostate.h \ |
52 |
+ scribus/unicodesearch.h \ |
53 |
+ scribus/units.h \ |
54 |
+- scribus/unzip.h \ |
55 |
+ scribus/updatemanager.h \ |
56 |
+ scribus/upgradechecker.h \ |
57 |
+ scribus/urllauncher.h \ |
58 |
+@@ -933,7 +931,6 @@ SOURCES += scribus/about.cpp \ |
59 |
+ scribus/insertaframe.cpp \ |
60 |
+ scribus/insertTable.cpp \ |
61 |
+ scribus/inspage.cpp \ |
62 |
+- scribus/ioapi.c \ |
63 |
+ scribus/javadocs.cpp \ |
64 |
+ scribus/KarbonCurveFit.cpp \ |
65 |
+ scribus/langmgr.cpp \ |
66 |
+@@ -1143,7 +1140,6 @@ SOURCES += scribus/about.cpp \ |
67 |
+ scribus/undostate.cpp \ |
68 |
+ scribus/unicodesearch.cpp \ |
69 |
+ scribus/units.cpp \ |
70 |
+- scribus/unzip.c \ |
71 |
+ scribus/updatemanager.cpp \ |
72 |
+ scribus/upgradechecker.cpp \ |
73 |
+ scribus/urllauncher.cpp \ |
74 |
+diff --git a/scribus/CMakeLists.txt b/scribus/CMakeLists.txt |
75 |
+index dcd7e10..3aca69b 100644 |
76 |
+--- a/scribus/CMakeLists.txt |
77 |
++++ b/scribus/CMakeLists.txt |
78 |
+@@ -405,7 +405,6 @@ SET(SCRIBUS_SOURCES |
79 |
+ insertTable.cpp |
80 |
+ insertaframe.cpp |
81 |
+ inspage.cpp |
82 |
+- ioapi.c |
83 |
+ javadocs.cpp |
84 |
+ KarbonCurveFit.cpp |
85 |
+ langmgr.cpp |
86 |
+@@ -613,7 +612,6 @@ SET(SCRIBUS_SOURCES |
87 |
+ undostate.cpp |
88 |
+ unicodesearch.cpp |
89 |
+ units.cpp |
90 |
+- unzip.c |
91 |
+ updatemanager.cpp |
92 |
+ upgradechecker.cpp |
93 |
+ urllauncher.cpp |
94 |
|
95 |
diff --git a/app-office/scribus/metadata.xml b/app-office/scribus/metadata.xml |
96 |
new file mode 100644 |
97 |
index 0000000..02d7f56 |
98 |
--- /dev/null |
99 |
+++ b/app-office/scribus/metadata.xml |
100 |
@@ -0,0 +1,19 @@ |
101 |
+<?xml version="1.0" encoding="UTF-8"?> |
102 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
103 |
+<pkgmetadata> |
104 |
+ <maintainer type="person"> |
105 |
+ <email>jlec@g.o</email> |
106 |
+ </maintainer> |
107 |
+ <use> |
108 |
+ <flag name="boost">Enable support for Boost based enhancement</flag> |
109 |
+ <flag name="hunspell">Enable support for spell checking with <pkg>app-text/hunspell</pkg></flag> |
110 |
+ <flag name="minimal">Don't install headers (only required for e.g. plug-in developers)</flag> |
111 |
+ <flag name="osg">3D redering via <pkg>dev-games/openscenegraph</pkg></flag> |
112 |
+ <flag name="scripts">Install the scripts</flag> |
113 |
+ <flag name="templates">Document tamplates</flag> |
114 |
+ <flag name="tk">Install tk based scripts e.g. FontSample.py</flag> |
115 |
+ </use> |
116 |
+ <upstream> |
117 |
+ <remote-id type="sourceforge">scribus</remote-id> |
118 |
+ </upstream> |
119 |
+</pkgmetadata> |
120 |
|
121 |
diff --git a/app-office/scribus/scribus-1.4.6.ebuild b/app-office/scribus/scribus-1.4.6.ebuild |
122 |
new file mode 100644 |
123 |
index 0000000..0908438 |
124 |
--- /dev/null |
125 |
+++ b/app-office/scribus/scribus-1.4.6.ebuild |
126 |
@@ -0,0 +1,171 @@ |
127 |
+# Copyright 1999-2018 Gentoo Foundation |
128 |
+# Distributed under the terms of the GNU General Public License v2 |
129 |
+ |
130 |
+EAPI=5 |
131 |
+ |
132 |
+PYTHON_COMPAT=( python2_7 ) |
133 |
+PYTHON_REQ_USE="tk?" |
134 |
+ |
135 |
+inherit cmake-utils fdo-mime python-single-r1 |
136 |
+ |
137 |
+DESCRIPTION="Desktop publishing (DTP) and layout program" |
138 |
+HOMEPAGE="http://www.scribus.net/" |
139 |
+SRC_URI="mirror://sourceforge/${PN}/${PV}/${P}.tar.xz" |
140 |
+ |
141 |
+LICENSE="GPL-2" |
142 |
+SLOT="0" |
143 |
+KEYWORDS="amd64 ~hppa ppc ppc64 ~sparc x86" |
144 |
+IUSE="cairo debug examples hunspell +minimal +pdf scripts templates tk" |
145 |
+ |
146 |
+# a=$(ls resources/translations/po/scribus.*ts | sed -e 's:\.: :g' | awk '{print $2}'); echo ${a} |
147 |
+# Keep this sorted, otherwise eliminating of duplicates below won't work |
148 |
+IUSE_L10N=" af ar bg br ca cs_CZ cy da_DK de_1901 de_CH de el en_AU en_GB en_US eo es_ES et eu fi fr gl hu id it ja ko lt_LT nb_NO nl pl_PL pt_BR pt ru sa sk_SK sl sq sr sv th_TH tr uk zh_CN zh_TW" |
149 |
+ |
150 |
+map_lang() { |
151 |
+ local lang=${1/_/-} |
152 |
+ case $1 in |
153 |
+ # Retain the following, which have a specific subtag |
154 |
+ de_*|en_*|pt_*|zh_*) ;; |
155 |
+ # Consider all other xx_XX as duplicates of the generic xx tag |
156 |
+ *_*) lang=${1%%_*} ;; |
157 |
+ esac |
158 |
+ echo ${lang} |
159 |
+} |
160 |
+ |
161 |
+prev_l= |
162 |
+for l in ${IUSE_L10N}; do |
163 |
+ l=$(map_lang ${l}) |
164 |
+ [[ ${l} != "${prev_l}" ]] && IUSE+=" l10n_${l}" |
165 |
+ prev_l=${l} |
166 |
+done |
167 |
+unset l prev_l |
168 |
+ |
169 |
+REQUIRED_USE=" |
170 |
+ ${PYTHON_REQUIRED_USE} |
171 |
+ tk? ( scripts )" |
172 |
+ |
173 |
+COMMON_DEPEND=" |
174 |
+ ${PYTHON_DEPS} |
175 |
+ dev-libs/boost |
176 |
+ dev-libs/hyphen |
177 |
+ dev-libs/libxml2 |
178 |
+ dev-qt/qtcore:4 |
179 |
+ dev-qt/qtgui:4 |
180 |
+ media-libs/fontconfig |
181 |
+ media-libs/freetype:2 |
182 |
+ media-libs/lcms:2 |
183 |
+ media-libs/libpng:0 |
184 |
+ media-libs/tiff:0 |
185 |
+ net-print/cups |
186 |
+ sys-libs/zlib[minizip] |
187 |
+ virtual/jpeg:0= |
188 |
+ cairo? ( x11-libs/cairo[X,svg] ) |
189 |
+ !cairo? ( media-libs/libart_lgpl ) |
190 |
+ hunspell? ( app-text/hunspell ) |
191 |
+ pdf? ( app-text/podofo ) |
192 |
+ scripts? ( dev-python/pillow[tk?,${PYTHON_USEDEP}] ) |
193 |
+ tk? ( dev-python/pillow[tk?,${PYTHON_USEDEP}] ) |
194 |
+" |
195 |
+RDEPEND="${COMMON_DEPEND} |
196 |
+ app-text/ghostscript-gpl" |
197 |
+DEPEND="${COMMON_DEPEND} |
198 |
+ virtual/pkgconfig" |
199 |
+ |
200 |
+PATCHES=( |
201 |
+ "${FILESDIR}"/${PN}-1.4.0-minizip.patch |
202 |
+ ) |
203 |
+ |
204 |
+src_prepare() { |
205 |
+ cat > cmake/modules/FindZLIB.cmake <<- EOF |
206 |
+ find_package(PkgConfig) |
207 |
+ pkg_check_modules(ZLIB minizip zlib) |
208 |
+ SET( ZLIB_LIBRARY \${ZLIB_LIBRARIES} ) |
209 |
+ SET( ZLIB_INCLUDE_DIR \${ZLIB_INCLUDE_DIRS} ) |
210 |
+ MARK_AS_ADVANCED( ZLIB_LIBRARY ZLIB_INCLUDE_DIR ) |
211 |
+ EOF |
212 |
+ |
213 |
+ rm scribus/{ioapi,unzip}.[ch] || die |
214 |
+ |
215 |
+ sed \ |
216 |
+ -e 's:\(${CMAKE_INSTALL_PREFIX}\):./\1:g' \ |
217 |
+ -i resources/templates/CMakeLists.txt || die |
218 |
+ |
219 |
+ cmake-utils_src_prepare |
220 |
+} |
221 |
+ |
222 |
+src_configure() { |
223 |
+ local _lang lang langs |
224 |
+ for _lang in ${IUSE_L10N}; do |
225 |
+ lang=$(map_lang ${_lang}) |
226 |
+ if use l10n_${lang}; then |
227 |
+ langs+=",${_lang}" |
228 |
+ else |
229 |
+ sed -e "/${_lang}/d" -i scribus/doc/CMakeLists.txt || die |
230 |
+ fi |
231 |
+ done |
232 |
+ |
233 |
+ local mycmakeargs=( |
234 |
+ -DHAVE_PYTHON=ON |
235 |
+ -DPYTHON_INCLUDE_PATH="$(python_get_includedir)" |
236 |
+ -DPYTHON_LIBRARY="$(python_get_library_path)" |
237 |
+ -DWANT_NORPATH=ON |
238 |
+ -DWANT_QT3SUPPORT=OFF |
239 |
+ -IUSE_LINGUAS=ON |
240 |
+ -DWANT_GUI_LANG=${langs#,} |
241 |
+ -DCMAKE_INSTALL_DATAROOTDIR="${EPREFIX}/usr/share" |
242 |
+ -DTAG_VERSION=-${PVR} |
243 |
+ $(cmake-utils_use_with pdf PODOFO) |
244 |
+ $(cmake-utils_use_want cairo) |
245 |
+ $(cmake-utils_use_want !cairo QTARTHUR) |
246 |
+ $(cmake-utils_use_want debug DEBUG) |
247 |
+ $(cmake-utils_use_want minimal NOHEADERINSTALL) |
248 |
+ $(cmake-utils_use_want hunspell HUNSPELL) |
249 |
+ $(cmake-utils_use_want !examples NOEXAMPLES) |
250 |
+ $(cmake-utils_use_want !templates NOTEMPLATES) |
251 |
+ ) |
252 |
+ cmake-utils_src_configure |
253 |
+} |
254 |
+ |
255 |
+src_install() { |
256 |
+ cmake-utils_src_install |
257 |
+ |
258 |
+ local _lang lang file |
259 |
+ for _lang in ${IUSE_L10N}; do |
260 |
+ lang=$(map_lang ${_lang}) |
261 |
+ file="${ED}"/usr/share/scribus/translations/scribus.${_lang}.qm |
262 |
+ if ! use l10n_${lang} && [[ -f "${file}" ]]; then |
263 |
+ rm "${file}" || die |
264 |
+ fi |
265 |
+ done |
266 |
+ |
267 |
+ if ! use scripts; then |
268 |
+ rm "${ED}"/usr/share/${PF}/scripts/*.py || die |
269 |
+ else |
270 |
+ if ! use tk; then |
271 |
+ rm "${ED}"/usr/share/${PF}/scripts/{FontSample,CalendarWizard}.py* || die |
272 |
+ fi |
273 |
+ python_fix_shebang "${ED}"/usr/share/${PF}/scripts |
274 |
+ python_optimize "${ED}"/usr/share/${PF}/scripts |
275 |
+ fi |
276 |
+ |
277 |
+ mv "${ED}"/usr/share/doc/${PF}/{en,html} || die |
278 |
+ ln -sf html "${ED}"/usr/share/doc/${PF}/en || die |
279 |
+ cat >> "${T}"/COPYING <<- EOF |
280 |
+ ${PN} is licensed under the "${LICENSE}". |
281 |
+ Please visit https://www.gnu.org/licenses/gpl-2.0.html for the complete license text. |
282 |
+ EOF |
283 |
+ dodoc "${T}"/COPYING |
284 |
+ docompress -x /usr/share/doc/${PF}/en /usr/share/doc/${PF}/{AUTHORS,TRANSLATION,LINKS,COPYING} |
285 |
+ doicon resources/icons/scribus.png |
286 |
+ domenu scribus.desktop |
287 |
+} |
288 |
+ |
289 |
+pkg_postinst() { |
290 |
+ fdo-mime_desktop_database_update |
291 |
+ fdo-mime_mime_database_update |
292 |
+} |
293 |
+ |
294 |
+pkg_postrm() { |
295 |
+ fdo-mime_desktop_database_update |
296 |
+ fdo-mime_mime_database_update |
297 |
+} |
298 |
|
299 |
diff --git a/app-office/scribus/scribus-1.4.7.ebuild b/app-office/scribus/scribus-1.4.7.ebuild |
300 |
new file mode 100644 |
301 |
index 0000000..cfd29c7 |
302 |
--- /dev/null |
303 |
+++ b/app-office/scribus/scribus-1.4.7.ebuild |
304 |
@@ -0,0 +1,171 @@ |
305 |
+# Copyright 1999-2018 Gentoo Foundation |
306 |
+# Distributed under the terms of the GNU General Public License v2 |
307 |
+ |
308 |
+EAPI=5 |
309 |
+ |
310 |
+PYTHON_COMPAT=( python2_7 ) |
311 |
+PYTHON_REQ_USE="tk?" |
312 |
+ |
313 |
+inherit cmake-utils fdo-mime python-single-r1 |
314 |
+ |
315 |
+DESCRIPTION="Desktop publishing (DTP) and layout program" |
316 |
+HOMEPAGE="http://www.scribus.net/" |
317 |
+SRC_URI="mirror://sourceforge/${PN}/${PV}/${P}.tar.xz" |
318 |
+ |
319 |
+LICENSE="GPL-2" |
320 |
+SLOT="0" |
321 |
+KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86" |
322 |
+IUSE="cairo debug examples hunspell +minimal +pdf scripts templates tk" |
323 |
+ |
324 |
+# a=$(ls resources/translations/po/scribus.*ts | sed -e 's:\.: :g' | awk '{print $2}'); echo ${a} |
325 |
+# Keep this sorted, otherwise eliminating of duplicates below won't work |
326 |
+IUSE_L10N=" af ar bg br ca cs_CZ cy da_DK de_1901 de_CH de el en_AU en_GB en_US eo es_ES et eu fi fr gl hu id it ja ko lt_LT nb_NO nl pl_PL pt_BR pt ru sa sk_SK sl sq sr sv th_TH tr uk zh_CN zh_TW" |
327 |
+ |
328 |
+map_lang() { |
329 |
+ local lang=${1/_/-} |
330 |
+ case $1 in |
331 |
+ # Retain the following, which have a specific subtag |
332 |
+ de_*|en_*|pt_*|zh_*) ;; |
333 |
+ # Consider all other xx_XX as duplicates of the generic xx tag |
334 |
+ *_*) lang=${1%%_*} ;; |
335 |
+ esac |
336 |
+ echo ${lang} |
337 |
+} |
338 |
+ |
339 |
+prev_l= |
340 |
+for l in ${IUSE_L10N}; do |
341 |
+ l=$(map_lang ${l}) |
342 |
+ [[ ${l} != "${prev_l}" ]] && IUSE+=" l10n_${l}" |
343 |
+ prev_l=${l} |
344 |
+done |
345 |
+unset l prev_l |
346 |
+ |
347 |
+REQUIRED_USE=" |
348 |
+ ${PYTHON_REQUIRED_USE} |
349 |
+ tk? ( scripts )" |
350 |
+ |
351 |
+COMMON_DEPEND=" |
352 |
+ ${PYTHON_DEPS} |
353 |
+ dev-libs/boost |
354 |
+ dev-libs/hyphen |
355 |
+ dev-libs/libxml2 |
356 |
+ dev-qt/qtcore:4 |
357 |
+ dev-qt/qtgui:4 |
358 |
+ media-libs/fontconfig |
359 |
+ media-libs/freetype:2 |
360 |
+ media-libs/lcms:2 |
361 |
+ media-libs/libpng:0 |
362 |
+ media-libs/tiff:0 |
363 |
+ net-print/cups |
364 |
+ sys-libs/zlib[minizip] |
365 |
+ virtual/jpeg:0= |
366 |
+ cairo? ( x11-libs/cairo[X,svg] ) |
367 |
+ !cairo? ( media-libs/libart_lgpl ) |
368 |
+ hunspell? ( app-text/hunspell ) |
369 |
+ pdf? ( app-text/podofo ) |
370 |
+ scripts? ( dev-python/pillow[tk?,${PYTHON_USEDEP}] ) |
371 |
+ tk? ( dev-python/pillow[tk?,${PYTHON_USEDEP}] ) |
372 |
+" |
373 |
+RDEPEND="${COMMON_DEPEND} |
374 |
+ app-text/ghostscript-gpl" |
375 |
+DEPEND="${COMMON_DEPEND} |
376 |
+ virtual/pkgconfig" |
377 |
+ |
378 |
+PATCHES=( |
379 |
+ "${FILESDIR}"/${PN}-1.4.0-minizip.patch |
380 |
+ ) |
381 |
+ |
382 |
+src_prepare() { |
383 |
+ cat > cmake/modules/FindZLIB.cmake <<- EOF |
384 |
+ find_package(PkgConfig) |
385 |
+ pkg_check_modules(ZLIB minizip zlib) |
386 |
+ SET( ZLIB_LIBRARY \${ZLIB_LIBRARIES} ) |
387 |
+ SET( ZLIB_INCLUDE_DIR \${ZLIB_INCLUDE_DIRS} ) |
388 |
+ MARK_AS_ADVANCED( ZLIB_LIBRARY ZLIB_INCLUDE_DIR ) |
389 |
+ EOF |
390 |
+ |
391 |
+ rm scribus/{ioapi,unzip}.[ch] || die |
392 |
+ |
393 |
+ sed \ |
394 |
+ -e 's:\(${CMAKE_INSTALL_PREFIX}\):./\1:g' \ |
395 |
+ -i resources/templates/CMakeLists.txt || die |
396 |
+ |
397 |
+ cmake-utils_src_prepare |
398 |
+} |
399 |
+ |
400 |
+src_configure() { |
401 |
+ local _lang lang langs |
402 |
+ for _lang in ${IUSE_L10N}; do |
403 |
+ lang=$(map_lang ${_lang}) |
404 |
+ if use l10n_${lang}; then |
405 |
+ langs+=",${_lang}" |
406 |
+ else |
407 |
+ sed -e "/${_lang}/d" -i scribus/doc/CMakeLists.txt || die |
408 |
+ fi |
409 |
+ done |
410 |
+ |
411 |
+ local mycmakeargs=( |
412 |
+ -DHAVE_PYTHON=ON |
413 |
+ -DPYTHON_INCLUDE_PATH="$(python_get_includedir)" |
414 |
+ -DPYTHON_LIBRARY="$(python_get_library_path)" |
415 |
+ -DWANT_NORPATH=ON |
416 |
+ -DWANT_QT3SUPPORT=OFF |
417 |
+ -IUSE_LINGUAS=ON |
418 |
+ -DWANT_GUI_LANG=${langs#,} |
419 |
+ -DCMAKE_INSTALL_DATAROOTDIR="${EPREFIX}/usr/share" |
420 |
+ -DTAG_VERSION=-${PVR} |
421 |
+ $(cmake-utils_use_with pdf PODOFO) |
422 |
+ $(cmake-utils_use_want cairo) |
423 |
+ $(cmake-utils_use_want !cairo QTARTHUR) |
424 |
+ $(cmake-utils_use_want debug DEBUG) |
425 |
+ $(cmake-utils_use_want minimal NOHEADERINSTALL) |
426 |
+ $(cmake-utils_use_want hunspell HUNSPELL) |
427 |
+ $(cmake-utils_use_want !examples NOEXAMPLES) |
428 |
+ $(cmake-utils_use_want !templates NOTEMPLATES) |
429 |
+ ) |
430 |
+ cmake-utils_src_configure |
431 |
+} |
432 |
+ |
433 |
+src_install() { |
434 |
+ cmake-utils_src_install |
435 |
+ |
436 |
+ local _lang lang file |
437 |
+ for _lang in ${IUSE_L10N}; do |
438 |
+ lang=$(map_lang ${_lang}) |
439 |
+ file="${ED}"/usr/share/scribus/translations/scribus.${_lang}.qm |
440 |
+ if ! use l10n_${lang} && [[ -f "${file}" ]]; then |
441 |
+ rm "${file}" || die |
442 |
+ fi |
443 |
+ done |
444 |
+ |
445 |
+ if ! use scripts; then |
446 |
+ rm "${ED}"/usr/share/${PF}/scripts/*.py || die |
447 |
+ else |
448 |
+ if ! use tk; then |
449 |
+ rm "${ED}"/usr/share/${PF}/scripts/{FontSample,CalendarWizard}.py* || die |
450 |
+ fi |
451 |
+ python_fix_shebang "${ED}"/usr/share/${PF}/scripts |
452 |
+ python_optimize "${ED}"/usr/share/${PF}/scripts |
453 |
+ fi |
454 |
+ |
455 |
+ mv "${ED}"/usr/share/doc/${PF}/{en,html} || die |
456 |
+ ln -sf html "${ED}"/usr/share/doc/${PF}/en || die |
457 |
+ cat >> "${T}"/COPYING <<- EOF |
458 |
+ ${PN} is licensed under the "${LICENSE}". |
459 |
+ Please visit https://www.gnu.org/licenses/gpl-2.0.html for the complete license text. |
460 |
+ EOF |
461 |
+ dodoc "${T}"/COPYING |
462 |
+ docompress -x /usr/share/doc/${PF}/en /usr/share/doc/${PF}/{AUTHORS,TRANSLATION,LINKS,COPYING} |
463 |
+ doicon resources/icons/scribus.png |
464 |
+ domenu scribus.desktop |
465 |
+} |
466 |
+ |
467 |
+pkg_postinst() { |
468 |
+ fdo-mime_desktop_database_update |
469 |
+ fdo-mime_mime_database_update |
470 |
+} |
471 |
+ |
472 |
+pkg_postrm() { |
473 |
+ fdo-mime_desktop_database_update |
474 |
+ fdo-mime_mime_database_update |
475 |
+} |