actions.py 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  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 shelltools
  7. from pisi.actionsapi import autotools
  8. from pisi.actionsapi import pisitools
  9. from pisi.actionsapi import get
  10. def setup():
  11. autotools.configure("--disable-setuid \
  12. --disable-rpath \
  13. --with-sections='1 1p 8 2 3 3p 3pm 4 5 6 7 9 0p n l p o 1x 2x 3x 4x 5x 6x 7x 8x' \
  14. --docdir=/%s/%s \
  15. --with-device=utf8 \
  16. --enable-mb-groff" % (get.docDIR(), get.srcNAME()))
  17. def build():
  18. #shelltools.system("sed -i '/gets is a security hole/d' gnulib/lib/stdio.in.h")
  19. autotools.make("CC='%s %s' V=1 nls=all" % (get.CC(), get.CFLAGS()))
  20. def install():
  21. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  22. pisitools.dodir("/var/cache/man")
  23. pisitools.removeDir("/lib")
  24. # These are shipped with groff
  25. #pisitools.remove("/usr/bin/zsoelim")
  26. #pisitools.remove("/usr/share/man/man1/zsoelim.1")
  27. pisitools.dodoc("README*")