actions.py 753 B

1234567891011121314151617181920212223242526
  1. #!/usr/bin/python
  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. # autotools.autoreconf("-fvi")
  8. autotools.configure("--enable-utf8 \
  9. --enable-color \
  10. --enable-nanorc \
  11. --enable-multibuffer")
  12. def build():
  13. autotools.make()
  14. def install():
  15. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  16. inarytools.insinto("/etc/", "doc/sample.nanorc", "nanorc")
  17. inarytools.dosym("/usr/bin/nano", "/bin/nano")
  18. inarytools.dohtml("doc/*.html")
  19. inarytools.dodoc("ChangeLog*", "README", "doc/sample.nanorc", "AUTHORS", "NEWS", "TODO", "COPYING*", "THANKS")