actions.py 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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 libtools
  8. from inary.actionsapi import autotools
  9. from inary.actionsapi import inarytools
  10. def setup():
  11. autotools.autoreconf("-vif")
  12. autotools.configure("--enable-jit \
  13. --enable-pcre2grep-libz \
  14. --enable-pcre2grep-libbz2 \
  15. --enable-pcre2test-libreadline \
  16. --enable-pcre2-32 \
  17. --enable-pcre2-16 \
  18. --enable-utf \
  19. --enable-unicode-properties \
  20. --enable-cpp \
  21. --docdir=/%s/%s \
  22. --disable-static" % (get.docDIR(), get.srcNAME()))
  23. inarytools.dosed("libtool"," -shared ", " -Wl,--as-needed -shared ")
  24. def build():
  25. autotools.make()
  26. def check():
  27. if get.buildTYPE() == "emul32":
  28. pass
  29. else:
  30. autotools.make("-j1 check")
  31. def install():
  32. autotools.rawInstall("DESTDIR=%s" % get.installDIR())