actions.py 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. #!/usr/bin/env python3
  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 inary.actionsapi import shelltools
  7. from inary.actionsapi import autotools
  8. from inary.actionsapi import inarytools
  9. from inary.actionsapi import get
  10. def setup():
  11. autotools.configure("--disable-setuid \
  12. --disable-rpath \
  13. --with-sections=\"1 1p 8 2 3 3p 4 5 6 7 9 0p n l p o 1x 2x 3x 4x 5x 6x 7x 8x\" \
  14. --without-systemd \
  15. --with-device=utf8 \
  16. --enable-mb-groff")
  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. inarytools.dodir("/var/cache/man")
  23. # These are shipped with groff
  24. #inarytools.remove("/usr/bin/zsoelim")
  25. inarytools.removeDir("/lib/")
  26. inarytools.dodoc("README")