actions.py 1.1 KB

123456789101112131415161718192021222324252627282930313233
  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. shelltools.system("sed -i 's/gmcs/mcs/' configure{,.ac}")
  14. shelltools.system("sed -e '/MONO_PROFILE_ENTER_LEAVE/d' -i gtk/gui-thread-check/profiler/gui-thread-check.c") # Fix build with newer mono
  15. #autotools.autoreconf("-fi")
  16. #shelltools.system("./bootstrap-2.99")
  17. autotools.configure("--prefix=/usr \
  18. --sysconfdir=/etc \
  19. --disable-static")
  20. pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
  21. def build():
  22. shelltools.export("MONO_SHARED_DIR", get.workDIR())
  23. autotools.make()
  24. def install():
  25. shelltools.export("MONO_SHARED_DIR", get.workDIR())
  26. autotools.install()