actions.py 837 B

12345678910111213141516171819202122232425
  1. #!/usr/bin/env python3
  2. # -*- coding: utf-8 -*-
  3. from inary.actionsapi import autotools
  4. from inary.actionsapi import inarytools
  5. from inary.actionsapi import get
  6. def setup():
  7. inarytools.dosed("scripts/gen-api-gtkdoc.py", "python", "python3")
  8. autotools.configure("PYTHON=python3 \
  9. --prefix=/usr \
  10. --enable-gtk3 \
  11. --enable-gtkdoc-header")
  12. inarytools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
  13. def build():
  14. autotools.make()
  15. def install():
  16. inarytools.dodoc('AUTHORS', 'ChangeLog',
  17. 'COPYING', 'HACKING', 'INSTALL', 'NEWS', 'README',
  18. 'README.I18N', 'README.Packagers', 'THANKS', 'TODO')
  19. autotools.rawInstall("DESTDIR=%s" % get.installDIR())