actions.py 840 B

12345678910111213141516171819202122232425262728293031323334353637
  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 get
  7. from pisi.actionsapi import autotools
  8. from pisi.actionsapi import pisitools
  9. from pisi.actionsapi import shelltools
  10. from pisi.actionsapi import mesontools
  11. def setup():
  12. options = "-Denable-docs=false"
  13. if get.buildTYPE() == "emul32":
  14. options += " --libdir=lib32 --bindir=bin32 --libexecdir=libexec32"
  15. mesontools.configure(options)
  16. def build():
  17. mesontools.build()
  18. def install():
  19. mesontools.install()
  20. if get.buildTYPE() == "emul32":
  21. pisitools.removeDir("/usr/libexec32")
  22. pisitools.removeDir("/usr/bin32")
  23. return
  24. pisitools.dodoc("README*", "LICENSE")