[SCM] calligra localization packaging branch, master, updated. debian/2.8.5-1-7-ge01938f

Pino Toscano pino at moszumanska.debian.org
Sat Sep 17 13:56:46 UTC 2016


Gitweb-URL: http://git.debian.org/?p=pkg-kde/kde-std/calligra-l10n.git;a=commitdiff;h=2299759

The following commit has been merged in the master branch:
commit 22997592159414d8a6fc1faf1386f80f9d86e7d1
Author: Pino Toscano <pino at debian.org>
Date:   Sat Sep 17 15:55:26 2016 +0200

    exclude unwated files
---
 debian/changelog           | 5 +++++
 debian/excluded_files.list | 5 +++++
 debian/rules               | 9 +++++++--
 3 files changed, 17 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index f82e01c..4a49742 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -13,6 +13,11 @@ calligra-l10n (1:2.9.11-0r1) UNRELEASED; urgency=medium
     - update debian/README.source
     - add the resulting watch file generated with createwatch
   * Bump the calligra-libs dependency to >= 2.9.11.
+  * Exclude .mo files which are not wanted:
+    - desktop_calligra_calligra.mo, since it's only used for translating
+      .desktop files
+    - krita.mo, shipped with krita
+    - *.appdata.mo, since it's only used for translating appdata files
 
  -- Debian Qt/KDE Maintainers <debian-qt-kde at lists.debian.org>  Sat, 17 Sep 2016 15:16:25 +0200
 
diff --git a/debian/excluded_files.list b/debian/excluded_files.list
new file mode 100644
index 0000000..91a9ad8
--- /dev/null
+++ b/debian/excluded_files.list
@@ -0,0 +1,5 @@
+# not needed, only for .desktop files
+desktop_calligra_calligra.mo
+
+# shipped with krita
+krita.mo
diff --git a/debian/rules b/debian/rules
index c21a233..6196eb4 100755
--- a/debian/rules
+++ b/debian/rules
@@ -72,8 +72,13 @@ install: $(L10N_INSTALL)
 $(L10N_INSTALL): | prepare_install
 	# Installing '$(cur_lang)' to the '$(cur_pkg)' package
 	dh_auto_install -Scmake -D$(cur_lang) -B$(cur_lang_builddir) --destdir=$(CURDIR)/debian/$(cur_pkg)
-	# Remove extra desktop_calligra.mo file
-	rm --verbose debian/$(cur_pkg)/usr/share/locale/*/LC_MESSAGES/desktop_calligra.mo || true
+	# The new KF5 package have their own translations now, remove files listed in excluded_files.list
+	sed -e '/^$$/d;/^#/d' $(CURDIR)/debian/excluded_files.list | while read excluded_file; do \
+	    find $(CURDIR)/debian/$(cur_pkg) -name $${excluded_file} -delete ; \
+	done
+	# Drop *.appdata.mo translations, since they are only helper for
+	# translating appdata files
+	find $(CURDIR)/debian/$(cur_pkg) -name '*.appdata.mo' -delete
 
 prepare_clean:
 	dh_testdir

-- 
calligra localization packaging



More information about the pkg-kde-commits mailing list