actions.py 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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. pisitools.cxxflags.add("-std=gnu++11")
  10. def setup():
  11. pisitools.flags.add(" -lspeechd")
  12. shelltools.export("PYTHON","/usr/bin/python3")
  13. autotools.configure(" \
  14. --with-tables-directory=/usr/share/brltty \
  15. --with-screen-driver=lx \
  16. --enable-gpm \
  17. --with-espeak \
  18. --with-install-root='%s' \
  19. --with-writable-directory='/run/brltty' \
  20. --disable-stripping \
  21. --disable-ocaml-bindings \
  22. --disable-java-bindings" % get.installDIR())
  23. def build():
  24. autotools.make(" -j1")
  25. def install():
  26. autotools.rawInstall("INSTALL_ROOT=%s install" % get.installDIR())
  27. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  28. autotools.rawInstall("DESTDIR=%s install-udev" % get.installDIR())
  29. autotools.rawInstall("DESTDIR=%s install-polkit" % get.installDIR())
  30. #pisitools.removeDir("/run")
  31. pisitools.removeDir("/var")
  32. pisitools.dodoc("LICENSE*", "README")