actions.py 896 B

12345678910111213141516171819202122232425262728293031
  1. #!/usr/bin/env python3
  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 inary.actionsapi import autotools
  7. from inary.actionsapi import inarytools
  8. from inary.actionsapi import shelltools
  9. from inary.actionsapi import get
  10. WorkDir = "pygobject-%s" % get.srcVERSION()
  11. def setup():
  12. # autoreconf is for under linking problem
  13. autotools.autoreconf("-fi")
  14. if get.buildTYPE()=="rebuild_python":
  15. shelltools.export("PYTHON", "/usr/bin/python3.8")
  16. else:
  17. shelltools.export("PYTHON", "/usr/bin/python2.7")
  18. autotools.configure("--disable-introspection")
  19. def build():
  20. autotools.make()
  21. def install():
  22. autotools.install()
  23. #shelltools.chmod("%s/usr/share/pygobject/xsl/fixxref.py" % get.installDIR(), 0755)
  24. inarytools.dodoc("AUTHORS", "NEWS", "ChangeLog", "README")