actions.py 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. options = " -Dbrotli=disabled \
  13. -Dgtk_doc=true \
  14. -Dintrospection=enabled"
  15. #if get.buildTYPE() == "_emul32":
  16. #options += " --libdir=/usr/lib32 \
  17. #--bindir=/usr/bin32 \
  18. #--sbindir=/usr/sbin32 \
  19. #-Dintrospection=disabled \
  20. #-Dtls_check=false"
  21. #shelltools.export("CC", "%s -m32" % get.CC())
  22. #shelltools.export("CXX", "%s -m32" % get.CXX())
  23. #shelltools.export("PKG_CONFIG_PATH", "/usr/lib32/pkgconfig")
  24. mesontools.configure(options)
  25. #pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
  26. def build():
  27. mesontools.build
  28. def install():
  29. mesontools.install()
  30. if get.buildTYPE() == "_emul32":
  31. pisitools.removeDir("/usr/bin32")
  32. pisitools.removeDir("/usr/sbin32")
  33. pisitools.dodoc("README", "NEWS", "AUTHORS")