actions.py 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #!/usr/bin/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, mesontools
  10. def setup():
  11. options = "-Dmodule_path=/usr/lib/pkcs11 -Dtrust_paths=/etc/ssl/certs/ca-certificates.crt -Dman=true -Dgtk_doc=true\
  12. "
  13. if get.buildTYPE() == "emul32":
  14. shelltools.export("CC", "%s -m32" % get.CC())
  15. shelltools.export("CXX", "%s -m32" % get.CXX())
  16. shelltools.export("PKG_CONFIG_PATH", "/usr/lib32/pkgconfig")
  17. options += " --libdir=/usr/lib32 \
  18. --libexecdir=/_emul32/libexec \
  19. --bindir=/_emul32/bin \
  20. -Dmodule_path=/usr/lib32/pkcs11"
  21. mesontools.configure(options)
  22. def build():
  23. mesontools.build()
  24. def install():
  25. mesontools.install()
  26. if get.buildTYPE() == "emul32":
  27. pisitools.removeDir("_emul32")
  28. return
  29. pisitools.dodoc("AUTHORS", "ChangeLog", "COPYING", "README")