actions.py 970 B

123456789101112131415161718192021222324252627282930313233343536
  1. #!/usr/bin/env python3
  2. # -*- coding: utf-8 -*-
  3. #
  4. # Copyright (C) 2018 Süleyman POYRAZ (Zaryob)
  5. # Licensed under the GNU General Public License, version 2.
  6. # See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
  7. from inary.actionsapi import autotools
  8. from inary.actionsapi import inarytools
  9. from inary.actionsapi import shelltools
  10. from inary.actionsapi import get
  11. def setup():
  12. shelltools.export("HAVE_VALGRIND_TRUE","#")
  13. shelltools.export("HAVE_VALGRIND_FALSE","")
  14. shelltools.export("CFLAGS"," -Wno-error")
  15. autotools.configure("--disable-{dumper,static,tests} \
  16. --with-gtk=3")
  17. def build():
  18. autotools.make()
  19. """
  20. #Requires dbus-test-runner (https://launchpad.net/dbus-test-runner)
  21. def check():
  22. autotools.make("check")
  23. """
  24. def install():
  25. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  26. inarytools.dodoc("AUTHORS", "COPYING*", "README", "NEWS")
  27. inarytools.removeDir("/usr/share/gtk-doc")