actions.py 928 B

123456789101112131415161718192021222324252627282930313233343536
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. #
  4. # Licensed under the GNU General Public License, version 3.
  5. # See the file https://www.gnu.org/licenses/gpl-3.0.txt
  6. from pisi.actionsapi import autotools, pisitools, get
  7. j = ''.join([
  8. ' --with-aspell',
  9. ' --with-hunspell',
  10. ' --with-nuspell',
  11. ' --with-hspell',
  12. ' --with-voikko',
  13. ' --with-zemberek',
  14. ' --with-hunspell-dir=/usr/share/hunspell',
  15. ' --with-hspell-dir=/usr/share/hspell',
  16. ' --with-voikko-dir=/usr/share/voikko',
  17. ' --disable-static '
  18. ])
  19. def setup():
  20. autotools.configure(j)
  21. #fix unused direct dependency analysis
  22. pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
  23. def build():
  24. autotools.make()
  25. def install():
  26. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  27. pisitools.rename("/usr/share/enchant/enchant.ordering", "enchant.ordering-2")
  28. pisitools.dodoc("AUTHORS", "NEWS")