actions.py 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  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 get
  7. from inary.actionsapi import autotools
  8. from inary.actionsapi import inarytools
  9. def setup():
  10. python = "--without-python" if get.buildTYPE() == "emul32" else "--with-python=/usr/bin/python3.7 "
  11. # don't remove --with-debugger as it is needed for reverse dependencies
  12. autotools.configure("%s \
  13. --with-crypto \
  14. --with-debugger \
  15. --disable-static \
  16. --with-xz \
  17. --with-zlib \
  18. --disable-silent-rules \
  19. " % python)
  20. inarytools.dosed("libtool", "^(hardcode_libdir_flag_spec=).*", '\\1""')
  21. inarytools.dosed("libtool", "^(runpath_var=)LD_RUN_PATH", "\\1DIE_RPATH_DIE")
  22. inarytools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
  23. def build():
  24. autotools.make()
  25. #def check():
  26. # autotools.make("check")
  27. def install():
  28. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  29. inarytools.dodoc("AUTHORS", "ChangeLog", "Copyright", "FEATURES", "NEWS", "README", "TODO")