# Version of this schema
schema: 1

bugzilla:
  product: "Core"
  component: "JavaScript Engine"

origin:
  name: "fdlibm"
  description: "The fdlibm library imported from freebsd"

  url: "https://github.com/freebsd/freebsd/tree/master/lib/msun/src"

  # Human-readable identifier for this version/release
  # Generally "version NNN", "tag SSS", "bookmark SSS"
  release: "commit 369ea0520a3061c07400d7cd32172efb6af39815 (2022-08-04T17:33:34Z)"

  # Revision to pull in
  # Must be a long or short commit SHA (long preferred)
  revision: bd5e624a861433dee76fe00a8acedc9564425332

  license: "BSD-2-Clause"
  license-file: LICENSE

vendoring:
  url: https://github.com/freebsd/freebsd/
  flavor: individual-files
  source-hosting: github
  vendor-directory: modules/fdlibm/src

  individual-files-default-upstream: 'lib/msun/src/'
  individual-files-default-destination: '{vendor_dir}/'
  individual-files-list:
    - e_acos.c
    - e_acosf.c
    - e_acosh.c
    - e_asin.c
    - e_asinf.c
    - e_atan2.c
    - e_atanh.c
    - e_cosh.c
    - e_exp.c
    - e_expf.c
    - e_hypot.c
    - e_hypotf.c
    - e_log.c
    - e_log10.c
    - e_log10f.c
    - e_log2.c
    - e_logf.c
    - e_pow.c
    - e_powf.c
    - e_rem_pio2.c
    - e_rem_pio2f.c
    - e_sinh.c
    - k_cos.c
    - k_cosf.c
    - k_exp.c
    - k_expf.c
    - k_log.h
    - k_logf.h
    - k_rem_pio2.c
    - k_sin.c
    - k_sinf.c
    - k_tan.c
    - k_tanf.c
    - math.h
    - math_private.h
    - s_asinh.c
    - s_atan.c
    - s_atanf.c
    - s_cbrt.c
    - s_cos.c
    - s_cosf.c
    - s_exp2.c
    - s_exp2f.c
    - s_expm1.c
    - s_log1p.c
    - s_sin.c
    - s_sinf.c
    - s_tan.c
    - s_tanf.c
    - s_tanh.c

  update-actions:
    - action: 'move-file'
      from: '{vendor_dir}/math.h'
      to: '{vendor_dir}/fdlibm.h'
    - action: 'run-script'
      script: '{yaml_dir}/rename_c_to_cpp.sh'
      cwd: '{vendor_dir}'

  patches:
    - 'patches/*.patch'

updatebot:
    maintainer-phab: arai
    maintainer-bz: arai.unmht@gmail.com
    tasks:
      - type: vendoring
        enabled: false
