actions.py 904 B

1234567891011121314151617181920212223242526272829303132333435
  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 shelltools
  9. from inary.actionsapi import get
  10. def setup():
  11. autotools.autoreconf("-fi")
  12. inarytools.flags.add("-std=gnu++98")
  13. #shelltools.system ("rm -rf libtool libtool.m4")
  14. autotools.configure("--disable-static \
  15. --enable-cplusplus")
  16. inarytools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
  17. def build():
  18. autotools.make()
  19. def check():
  20. autotools.make("check")
  21. def install():
  22. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  23. inarytools.dodoc("ChangeLog", "doc/README.linux", "doc/*.html")
  24. #inarytools.removeDir("/usr/share/gc")