actions.py 957 B

1234567891011121314151617181920212223242526272829303132
  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 autotools
  7. from inary.actionsapi import inarytools
  8. from inary.actionsapi import shelltools
  9. from inary.actionsapi import get
  10. def setup():
  11. autotools.autoreconf("-fi")
  12. shelltools.system("sed -i -e 's/^[ \t]\+g=g$/g=/' configure")
  13. shelltools.export("PAGE", "a4")
  14. autotools.configure("--prefix=/usr \
  15. --without-x")
  16. def build():
  17. shelltools.export("LC_ALL", "C")
  18. autotools.make()
  19. def install():
  20. inarytools.dodir("/usr")
  21. autotools.rawInstall('DESTDIR="%s"' % get.installDIR())
  22. # required by man
  23. inarytools.dosym("eqn", "/usr/bin/geqn")
  24. inarytools.dosym("tbl", "/usr/bin/gtbl")
  25. inarytools.dosym("soelim", "usr/bin/zsoelim")
  26. inarytools.dodoc("ChangeLog", "NEWS", "PROBLEMS", "PROJECTS", "README")