actions.py 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  1. #!/usr/bin/env 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. pisitools.dosed('configure', '"/usr/local"', '"/usr"')
  11. pisitools.dosed('configure', '"${PREFIX}/man"', '"${PREFIX}/share/man"')
  12. autotools.configure("MANDIR=/usr/share/man")
  13. def build():
  14. autotools.make()
  15. def install():
  16. autotools.rawInstall("DESTDIR=%s MANDIR=/usr/share/man" % get.installDIR())
  17. # man-db
  18. pisitools.remove("/usr/bin/soelim")
  19. pisitools.remove("/usr/bin/apropos")
  20. pisitools.remove("/usr/bin/whatis")
  21. pisitools.remove("/usr/bin/man")
  22. pisitools.remove("/usr/share/man/man1/man.1")
  23. pisitools.remove("/usr/share/man/man1/whatis.1")
  24. pisitools.remove("/usr/share/man/man7/man.7")
  25. pisitools.remove("/usr/share/man/man1/apropos.1")
  26. pisitools.dodoc("LICENSE", "TODO", "NEWS")