actions.py 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. #
  4. # Licensed under the GNU General Public License, version 3.
  5. # See the file http://www.gnu.org/copyleft/gpl.txt
  6. from pisi.actionsapi import autotools
  7. from pisi.actionsapi import get
  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 -i -e "/find_program('vapigen')/d" meson.build""")
  13. mesontools.configure("-Ddaemon_user=colord \
  14. -Dsystemd=false \
  15. -Ddocs=false \
  16. -Dlibcolordcompat=true \
  17. -D vapi=true \
  18. -Dman=false")
  19. def build():
  20. mesontools.build()
  21. def install():
  22. mesontools.install()
  23. pisitools.insinto("/etc/dbus-1/system.d/","%s/usr/share/dbus-1/system.d/org.freedesktop.ColorManager.conf" % get.installDIR())
  24. pisitools.removeDir("/usr/share/dbus-1/system.d")
  25. pisitools.dodoc("AUTHORS", "MAINTAINERS", "COPYING", "RELEASE", "NEWS", "README.md")