actions.py 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. #
  4. # Licensed under the GNU General Public License, version 3.
  5. # See the file https://www.gnu.org/licenses/gpl-3.0.txt
  6. from pisi.actionsapi import shelltools
  7. from pisi.actionsapi import autotools
  8. from pisi.actionsapi import pisitools
  9. from pisi.actionsapi import get
  10. i = ''.join([
  11. ' --enable-xft',
  12. ' --enable-perl',
  13. ' --enable-frills',
  14. ' --enable-fading',
  15. ' --enable-pixbuf',
  16. ' --enable-unicode3',
  17. ' --enable-iso14755',
  18. ' --enable-256-color',
  19. ' --enable-combining',
  20. ' --enable-mousewheel',
  21. ' --enable-everything',
  22. ' --enable-text-blink',
  23. ' --enable-rxvt-scroll',
  24. ' --enable-next-scroll',
  25. ' --enable-font-styles',
  26. ' --enable-xterm-scroll',
  27. ' --enable-transparency',
  28. ' --enable-slipwheeling',
  29. ' --enable-smart-resize',
  30. ' --enable-pointer-blank',
  31. ' --enable-keepscrolling',
  32. ' --enable-selectionscrolling '
  33. ])
  34. def setup():
  35. autotools.configure(i)
  36. def build():
  37. autotools.make()
  38. pisitools.dosed("doc/rxvt-tabbed", "RXVT_BASENAME = \"rxvt\"", "RXVT_BASENAME = \"urxvt\"")
  39. def install():
  40. shelltools.export("TERMINFO", "%s/usr/share/terminfo" % get.installDIR())
  41. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  42. pisitools.dobin("doc/rxvt-tabbed")
  43. pisitools.insinto("/usr/share/terminfo/r", "doc/etc/rxvt-unicode.terminfo", "rxvt-unicode")
  44. pisitools.insinto("/etc", "doc/etc/rxvt-unicode.termcap")
  45. shelltools.chmod("%s/usr/share/terminfo/r/rxvt-unicode" % get.installDIR(), 0644)
  46. shelltools.chmod("%s/etc/rxvt-unicode.termcap" % get.installDIR(), 0644)
  47. pisitools.dodoc("README.FAQ", "Changes", "doc/README.xvt")
  48. # Should be provided by ncurses
  49. pisitools.remove("/usr/share/terminfo/r/rxvt-unicode")