actions.py 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. from pisi.actionsapi import mesontools
  10. def setup():
  11. options = "-D docs=disabled \
  12. "
  13. if get.buildTYPE() == "emul32":
  14. options += " -D graphite2=disabled \
  15. --libdir=/usr/lib32 \
  16. --bindir=/usr/bin32 \
  17. -D introspection=disabled \
  18. "
  19. else:
  20. options += "-Dintrospection=enabled \
  21. -D graphite2=enabled \
  22. -Ddocs=enabled"
  23. mesontools.configure(options)
  24. def build():
  25. mesontools.build()
  26. def install():
  27. mesontools.install()
  28. if get.buildTYPE() == "emul32":
  29. pisitools.removeDir("/usr/bin32")
  30. return
  31. pisitools.dodoc("AUTHORS", "COPYING", "README*")