actions.py 763 B

123456789101112131415161718192021222324252627282930
  1. #!/usr/bin/env 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 pisitools
  8. from pisi.actionsapi import cmaketools
  9. from pisi.actionsapi import shelltools
  10. def setup():
  11. parameters = ' '.join([
  12. '-B build',
  13. '-DGSL_TEST=OFF',
  14. '-DCMAKE_BUILD_TYPE=Release'
  15. '-DCMAKE_EXE_LINKER_FLAGS="%s"' % get.LDFLAGS(),
  16. ])
  17. cmaketools.configure(parameters)
  18. def build():
  19. shelltools.cd("build")
  20. cmaketools.make()
  21. def install():
  22. shelltools.cd("build")
  23. cmaketools.install()
  24. pisitools.dodoc("../LICENSE", "../README*")