actions.py 799 B

12345678910111213141516171819202122232425262728293031
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. # Licensed under the GNU General Public License, version 3.
  4. # See the file http://www.gnu.org/copyleft/gpl.txt
  5. from pisi.actionsapi import autotools
  6. from pisi.actionsapi import pisitools
  7. from pisi.actionsapi import shelltools
  8. from pisi.actionsapi import get
  9. def setup():
  10. shelltools.copy("etc/configure.ac", "configure.ac")
  11. skiptests=["t0555a","t0524a"]
  12. for t in skiptests:
  13. shelltools.system('sed -i "s/\([ \t]\)$t\([ \t]\)/\1/g" Makefile.in')
  14. shelltools.export("CPPFLAGS", "-fPIC")
  15. autotools.autoreconf("-fiv")
  16. autotools.configure("--disable-static")
  17. def build():
  18. autotools.make()
  19. def install():
  20. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  21. pisitools.dodoc("BUILDING", "LICENSE", "README")