actions.py 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. #!/usr/bin/python
  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 pisi.actionsapi import get
  7. from pisi.actionsapi import libtools
  8. from pisi.actionsapi import autotools
  9. from pisi.actionsapi import pisitools
  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. --docdir=/%s/%s \
  20. --disable-static" % (get.docDIR(), get.srcNAME()))
  21. pisitools.dosed("libtool"," -shared ", " -Wl,--as-needed -shared ")
  22. def build():
  23. autotools.make()
  24. def check():
  25. if get.buildTYPE() == "emul32":
  26. pass
  27. else:
  28. autotools.make("-j1 check")
  29. def install():
  30. autotools.rawInstall("DESTDIR=%s" % get.installDIR())