actions.py 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. --with-libmetalink \
  22. --without-librtmp \
  23. --enable-ipv6 \
  24. --enable-http \
  25. --enable-ftp \
  26. --enable-file \
  27. --enable-dict \
  28. --enable-manual \
  29. --enable-gopher \
  30. --enable-telnet \
  31. --enable-largefile \
  32. --enable-nonblocking \
  33. --enable-threaded-resolver \
  34. --enable-hidden-symbols \
  35. --disable-versioned-symbols \
  36. ac_cv_header_gss_h=no \
  37. --with-ca-bundle=/etc/ssl/certs/ca-certificates.crt \
  38. --prefix=/usr \
  39. --with-random=/dev/urandom \
  40. --mandir=/usr/share/man ")
  41. def build():
  42. autotools.make()
  43. def check():
  44. #shelltools.export("LD_LIBRARY_PATH", "%s/lib" % get.curDIR())
  45. #autotools.make("-C tests test")
  46. pass
  47. def install():
  48. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  49. pisitools.dodoc("CHANGES", "docs/FEATURES", "docs/MANUAL", "docs/FAQ", "docs/BUGS")