actions.py 878 B

123456789101112131415161718192021222324252627282930
  1. #!/usr/bin/python
  2. #!/usr/bin/python
  3. # -*- coding: utf-8 -*-
  4. #
  5. # Licensed under the GNU General Public License, version 3.
  6. # See the file http://www.gnu.org/licenses/gpl.txt
  7. from pisi.actionsapi import get
  8. from pisi.actionsapi import autotools
  9. from pisi.actionsapi import pisitools
  10. from pisi.actionsapi import shelltools
  11. def setup():
  12. shelltools.makedirs("fio-fio-3.36")
  13. shelltools.cd("fio-fio-3.36")
  14. shelltools.system("../configure \
  15. --prefix=/usr \
  16. --disable-native --enable-gfio")
  17. def build():
  18. shelltools.cd("fio-fio-3.36")
  19. autotools.make()
  20. def install():
  21. shelltools.cd("fio-fio-3.36")
  22. autotools.install("BINDIR=%(install)s/usr/bin \
  23. CONFDIR=%(install)s/etc \
  24. MANDIR=%(install)s/usr/share/man/man1" % { "install": get.installDIR()})
  25. # pisitools.dodoc("COPYING", "README.rst")