meta.yaml 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. {% set version = "0.7.0" %}
  2. {% set hash = "43e6a9fcb146ad871515f0d0873947e5d497a1c9c60c58cb102a97b47208b7c3" %}
  3. {% set build_number = "1" %}
  4. package:
  5. name: yaml-cpp-split
  6. version: {{ version }}
  7. source:
  8. url: https://github.com/jbeder/yaml-cpp/archive/yaml-cpp-{{ version }}.tar.gz
  9. sha256: {{ hash }}
  10. patches:
  11. # These patches fix a shared object issue in `0.7.0`. This is
  12. # currently fixed in `master`, so future updates should not need
  13. # them.
  14. - include_yaml-cpp_dll.h.patch # [win]
  15. - include_yaml-cpp_node_detail_node.h.patch # [win]
  16. # Fix a defect in the cmake config file.
  17. - yaml-cpp-config.cmake.in.patch
  18. build:
  19. number: {{ build_number }}
  20. requirements:
  21. build:
  22. - patch # [unix]
  23. - m2-patch # [win]
  24. outputs:
  25. - name: yaml-cpp
  26. script: build_shared.sh # [not win]
  27. script: bld_shared.bat # [win]
  28. build:
  29. run_exports:
  30. - {{ pin_subpackage('yaml-cpp', max_pin='x.x') }}
  31. requirements:
  32. build:
  33. - {{ compiler('c') }}
  34. - {{ compiler('cxx') }}
  35. - cmake
  36. - ninja
  37. test:
  38. # NOTE: Author's tests are run from the build scripts in all architectures.
  39. files:
  40. - test
  41. requires:
  42. - {{ compiler('c') }}
  43. - {{ compiler('cxx') }}
  44. - cmake
  45. - ninja
  46. commands:
  47. # These tests ensure the library is in its expected location.
  48. - test -f $PREFIX/lib/libyaml-cpp.so # [not (osx or win)]
  49. - test -f $PREFIX/lib/libyaml-cpp.dylib # [osx]
  50. - if not exist %LIBRARY_BIN%\\yaml-cpp.dll exit 1 # [win]
  51. # These tests ensure a simple program can be built using the
  52. # library. They are not altogether necessary, though they are
  53. # nice to have.
  54. - test/test.sh # [not win]
  55. - test/test.bat # [win]
  56. - name: yaml-cpp-static
  57. script: build_static.sh # [not win]
  58. build:
  59. skip: true # [win]
  60. requirements:
  61. build:
  62. - {{ compiler('c') }}
  63. - {{ compiler('cxx') }}
  64. - cmake
  65. - ninja
  66. host:
  67. - {{ pin_subpackage('yaml-cpp', exact=True) }}
  68. run:
  69. - {{ pin_subpackage('yaml-cpp', exact=True) }}
  70. test:
  71. commands:
  72. - test -f $PREFIX/lib/libyaml-cpp.a # [not win]
  73. about:
  74. home: https://github.com/jbeder/yaml-cpp
  75. license: MIT
  76. license_family: MIT
  77. license_file: LICENSE
  78. summary: yaml-cpp is a YAML parser and emitter in C++ matching the YAML 1.2 spec.
  79. dev_url: https://github.com/jbeder/yaml-cpp
  80. doc_url: https://github.com/jbeder/yaml-cpp.wiki.git
  81. extra:
  82. recipe-maintainers:
  83. - allanleal
  84. - marcelotrevisani
  85. - tadeu
  86. - seanyen
  87. - wolfv