actions.py 853 B

1234567891011121314151617181920212223242526272829303132
  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. j = ''.join([
  8. ' -DCMAKE_BUILD_TYPE=Release',
  9. ' -DMUST_BUILD_TOXAV=ON',
  10. ' -DDHT_BOOTSTRAP=OFF',
  11. ' -DENABLE_STATIC=OFF',
  12. ' -B_build -L '
  13. ])
  14. def setup():
  15. pisitools.dosed("CMakeLists.txt", "RPATH", deleteLine = True)
  16. pisitools.unlinkDir("third_party/cmp")
  17. shelltools.system("ln -s cmp-e836703291392aba9db92b46fb47929521fac71f ./third_party/cmp")
  18. cmaketools.configure(j)
  19. def build():
  20. shelltools.cd("_build")
  21. cmaketools.make()
  22. def install():
  23. pisitools.insinto("/etc", "other/bootstrap_daemon/tox-bootstrapd.conf")
  24. shelltools.cd("_build")
  25. cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())