actions.py 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. from pisi.actionsapi import autotools
  4. from pisi.actionsapi import pisitools
  5. from pisi.actionsapi import shelltools
  6. from pisi.actionsapi import get
  7. def setup():
  8. # autotools.autoreconf("-fvi")
  9. autotools.configure("--disable-rpath \
  10. --enable-utf8 \
  11. --enable-altrcname \
  12. --enable-color \
  13. --enable-nanorc \
  14. --enable-multibuffer \
  15. --disable-speller")
  16. def build():
  17. autotools.make()
  18. def install():
  19. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  20. # Enable colorization by default
  21. shelltools.system("""sed -i -e '/^# include /s:# *::' doc/sample.nanorc""")
  22. pisitools.insinto("/etc/", "doc/sample.nanorc", "nanorc")
  23. pisitools.dosym("/usr/bin/nano", "/bin/nano")
  24. pisitools.dohtml("doc/*.html")
  25. pisitools.dodoc("ChangeLog*", "README", "doc/sample.nanorc", "AUTHORS", "NEWS", "TODO", "COPYING*", "THANKS")