actions.py 1023 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #!/usr/bin/env python3
  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 inary.actionsapi import autotools
  7. from inary.actionsapi import inarytools
  8. from inary.actionsapi import get
  9. from inary.actionsapi import shelltools
  10. def setup():
  11. options = "--disable-static \
  12. --enable-noexecstack"
  13. if get.buildTYPE() == "emul32":
  14. shelltools.export("CFLAGS", "%s -m32" % get.CFLAGS())
  15. # Use 32-bit assembler, another option is to use --disable-asm option
  16. inarytools.dosed("mpi/config.links", "path=\"amd64\"", "path=\"i586 i386\"")
  17. autotools.configure(options)
  18. def build():
  19. autotools.make()
  20. #def check():
  21. # autotools.make("check")
  22. def install():
  23. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  24. if get.buildTYPE() == "emul32": return
  25. inarytools.dodir("/etc/gcrypt")
  26. inarytools.dodoc("AUTHORS", "ChangeLog", "COPYING*", "NEWS", "README", "THANKS", "TODO")