actions.py 1.4 KB

1234567891011121314151617181920212223242526272829303132333435
  1. # -*- coding: utf-8 -*-
  2. #
  3. # Licensed under the GNU General Public License, version 3.
  4. # See the file http://www.gnu.org/licenses/gpl.txt
  5. from pisi.actionsapi import pisitools
  6. from pisi.actionsapi import get
  7. from pisi.actionsapi import shelltools
  8. def setup():
  9. shelltools.system("./bootstrap.sh --with-toolset=gcc --with-icu --prefix=%s/usr" % get.installDIR())
  10. #shelltools.system("./bootstrap.sh --with-toolset=gcc --with-icu --with-python=/usr/bin/python2.7 --prefix=%s/usr" % get.installDIR())
  11. shelltools.echo("project-config.jam","using python : 3.6 : /usr/bin/python3 : /usr/include/python3.6m : /usr/lib ;")
  12. #shelltools.echo("project-config.jam","--without-mpi ;")
  13. def build():
  14. shelltools.system("./b2 \
  15. variant=release \
  16. debug-symbols=off \
  17. threading=multi \
  18. runtime-link=shared \
  19. link=shared,static \
  20. toolset=gcc \
  21. cflags=-fno-strict-aliasing \
  22. --layout=system")
  23. def install():
  24. pisitools.dobin("b2")
  25. pisitools.dobin("bjam")
  26. shelltools.copytree("tools/boostbook/xsl", "%s/usr/share/boostbook/xsl" % get.installDIR())
  27. shelltools.copytree("tools/boostbook/dtd", "%s/usr/share/boostbook" % get.installDIR())
  28. shelltools.system("./b2 install threading=multi link=shared")