actions.py 1007 B

12345678910111213141516171819202122232425262728293031
  1. #!/usr/bin/env python3
  2. # -*- coding: utf-8 -*-
  3. #
  4. # Licensed under the GNU General Public License, version 2.
  5. # See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
  6. from inary.actionsapi import autotools
  7. from inary.actionsapi import inarytools
  8. from inary.actionsapi import shelltools
  9. from inary.actionsapi import get
  10. def setup():
  11. shelltools.system('mkdir build ; cd build ; cmake .. -DCMAKE_BUILD_TYPE="Release" \
  12. -DCMAKE_INSTALL_PREFIX="/usr" \
  13. -DCMAKE_INSTALL_LIBDIR="/usr/lib" \
  14. -DCOMPIZ_DISABLE_SCHEMAS_INSTALL=On \
  15. -DCOMPIZ_BUILD_WITH_RPATH=Off \
  16. -DCOMPIZ_PACKAGING_ENABLED=On \
  17. -DBUILD_GTK=On \
  18. -DBUILD_METACITY=On \
  19. -DBUILD_KDE4=Off \
  20. -DCOMPIZ_BUILD_TESTING=Off \
  21. -DCOMPIZ_WERROR=Off \
  22. -DCOMPIZ_DEFAULT_PLUGINS="composite,opengl,decor,resize,place,move,compiztoolbox,staticswitcher,regex,animation,wall,ccp"')
  23. def build():
  24. autotools.make("-C build")
  25. def install():
  26. autotools.rawInstall("-C build DESTDIR=%s" % get.installDIR())