meta.yaml 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. {% set version = "8.1.1" %}
  2. package:
  3. name: curl_split_recipe
  4. version: {{ version }}
  5. source:
  6. url: https://curl.se/download/curl-{{ version }}.tar.bz2
  7. sha256: 51d2af72279913b5d4cab1fe1f38b944cf70904c88bee246b5bd575844e7035a
  8. build:
  9. number: 1
  10. requirements:
  11. build:
  12. - libtool # [unix]
  13. - {{ compiler('c') }}
  14. - make # [unix]
  15. # perl is required to run the tests on UNIX.
  16. - perl # [unix]
  17. - pkg-config # [unix]
  18. host:
  19. - krb5 1.20.1
  20. - libnghttp2 1.52.0 # [unix]
  21. - libssh2 1.10.0
  22. - openssl {{ openssl }} # [unix]
  23. - zlib {{ zlib }}
  24. outputs:
  25. - name: libcurl
  26. requirements:
  27. build:
  28. - {{ compiler('c') }}
  29. host:
  30. - krb5 1.20.1
  31. - libnghttp2 1.52.0 # [unix]
  32. - libssh2 1.10.0
  33. - openssl {{ openssl }} # [unix]
  34. - zlib {{ zlib }}
  35. run:
  36. - libnghttp2 >=1.52.0 # [unix]
  37. - libssh2 >=1.10.0
  38. - openssl # exact pin handled through openssl run_exports
  39. build:
  40. run_exports:
  41. - {{ pin_subpackage('libcurl') }}
  42. ignore_run_exports: # [win]
  43. - krb5 # [win]
  44. files:
  45. - include/curl # [unix]
  46. - lib/libcurl.so* # [linux]
  47. - lib/libcurl*.dylib # [osx]
  48. - lib/pkgconfig/libcurl* # [unix]
  49. - bin/curl-config # [unix]
  50. - Library/bin/libcurl.dll # [win]
  51. - Library/include/curl # [win]
  52. - Library/lib/libcurl.lib # [win]
  53. - Library/lib/libcurl.exp # [win]
  54. test:
  55. commands:
  56. - curl-config --features # [not win]
  57. - curl-config --protocols # [not win]
  58. - test -f ${PREFIX}/lib/libcurl${SHLIB_EXT} # [not win]
  59. - test ! -f ${PREFIX}/lib/libcurl.a # [not win]
  60. - if exist %LIBRARY_BIN%\curl.exe exit 1 # [win]
  61. - if exist %LIBRARY_LIB%\libcurl_a.lib exit 1 # [win]
  62. - if not exist %LIBRARY_BIN%\libcurl.dll exit 1 # [win]
  63. - name: libcurl-static
  64. requirements:
  65. build:
  66. - {{ compiler('c') }}
  67. host:
  68. - krb5 1.20.1
  69. - libssh2 1.10.0
  70. - openssl {{ openssl }} # [unix]
  71. - zlib {{ zlib }}
  72. - {{ pin_subpackage('libcurl', exact=True) }}
  73. run:
  74. - {{ pin_subpackage('libcurl', exact=True) }}
  75. files:
  76. - lib/libcurl.a* # [unix]
  77. - Library/lib/libcurl_a.lib # [win]
  78. test:
  79. commands:
  80. - test -f $PREFIX/lib/libcurl.a # [not win]
  81. - if not exist %LIBRARY_LIB%\libcurl_a.lib exit 1 # [win]
  82. - name: curl
  83. files:
  84. - bin/curl # [unix]
  85. - Library/bin/curl.exe* # [win]
  86. requirements:
  87. build:
  88. - {{ compiler('c') }}
  89. host:
  90. - {{ pin_subpackage('libcurl', exact=True) }}
  91. run:
  92. - {{ pin_subpackage('libcurl', exact=True) }}
  93. test:
  94. commands:
  95. # curl help commands on Windows have non-zero status codes. Need other test.
  96. - curl --help
  97. # Try downloading something from https to make sure the certs are used correctly.
  98. - curl https://raw.githubusercontent.com/conda-forge/curl-feedstock/master/LICENSE.txt
  99. - if not exist %LIBRARY_BIN%\curl.exe exit 1 # [win]
  100. about:
  101. home: https://curl.se/
  102. license: curl
  103. license_url: https://curl.se/docs/copyright.html
  104. license_family: MIT
  105. summary: tool and library for transferring data with URL syntax
  106. description: |
  107. Curl is an open source command line tool and library for transferring data
  108. with URL syntax. It is used in command lines or scripts to transfer data.
  109. doc_url: https://curl.se/docs/
  110. dev_url: https://github.com/curl/curl
  111. extra:
  112. recipe-maintainers:
  113. - msarahan
  114. - jakirkham
  115. - ocefpaf
  116. - mingwandroid
  117. - xylar