actions.py 722 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 cmaketools
  7. from pisi.actionsapi import shelltools
  8. from pisi.actionsapi import pisitools
  9. j = "-DCMAKE_INSTALL_PREFIX=/usr \
  10. -DCMAKE_BUILD_TYPE=Release \
  11. -DENABLE_PHONON=ON \
  12. -DENABLE_MPV=ON \
  13. -DENABLE_VLC=OFF \
  14. "
  15. def setup():
  16. shelltools.makedirs("build")
  17. shelltools.cd("build")
  18. cmaketools.configure(j, sourceDir = '..')
  19. def build():
  20. shelltools.cd("build")
  21. cmaketools.make()
  22. def install():
  23. shelltools.cd("build")
  24. cmaketools.install()
  25. pisitools.dodoc("../CHANGES.md", "../COPYING", "../README.md")