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

[libreoffice-dictionaries] 01/01: let hyphen-en-gb provides hyphen-en-za and add a symlink.



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

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

commit 3182f278a8e95e69b9a38b4a2c7729aa993f2ca3
Author: Mattia Rizzolo <mattia@mapreri.org>
Date:   Wed Sep 30 12:03:40 2015 +0000

    let hyphen-en-gb provides hyphen-en-za and add a symlink.
    
    Closes: #800490
---
 debian/helper.py          | 10 +++++++++-
 debian/hyphen-en-gb.links |  1 +
 2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/debian/helper.py b/debian/helper.py
index 173411a..dfbb685 100755
--- a/debian/helper.py
+++ b/debian/helper.py
@@ -56,6 +56,10 @@ blacklisted_packages = [
  "mythes-sv",       # mythes-sv
 ]
 
+provides = {
+ "hyphen-en-gb": "hyphen-en-za",
+}
+
 breaks_replaces = {
  "hunspell-af": ("myspell-af", "1:3.3.0-4"),
  "hunspell-en-gb": ("myspell-en-gb", "1:3.3.0-4"),
@@ -169,7 +173,7 @@ Package: hyphen-$language_639
 Architecture: all
 Depends: dictionaries-common, $${misc:Depends}
 Suggests: libreoffice-writer
-Provides: hyphen-hyphenation-patterns, hyphen-hyphenation-patterns-$language_639
+Provides: hyphen-hyphenation-patterns, hyphen-hyphenation-patterns-${language_639}${more_provides}
 ${conflicts}Description: $language_name hyphenation patterns
  This package contains the $language_name hyphenation patterns.
  .
@@ -294,10 +298,14 @@ def generate_control():
                 pass
             else:
                 co = ''
+                pro = ''
                 if pkg_name in conflicts:
                     co = 'Conflicts: {}\n'.format(conflicts[pkg_name])
+                if pkg_name in provides:
+                    pro = ', %s' % provides[pkg_name]
                 control += hyphen_tpl.substitute(language_639=item['code'],
                                                  language_name=item['name'],
+                                                 more_provides=pro,
                                                  conflicts=co)
         if 'hunspell' in item:
             pkg_name = 'hunspell-' + item['code']
diff --git a/debian/hyphen-en-gb.links b/debian/hyphen-en-gb.links
new file mode 100644
index 0000000..d40f099
--- /dev/null
+++ b/debian/hyphen-en-gb.links
@@ -0,0 +1 @@
+usr/share/hyphen/hyph_en_GB.dic /usr/share/hyphen/hyph_en_ZA.dic

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


Reply to: