actions.py 864 B

1234567891011121314151617181920212223242526272829
  1. #!/usr/bin/env 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 autotools
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import shelltools
  9. from pisi.actionsapi import get
  10. def setup():
  11. shelltools.system("sh ./autogen.sh")
  12. autotools.configure("--includedir=/usr/include \
  13. --with-extdict-{ru,zh,zhy}")
  14. def build():
  15. autotools.make("src/espeak-ng src/speak-ng")
  16. autotools.make("-j1")
  17. def install():
  18. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  19. pisitools.rename("/usr/bin/speak", "speak-ng")
  20. pisitools.rename("/usr/bin/espeak", "espeak-ng")
  21. pisitools.removeDir("/usr/include/espeak")
  22. pisitools.dodoc("AUTHORS", "CHANGELOG*", "COPYING*", "NEWS", "README")