# This file created by conda-build 3.21.3
# ------------------------------------------------

package:
  name: minuit2_standalone
  version: 6.22.06
source:
  patches:
    - 0001-mathcore_standalone.patch
    - 0002-Add-project-to-allow-Clang-features-to-be-detected.patch
  sha256: 81fe6403a3cf51bb1c411f240d9c233473a833e5738b3abf68ed55d0d27ce1cd
  url: https://github.com/root-project/root/archive/v6-22-06.tar.gz
build:
  number: 100
  script: bash ${RECIPE_DIR}/build_standalone.sh
  string: h9c3ff4c_100
requirements:
  build:
    - _libgcc_mutex 0.1 conda_forge
    - _openmp_mutex 4.5 1_gnu
    - binutils_impl_linux-64 2.35.1 h193b22a_1
    - binutils_linux-64 2.35 hc3fd857_29
    - bzip2 1.0.8 h7f98852_4
    - c-ares 1.17.1 h36c2ea0_0
    - ca-certificates 2020.12.5 ha878542_0
    - cmake 3.19.2 h4547794_0
    - expat 2.2.9 he1b5a44_2
    - gcc_impl_linux-64 9.3.0 h28f5a38_17
    - gcc_linux-64 9.3.0 h7247604_29
    - gxx_impl_linux-64 9.3.0 h53cdd4c_17
    - gxx_linux-64 9.3.0 h0d07fa4_29
    - kernel-headers_linux-64 2.6.32 h77966d4_13
    - krb5 1.17.2 h926e7f8_0
    - ld_impl_linux-64 2.35.1 hea4e1c9_1
    - libcurl 7.71.1 hcdd3856_8
    - libedit 3.1.20191231 he28a2e2_2
    - libev 4.33 h516909a_1
    - libgcc-devel_linux-64 9.3.0 hfd08b2a_17
    - libgcc-ng 9.3.0 h5dbcf3e_17
    - libgomp 9.3.0 h5dbcf3e_17
    - libnghttp2 1.41.0 h8cfc5f6_2
    - libssh2 1.9.0 hab1572f_5
    - libstdcxx-devel_linux-64 9.3.0 h4084dd6_17
    - libstdcxx-ng 9.3.0 h2ae2ef3_17
    - libuv 1.40.0 h7f98852_0
    - make 4.3 hd18ef5c_1
    - ncurses 6.2 h58526e2_4
    - openssl 1.1.1i h7f98852_0
    - rhash 1.4.1 h7f98852_0
    - sysroot_linux-64 2.12 h77966d4_13
    - tk 8.6.10 h21135ba_1
    - xz 5.2.5 h516909a_1
    - zlib 1.2.11 h516909a_1010
  host:
    - _libgcc_mutex 0.1 conda_forge
    - _openmp_mutex 4.5 1_gnu
    - libgcc-ng 9.3.0 h5dbcf3e_17
    - libgomp 9.3.0 h5dbcf3e_17
    - libstdcxx-ng 9.3.0 h2ae2ef3_17
  run:
    - libgcc-ng >=9.3.0
    - libstdcxx-ng >=9.3.0
  run_constrained:
    - root =99999
test:
  commands:
    - test -f ${PREFIX}/lib/libMinuit2${SHLIB_EXT}
    - test -f ${PREFIX}/lib/libMinuit2Math${SHLIB_EXT}
    - cd math/minuit2/build/test/MnSim
    - "for binary in ../../bin/*; do\n  patchelf --set-rpath $PREFIX/lib:${PWD}/../../lib\
      \ ${binary}\n  ${binary}\ndone\n"
  requires:
    - patchelf
  source_files:
    - math/minuit2/build/bin/
    - math/minuit2/build/lib/libGaussSim.*
    - math/minuit2/build/test/MnSim/*.txt
about:
  description: 'The Minuit2 library is a new object-oriented implementation, written
    in C++, of the popular

    MINUIT minimization package. These new version provides basically all the functionality

    present in the old Fortran version, with almost equivalent numerical accuracy
    and

    computational performances. Furthermore, it contains new functionality, like the
    possibility

    to set single side parameter limits or the FUMILI algorithm, which is an optimized
    method for

    least square and log likelihood minimizations. The package has been originally
    developed by

    M. Winkler and F. James. More information on the new C++ version can be found
    on the MINUIT

    Web Site. This is not a Python frontend to Minuit2, which is provided by the iminuit
    package.

    '
  dev_url: https://github.com/root-project/root/
  doc_url: https://root.cern.ch/root/htmldoc/guides/users-guide/ROOTUsersGuide.html#minuit2-package
  home: https://root.cern.ch/doc/master/Minuit2Page.html
  license: LGPL-2.1-only
  license_family: LGPL
  license_file: LICENSE
  summary: 'This is the C++ Minuit2 fitter standalone edition, from the ROOT toolkit.

    For information about the Minuit2 fitter, please see the documentation in ROOT.

    This is not a Python frontend to Minuit2, which is provided by the iminuit package.

    '
extra:
  copy_test_source_files: true
  final: true
  recipe-maintainers:
    - brianv0
