meta.yaml 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. {% set version = "1.19.0" %}
  2. package:
  3. name: c-ares-split
  4. version: {{ version }}
  5. source:
  6. url: https://c-ares.org/download/c-ares-{{ version }}.tar.gz
  7. sha256: bfceba37e23fd531293829002cac0401ef49a6dc55923f7f92236585b7ad1dd3
  8. build:
  9. # trigger 1
  10. number: 0
  11. requirements:
  12. build:
  13. - {{ compiler("c") }}
  14. - cmake # [win]
  15. # cmake on unix depends on c-ares. This breaks the cycle.
  16. - cmake-no-system # [unix]
  17. - ninja # [unix]
  18. outputs:
  19. - name: c-ares
  20. script: build_output.sh # [unix]
  21. script: bld_output.bat # [win]
  22. build:
  23. run_exports:
  24. - {{ pin_subpackage("c-ares", max_pin="x") }}
  25. requirements:
  26. build:
  27. - {{ compiler("c") }}
  28. - cmake # [win]
  29. # cmake on unix depends on c-ares. This breaks the cycle.
  30. - cmake-no-system # [unix]
  31. - ninja # [unix]
  32. run_constraint:
  33. - c-ares-static <0a0
  34. test:
  35. commands:
  36. - test -f ${PREFIX}/include/ares.h # [not win]
  37. - test -f ${PREFIX}/lib/libcares${SHLIB_EXT} # [not win]
  38. - test ! -f ${PREFIX}/lib/libcares.a # [not win]
  39. - test ! -f ${PREFIX}/lib/libcares_static.a # [not win]
  40. - if not exist %PREFIX%\\Library\\include\\ares.h exit 1 # [win]
  41. - if not exist %PREFIX%\\Library\\bin\\cares.dll exit 1 # [win]
  42. - if not exist %PREFIX%\\Library\\lib\\cares.lib exit 1 # [win]
  43. - if exist %PREFIX%\\Library\\lib\\cares_static.lib exit 1 # [win]
  44. - name: c-ares-static
  45. script: build_output.sh # [unix]
  46. script: bld_output.bat # [win]
  47. requirements:
  48. build:
  49. - {{ compiler("c") }}
  50. - cmake # [win]
  51. # cmake on unix depends on c-ares. This breaks the cycle.
  52. - cmake-no-system # [unix]
  53. - ninja # [unix]
  54. run_constraint:
  55. - c-ares <0a0
  56. test:
  57. commands:
  58. - test -f ${PREFIX}/lib/libcares.a # [not win]
  59. - test ! -f ${PREFIX}/lib/libcares${SHLIB_EXT} # [not win]
  60. - test -f ${PREFIX}/include/ares.h # [not win]
  61. - if not exist %PREFIX%\\Library\\include\\ares.h exit 1 # [win]
  62. - if exist %PREFIX%\\Library\\bin\\cares.dll exit 1 # [win]
  63. - if not exist %PREFIX%\\Library\\lib\\cares.lib exit 1 # [win]
  64. about:
  65. home: https://c-ares.org/
  66. license: MIT
  67. license_family: MIT
  68. license_file: LICENSE.md
  69. summary: This is c-ares, an asynchronous resolver library
  70. description: |
  71. c-ares is a C library for asynchronous DNS requests (including name resolves).
  72. dev_url: https://github.com/c-ares/c-ares
  73. doc_url: https://c-ares.org/docs.html
  74. extra:
  75. recipe-maintainers:
  76. - ocefpaf
  77. - wesm
  78. - xhochy