actions.py 830 B

12345678910111213141516171819202122232425262728293031323334
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. #
  4. # Licensed under the GNU General Public License, version 3.
  5. # See the file https://www.gnu.org/licenses/gpl-3.0.txt
  6. from pisi.actionsapi import cmaketools, mesontools, pisitools, get
  7. i = ''.join([
  8. ' -DCMAKE_INSTALL_PREFIX=/usr',
  9. ' -DREDIS_STORAGE_BACKEND=OFF',
  10. ' -Bbuild -G Ninja -L '
  11. ])
  12. def setup():
  13. cmaketools.configure(i)
  14. def build():
  15. mesontools.build()
  16. def check():
  17. # mesontools.build("test")
  18. pass
  19. def install():
  20. mesontools.install()
  21. # Create symlinks
  22. for cc in ("gcc", "g++", "cc", "c++"): # , "clang" , "clang++"
  23. pisitools.dosym("/usr/bin/ccache", "/usr/lib/ccache/bin/%s" % cc)
  24. pisitools.dosym("/usr/bin/ccache", "/usr/lib/ccache/bin/%s-%s" % (get.HOST(), cc))
  25. pisitools.dodoc("GPL-3.0.txt", "LGPL-3.0.txt")