actions.py 746 B

1234567891011121314151617181920
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. #
  4. # Licensed under the GNU General Public License, version 3.
  5. # See the file http://www.gnu.org/licenses/gpl.txt
  6. from pisi.actionsapi import pisitools
  7. WorkDir = "."
  8. def install():
  9. pisitools.insinto("/usr/share/hunspell", "es_ANY.dic", "es_ES.dic")
  10. pisitools.insinto("/usr/share/hunspell", "es_ANY.aff", "es_ES.aff")
  11. for lang in ("es_AR", "es_BO", "es_CL", "es_CO", "es_CR", "es_CU", "es_DO", "es_EC", "es_GT", "es_HN", "es_MX", "es_NI", "es_PA", "es_PE", "es_PR", "es_PY", "es_SV", "es_US", "es_UY", "es_VE"):
  12. pisitools.dosym("es_ES.dic", "/usr/share/hunspell/%s.dic" % lang)
  13. pisitools.dosym("es_ES.aff", "/usr/share/hunspell/%s.aff" % lang)
  14. pisitools.dodoc("*.txt")