actions.py 1018 B

1234567891011121314151617181920212223242526272829303132333435
  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. from pisi.actionsapi import shelltools
  10. def setup():
  11. autotools.autoreconf("-vif")
  12. # suppress compiler warnings
  13. pisitools.cflags.add("-Wno-unused-result")
  14. autotools.configure("--sbindir=/usr/bin \
  15. --localstatedir=/var \
  16. --enable-plugins")
  17. #pisitools.dosed("libtool", "^(hardcode_libdir_flag_spec=).*", '\\1""')
  18. #pisitools.dosed("libtool", "^(runpath_var=)LD_RUN_PATH", "\\1DIE_RPATH_DIE")
  19. #pisitools.dosed("libtool"," -shared ", " -Wl,--as-needed -shared ")
  20. def build():
  21. autotools.make()
  22. def check():
  23. autotools.make("check")
  24. def install():
  25. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  26. pisitools.dodoc("COPYING","README*")