actions.py 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #!/usr/bin/python
  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 pisi.actionsapi import autotools
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import get
  9. def setup():
  10. autotools.autoreconf("-vfi")
  11. autotools.configure('--bindir=/bin \
  12. --with-tcsetpgrp \
  13. --enable-maildir-support \
  14. --enable-etcdir=/etc/zsh \
  15. --enable-zshenv=/etc/zsh/zshenv \
  16. --enable-zlogin=/etc/zsh/zlogin \
  17. --enable-zlogout=/etc/zsh/zlogout \
  18. --enable-zprofile=/etc/zsh/zprofile \
  19. --enable-zshrc=/etc/zsh/zshrc \
  20. --enable-fndir=/usr/share/zsh/functions \
  21. --enable-scriptdir=/usr/share/zsh/scripts \
  22. --enable-site-fndir=/usr/share/zsh/site-functions \
  23. --enable-function-subdirs \
  24. --enable-pcre \
  25. --enable-cap \
  26. --enable-multibyte \
  27. --enable-cflags="%s" \
  28. --enable-ldflags="%s"' % (get.CFLAGS(),get.LDFLAGS()))
  29. def build():
  30. autotools.make()
  31. def install():
  32. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  33. # Remove versioned copy
  34. pisitools.remove("/bin/%s" % (get.srcDIR()))
  35. pisitools.doman("Doc/*.1")
  36. pisitools.dodoc("ChangeLog", "FEATURES", "LICENCE", "META-FAQ", "NEWS", "README")