actions.py 1002 B

1234567891011121314151617181920212223242526272829303132
  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. def setup():
  10. autotools.autoreconf("-fi")
  11. autotools.configure("\
  12. --disable-static \
  13. --disable-openssl \
  14. --disable-silent-rules \
  15. --without-cython \
  16. ")
  17. pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
  18. # Remove rpath
  19. pisitools.dosed("libtool", "^hardcode_libdir_flag_spec=.*", "hardcode_libdir_flag_spec=\"\"")
  20. pisitools.dosed("libtool", "^runpath_var=LD_RUN_PATH", "runpath_var=DIE_RPATH_DIE")
  21. def build():
  22. autotools.make()
  23. def install():
  24. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  25. pisitools.dodoc("AUTHORS", "COPYING*", "NEWS", "README*")