[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[libreoffice-dictionaries] 03/04: mythes-cs is back; rebuild dat file with official script



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

rene pushed a commit to branch experimental
in repository libreoffice-dictionaries.

commit 1fb593f203c2e595e675c2709f36b7641a070e27
Author: Rene Engelhard <rene@rene-engelhard.de>
Date:   Fri Jul 22 11:54:07 2016 +0200

    mythes-cs is back; rebuild dat file with official script
---
 debian/control    | 13 ++++++++++++-
 debian/control.in |  2 +-
 debian/list.json  |  4 ++++
 debian/rules      |  3 +++
 4 files changed, 20 insertions(+), 2 deletions(-)

diff --git a/debian/control b/debian/control
index c75f526..d7dff0a 100644
--- a/debian/control
+++ b/debian/control
@@ -8,7 +8,7 @@ Uploaders: Chris Halls <halls@debian.org>,
            Mattia Rizzolo <mattia@debian.org>,
            Rene Engelhard <rene@debian.org>
 Build-Depends: debhelper (>= 9)
-Build-Depends-Indep: unzip, libmythes-dev
+Build-Depends-Indep: unzip, libmythes-dev, python
 Standards-Version: 3.9.8
 Homepage: https://wiki.documentfoundation.org/Language_support_of_LibreOffice
 Vcs-Git: https://anonscm.debian.org/git/pkg-openoffice/libreoffice-dictionaries.git
@@ -266,6 +266,17 @@ Description: Czech dictionary for hunspell
  terminal interface using Curses library, an Ispell pipe interface and a
  LibreOffice UNO module.
 
+Package: mythes-cs
+Architecture: all
+Depends: dictionaries-common, ${misc:Depends}
+Suggests: libreoffice-writer
+Provides: mythes-thesaurus, mythes-thesaurus-cs
+Description: Czech Thesaurus for LibreOffice
+ Libreoffice is a full-featured office productivity suite that provides a
+ near drop-in replacement for Microsoft(R) Office.
+ .
+ This package contains an Czech thesaurus for LibreOffice.
+
 Package: hyphen-da
 Architecture: all
 Depends: dictionaries-common, ${misc:Depends}
diff --git a/debian/control.in b/debian/control.in
index 8ef67ab..877df9f 100644
--- a/debian/control.in
+++ b/debian/control.in
@@ -6,7 +6,7 @@ Uploaders: Chris Halls <halls@debian.org>,
            Mattia Rizzolo <mattia@debian.org>,
            Rene Engelhard <rene@debian.org>
 Build-Depends: debhelper (>= 9)
-Build-Depends-Indep: unzip, libmythes-dev
+Build-Depends-Indep: unzip, libmythes-dev, python
 Standards-Version: 3.9.8
 Homepage: https://wiki.documentfoundation.org/Language_support_of_LibreOffice
 Vcs-Git: https://anonscm.debian.org/git/pkg-openoffice/libreoffice-dictionaries.git
diff --git a/debian/list.json b/debian/list.json
index be247a2..7e71c92 100644
--- a/debian/list.json
+++ b/debian/list.json
@@ -113,6 +113,10 @@
         "hyphen": [
             "hyph_cs_CZ.dic"
         ],
+        "mythes": [
+            "thes_cs_CZ.dat",
+            "thes_cs_CZ.idx"
+        ],
         "name": "Czech"
     },
     {
diff --git a/debian/rules b/debian/rules
index d814650..49b75e7 100755
--- a/debian/rules
+++ b/debian/rules
@@ -20,6 +20,8 @@ endef
 	dh $@ --parallel
 
 override_dh_auto_build:
+	cd dictionaries/cs_CZ/thesaurus && \
+		./dictionary-to-thesaurus.py slovnik_data_utf8.txt blacklist.txt > ../thes_cs_CZ.dat
 	for dat in `find dictionaries -type f -name "*.dat"`; do \
 		/usr/share/mythes/th_gen_idx.pl -o $${dat%dat}idx < $${dat}; \
 	done
@@ -52,6 +54,7 @@ override_dh_install:
 
 override_dh_clean:
 	find dictionaries/ -type f -name '*.idx' -delete
+	rm -rf dictionaries/cs_CZ/thes_cs_CZ.dat
 	dh_clean
 
 override_dh_installchangelogs:

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


Reply to: