actions.py 877 B

12345678910111213141516171819202122232425262728293031
  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 autotools
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import shelltools
  9. from pisi.actionsapi import get
  10. shelltools.export("LC_ALL", "C")
  11. def setup():
  12. shelltools.export("MONO_SHARED_DIR", get.workDIR())
  13. #autotools.autoreconf("-fi")
  14. shelltools.system("./bootstrap-2.12")
  15. autotools.configure("--prefix=/usr \
  16. --sysconfdir=/etc \
  17. --disable-static")
  18. pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
  19. def build():
  20. shelltools.export("MONO_SHARED_DIR", get.workDIR())
  21. autotools.make()
  22. def install():
  23. shelltools.export("MONO_SHARED_DIR", get.workDIR())
  24. autotools.install()