actions.py 895 B

12345678910111213141516171819202122232425262728293031
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. # Licensed under the GNU General Public License, version 3.
  4. # See the file http://www.gnu.org/copyleft/gpl.txt
  5. from pisi.actionsapi import get
  6. from pisi.actionsapi import autotools
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import shelltools
  9. def setup():
  10. pisitools.flags.add(" -lspeechd")
  11. autotools.configure(" \
  12. --with-tables-directory=/usr/share/brltty \
  13. --with-screen-driver=lx \
  14. --enable-gpm \
  15. --with-install-root='%s' \
  16. --with-writable-directory='/run/brltty' \
  17. --disable-java-bindings" % get.installDIR())
  18. def build():
  19. autotools.make()
  20. def install():
  21. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  22. pisitools.removeDir("/run")
  23. pisitools.removeDir("/var")
  24. pisitools.dodoc("LICENSE*", "README")