actions.py 691 B

123456789101112131415161718192021222324252627282930313233
  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 shelltools, cmaketools, pisitools, get
  7. i = "%s" % get.installDIR()
  8. j = ''.join([
  9. ' -B_build',
  10. ' -DSPDLOG_BUILD_SHARED=ON',
  11. ' -DSPDLOG_FMT_EXTERNAL=ON',
  12. ' -DCMAKE_BUILD_TYPE=None',
  13. ' -L '
  14. ])
  15. t = "#define SPDLOG_FMT_EXTERNAL"
  16. def setup():
  17. cmaketools.configure(j)
  18. def build():
  19. shelltools.cd("_build")
  20. cmaketools.make()
  21. def install():
  22. shelltools.cd("_build")
  23. cmaketools.rawInstall("DESTDIR=%s" % i)
  24. pisitools.dosed("%s/usr/include/spdlog/tweakme.h" % i, ".*%s" % t, t)