actions.py 942 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 get
  7. from pisi.actionsapi import autotools
  8. from pisi.actionsapi import pisitools
  9. jobs = get.makeJOBS().replace("-j", "")
  10. def setup():
  11. autotools.configure("\
  12. --builtin-libraries=replace \
  13. --bundled-libraries=NONE \
  14. --disable-rpath \
  15. ")
  16. def build():
  17. autotools.make("JOBS=%s" % jobs)
  18. def install():
  19. autotools.rawInstall("DESTDIR=%s JOBS=%s" % (get.installDIR(), jobs))
  20. # pisitools.remove("/usr/lib/*.a")
  21. # Create symlinks for so file
  22. # pisitools.dosym("libtevent.so.%s" % get.srcVERSION(), "/usr/lib/libtevent.so.%s" % get.srcVERSION().split(".")[0])
  23. # pisitools.dosym("libtevent.so.%s" % get.srcVERSION(), "/usr/lib/libtevent.so")