actions.py 805 B

1234567891011121314151617181920212223242526
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. #
  4. # Licensed under the GNU General Public License, version 2
  5. # See the file http://www.gnu.org/copyleft/gpl.txt
  6. from pisi.actionsapi import get
  7. from pisi.actionsapi import autotools
  8. from pisi.actionsapi import pisitools
  9. from pisi.actionsapi import shelltools
  10. from pisi.actionsapi import mesontools
  11. def setup():
  12. shelltools.system("sed -e 's/libsystemd/libelogind/' \
  13. -i plugins/power/test.py")
  14. shelltools.system("sed -e 's/(backlight->logind_proxy)/(0)/' \
  15. -i plugins/power/gsd-backlight.c")
  16. mesontools.configure("-Dsystemd=false")
  17. def build():
  18. mesontools.build
  19. def install():
  20. mesontools.install()
  21. pisitools.dodoc("AUTHORS", "ChangeLog", "COPYING", "NEWS", "README", "MAINTAINERS")