actions.py 821 B

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/licenses/gpl.txt
  6. from pisi.actionsapi import autotools
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import shelltools
  9. from pisi.actionsapi import mesontools
  10. from pisi.actionsapi import get
  11. def setup():
  12. # https://bugs.freedesktop.org/show_bug.cgi?id=70366
  13. #shelltools.export("ac_cv_func_fdatasync", "no")
  14. shelltools.copy("../xdgmime-*/*", "xdgmime")
  15. autotools.make("-C xdgmime")
  16. mesontools.configure("-Dupdate-mimedb=false -D xdgmime-path=%s/xdgmime" % get.srcDIR())
  17. def build():
  18. mesontools.build()
  19. def check():
  20. mesontools.build("test")
  21. def install():
  22. mesontools.install()
  23. pisitools.dodoc("COPYING", "NEWS", "README*")