actions.py 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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-pcretest-libreadline \
  14. --enable-pcre32 \
  15. --enable-pcre16 \
  16. --enable-utf \
  17. --enable-unicode-properties \
  18. --enable-cpp \
  19. --enable-pcregrep-libz \
  20. --enable-pcregrep-libbz2 \
  21. --enable-pcretest-libreadline \
  22. --docdir=/%s/%s \
  23. --disable-static" % (get.docDIR(), get.srcNAME()))
  24. inarytools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
  25. def build():
  26. autotools.make()
  27. def check():
  28. if get.buildTYPE() == "emul32":
  29. pass
  30. else:
  31. autotools.make("-j1 check")
  32. def install():
  33. autotools.rawInstall("DESTDIR=%s" % get.installDIR())