actions.py 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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. def setup():
  11. autotools.configure("--disable-static \
  12. --disable-dependency-tracking \
  13. --disable-ldap \
  14. --disable-ldaps \
  15. --with-ssl \
  16. --with-zlib \
  17. --with-libidn \
  18. --with-libssh2 \
  19. --with-gssapi=no \
  20. --with-nghttp2 \
  21. --without-librtmp \
  22. --enable-ipv6 \
  23. --enable-http \
  24. --enable-ftp \
  25. --enable-file \
  26. --enable-dict \
  27. --enable-manual \
  28. --enable-gopher \
  29. --enable-telnet \
  30. --enable-largefile \
  31. --enable-nonblocking \
  32. --enable-threaded-resolver \
  33. --enable-hidden-symbols \
  34. --disable-versioned-symbols \
  35. --without-libgsasl \
  36. --without-libpsl \
  37. ac_cv_header_gss_h=no \
  38. --with-ca-bundle=/etc/ssl/certs/ca-certificates.crt \
  39. --prefix=/usr \
  40. --with-random=/dev/urandom \
  41. --mandir=/usr/share/man ")
  42. def build():
  43. autotools.make()
  44. def check():
  45. #shelltools.export("LD_LIBRARY_PATH", "%s/lib" % get.curDIR())
  46. #autotools.make("-C tests test")
  47. pass
  48. def install():
  49. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  50. pisitools.dodoc("docs/FEATURES*", "docs/FAQ*", "docs/BUGS*")