actions.py 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. #!/usr/bin/env python3
  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 inary.actionsapi import shelltools
  7. from inary.actionsapi import autotools
  8. from inary.actionsapi import inarytools
  9. from inary.actionsapi import get
  10. def setup():
  11. autotools.configure("--disable-static \
  12. --enable-dependency-tracking \
  13. --disable-ldap \
  14. --disable-ldaps \
  15. --with-ssl \
  16. --with-zlib \
  17. --with-libidn \
  18. --with-libssh2 \
  19. --with-openssl \
  20. --with-gssapi=no \
  21. --with-nghttp2 \
  22. --with-libmetalink \
  23. --without-librtmp \
  24. --enable-ipv6 \
  25. --enable-http \
  26. --enable-ftp \
  27. --enable-file \
  28. --enable-dict \
  29. --enable-manual \
  30. --enable-gopher \
  31. --enable-telnet \
  32. --enable-largefile \
  33. --enable-nonblocking \
  34. --enable-threaded-resolver \
  35. --enable-hidden-symbols \
  36. --disable-versioned-symbols \
  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. if get.buildTYPE() == "emul32":
  50. shelltools.system("make install DESTDIR=%s/emul32" % get.installDIR())
  51. shelltools.copytree("%s/emul32/usr/lib32" % get.installDIR(), "%s/usr/lib32" % get.installDIR())
  52. inarytools.removeDir("/emul32")
  53. return
  54. autotools.install()
  55. inarytools.dodoc("CHANGES", "docs/*.md")