actions.py 850 B

123456789101112131415161718192021222324252627
  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 shelltools
  7. from pisi.actionsapi import autotools
  8. from pisi.actionsapi import pisitools
  9. from pisi.actionsapi import get
  10. shelltools.export("PTHREAD_LIBS", "-lpthread")
  11. def setup():
  12. autotools.autoreconf("-vfi")
  13. # suppress compiler warnings
  14. pisitools.cxxflags.add("-Wno-conversion -Wno-implicit-fallthrough -Wno-deprecated-declarations -Wno-format-nonliteral -Wno-unused-parameter -Wno-format -Wno-misleading-indentation -Wno-format-security")
  15. autotools.configure("--with-gnutls \
  16. --disable-static")
  17. def build():
  18. autotools.make()
  19. def install():
  20. autotools.install()
  21. pisitools.dodoc("COPYING", "README", "LICENSE")