actions.py 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  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 get
  7. from pisi.actionsapi import autotools
  8. from pisi.actionsapi import pisitools
  9. from pisi.actionsapi import mesontools
  10. def setup():
  11. options = "-Dbuiltin_loaders=png \
  12. -Dothers=enabled \
  13. "
  14. if get.buildTYPE()=="emul32":
  15. options += "-Dintrospection=disabled \
  16. -Dinstalled_tests=false \
  17. --bindir=/usr/bin32"
  18. else:
  19. options += "-Dintrospection=enabled -Dgtk_doc=true"
  20. mesontools.configure(options)
  21. def build():
  22. mesontools.build()
  23. def install():
  24. mesontools.install()
  25. if get.buildTYPE() == "emul32":
  26. pisitools.domove("/usr/bin32/gdk-pixbuf-query-loaders", "/usr/bin", "gdk-pixbuf-query-loaders-32")
  27. pisitools.removeDir("/usr/bin32")
  28. return
  29. pisitools.dosym("/usr/bin/gdk-pixbuf-query-loaders", "/usr/bin/gdk-pixbuf-query-loaders-64")
  30. pisitools.dodoc("COPYING", "README.md")