actions.py 848 B

12345678910111213141516171819202122232425262728
  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 pythonmodules
  7. from pisi.actionsapi import shelltools
  8. from pisi.actionsapi import pisitools
  9. def setup():
  10. # fix unused direct dependency analysis
  11. shelltools.export("LDSHARED", "x86_64-pc-linux-gnu-gcc -Wl,-O1,--as-needed -shared -lpthread -lbz2")
  12. pythonmodules.compile()
  13. def install():
  14. pythonmodules.install()
  15. # manually add man pages
  16. pisitools.doman("doc/*.1")
  17. pisitools.doman("doc/*.5")
  18. pisitools.doman("doc/*.8")
  19. # manually add documentation
  20. pisitools.dohtml("doc/*.html")
  21. # manually install bash completion script
  22. pisitools.insinto("/etc/bash_completion.d", "contrib/bash_completion", "mercurial")