From 1728948f28b421551dfb6a436d8ccbb613212d5c Mon Sep 17 00:00:00 2001 From: ayhanyalcinsoy Date: Sat, 3 Oct 2015 21:57:19 +0300 Subject: [PATCH] hunspell-tr:new package --- office/dictionary/component.xml | 3 ++ office/dictionary/hunspell-dict-tr/actions.py | 22 ++++++++++ office/dictionary/hunspell-dict-tr/pspec.xml | 41 +++++++++++++++++++ .../hunspell-dict-tr/translations.xml | 8 ++++ 4 files changed, 74 insertions(+) create mode 100644 office/dictionary/component.xml create mode 100644 office/dictionary/hunspell-dict-tr/actions.py create mode 100644 office/dictionary/hunspell-dict-tr/pspec.xml create mode 100644 office/dictionary/hunspell-dict-tr/translations.xml diff --git a/office/dictionary/component.xml b/office/dictionary/component.xml new file mode 100644 index 0000000000..e370410cf9 --- /dev/null +++ b/office/dictionary/component.xml @@ -0,0 +1,3 @@ + + office.dictionary + diff --git a/office/dictionary/hunspell-dict-tr/actions.py b/office/dictionary/hunspell-dict-tr/actions.py new file mode 100644 index 0000000000..6a64eba1e5 --- /dev/null +++ b/office/dictionary/hunspell-dict-tr/actions.py @@ -0,0 +1,22 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- +# +# Licensed under the GNU General Public License, version 3. +# See the file http://www.gnu.org/licenses/gpl.txt + +from pisi.actionsapi import pisitools +from pisi.actionsapi import shelltools +from pisi.actionsapi import get + +import glob + +WorkDir="." + +def install(): + hunspell_tr = "/usr/lib/libreoffice/share/extensions/hunspell_tr" + pisitools.dodir(hunspell_tr) + hunspellfile = glob.glob("*.oxt")[0] + shelltools.system("unzip %s -d %s/%s" % (hunspellfile, get.installDIR(), hunspell_tr)) + #for other applications + pisitools.dosym("/usr/lib/libreoffice/share/extensions/hunspell_tr/dictionaries/tr-TR.aff","/usr/share/hunspell/tr-TR.aff") + pisitools.dosym("/usr/lib/libreoffice/share/extensions/hunspell_tr/dictionaries/tr-TR.dic", "/usr/share/hunspell/tr-TR.dic") diff --git a/office/dictionary/hunspell-dict-tr/pspec.xml b/office/dictionary/hunspell-dict-tr/pspec.xml new file mode 100644 index 0000000000..dfa997590f --- /dev/null +++ b/office/dictionary/hunspell-dict-tr/pspec.xml @@ -0,0 +1,41 @@ + + + + + hunspell-dict-tr + http://extensions.libreoffice.org/extension-center/turkish-spellcheck-dictionary/ + + PisiLinux Community + admins@pisilinux.org + + LGPLv2+ + BSD + locale:en + data + Turkish hunspell dictionaries + Turkish hunspell dictionaries + http://extensions.libreoffice.org/extension-center/turkish-spellcheck-dictionary/releases/1.1-2014.12.11/tr-tr.oxt + + hunspell + + + + + + hunspell-dict-tr + + /usr/lib/libreoffice/share/extensions/hunspell_tr/ + /usr/share/hunspell + + + + + + 2015-10-03 + 1.1 + First release + Ayhan Yalçınsoy + ayhanyalcinsoy@pisilinux.org + + + \ No newline at end of file diff --git a/office/dictionary/hunspell-dict-tr/translations.xml b/office/dictionary/hunspell-dict-tr/translations.xml new file mode 100644 index 0000000000..ca3ff82f13 --- /dev/null +++ b/office/dictionary/hunspell-dict-tr/translations.xml @@ -0,0 +1,8 @@ + + + + hunspell-dict-en + İngilizce hunspell sözlükleri + hunspell-dict-en İngilizce (US, UK vs.) hunspell sözlüklerini içerir. + +