This is an automated email from the git hooks/post-receive script.

mattia pushed a commit to branch master
in repository libreoffice-dictionaries.

commit fca72410a091500bd4ec4b1ab50b4403dd254bd6
Author: Gunnar Hjalmarsson <gunna...@ubuntu.com>
Date:   Fri May 13 13:46:16 2016 +0000

    d/rules: renamed dictionary files to include the country name in the code
    
    e.g. is → is_IS
    
    This way they are recognized by LibreOffice
---
 debian/hyphen-sr.links |  2 +-
 debian/rules           | 39 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 40 insertions(+), 1 deletion(-)

diff --git a/debian/hyphen-sr.links b/debian/hyphen-sr.links
index cfd2ca0..acd2693 100644
--- a/debian/hyphen-sr.links
+++ b/debian/hyphen-sr.links
@@ -1 +1 @@
-/usr/share/hyphen/hyph_sr.dic /usr/share/hyphen/hyph_sr_RS.dic
+usr/share/hyphen/hyph_sr_RS.dic usr/share/hyphen/hyph_sr_ME.dic
diff --git a/debian/rules b/debian/rules
index 4b0c21c..b8b3479 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,6 +1,21 @@
 #!/usr/bin/make -f
 #export DH_VERBOSE=1
 
+define rename_hunspell_files
+cd $(CURDIR)/debian/hunspell-$(strip $(1))/usr/share/hunspell; \
+mv $(strip $(2)).aff $(strip $(3)).aff; mv $(strip $(2)).dic $(strip $(3)).dic
+endef
+
+define rename_hyphen_files
+cd $(CURDIR)/debian/hyphen-$(strip $(1))/usr/share/hyphen; \
+mv hyph_$(strip $(2)).dic hyph_$(strip $(3)).dic
+endef
+
+define rename_mythes_files
+cd $(CURDIR)/debian/mythes-$(strip $(1))/usr/share/mythes; \
+mv $(strip $(2)).dat $(strip $(3)).dat; mv $(strip $(2)).idx $(strip $(3)).idx
+endef
+
 %:
        dh $@ --parallel
 
@@ -10,6 +25,30 @@ override_dh_auto_build:
        done
        dh_auto_build $@
 
+override_dh_install:
+       dh_install
+
+       $(call rename_hunspell_files,  es,  es_ANY,        es_ES )
+       $(call rename_hunspell_files,  is,  is,            is_IS )
+       $(call rename_hunspell_files,  lt,  lt,            lt_LT )
+       $(call rename_hunspell_files,  sr,  sr,            sr_RS )
+       $(call rename_hunspell_files,  sr,  sr-Latn,       sr_Latn_RS )
+
+       $(call rename_hyphen_files,    ca,  ca,            ca_ES )
+       $(call rename_hyphen_files,    es,  es_ANY,        es_ES )
+       $(call rename_hyphen_files,    gl,  gl,            gl_ES )
+       $(call rename_hyphen_files,    is,  is,            is_IS )
+       $(call rename_hyphen_files,    lt,  lt,            lt_LT )
+       $(call rename_hyphen_files,    sr,  sr,            sr_RS )
+       $(call rename_hyphen_files,    sr,  sr-Latn,       sr-Latn_RS )
+       $(call rename_hyphen_files,    sv,  sv,            sv_SE )
+
+       $(call rename_mythes_files,    ar,  th_ar,         th_ar_EG_v2 )
+       $(call rename_mythes_files,    es,  th_es_ANY_v2,  th_es_ES_v2 )
+       $(call rename_mythes_files,    gl,  thesaurus_gl,  th_gl_ES_v2 )
+       $(call rename_mythes_files,    is,  th_is,         th_is_IS_v2 )
+       $(call rename_mythes_files,    uk,  th_uk_UA,      th_uk_UA_v2 )
+
 override_dh_clean:
        find dictionaries/ -type f -name '*.idx' -delete
        dh_clean

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-openoffice/libreoffice-dictionaries.git

Reply via email to