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

package:
  name: libiconv
  version: '1.17'
source:
  patches:
    - glibc.patch
  sha256: 8f74213b56238c85a50a5329f77e06198771e70dd9a739779f4c02f65d971313
  url: http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.17.tar.gz
build:
  number: 2
  run_exports:
    - libiconv >=1.17,<2.0a0
  string: hd590300_2
requirements:
  build:
    - _libgcc_mutex 0.1 conda_forge
    - _openmp_mutex 4.5 2_gnu
    - binutils_impl_linux-64 2.40 hf600244_0
    - binutils_linux-64 2.40 hbdbef99_2
    - gcc_impl_linux-64 12.3.0 he2b93b0_3
    - gcc_linux-64 12.3.0 h76fc315_2
    - kernel-headers_linux-64 2.6.32 he073ed8_16
    - ld_impl_linux-64 2.40 h41732ed_0
    - libgcc-devel_linux-64 12.3.0 h8bca6fd_103
    - libgcc-ng 13.2.0 h807b86a_3
    - libgomp 13.2.0 h807b86a_3
    - libsanitizer 12.3.0 h0f45ef3_3
    - libstdcxx-ng 13.2.0 h7e041cc_3
    - libtool 2.4.7 h27087fc_0
    - make 4.3 hd18ef5c_1
    - sysroot_linux-64 2.12 he073ed8_16
  host:
    - _libgcc_mutex 0.1 conda_forge
    - _openmp_mutex 4.5 2_gnu
    - libgcc-ng 13.2.0 h807b86a_3
    - libgomp 13.2.0 h807b86a_3
  run:
    - libgcc-ng >=12
test:
  commands:
    - test ! -f ${PREFIX}/bin/iconv
    - test_man_files=$(jq '.files[] | select( . | startswith("share/man"))' $CONDA_PREFIX/conda-meta/libiconv-1.17-${PKG_BUILD_STRING}.json)
    - if [[ ${test_man_files} ]]; then echo "found GPL licensed files being packaged
      ${test_man_files}"; exit 1; fi
    - test_doc_files=$(jq '.files[] | select( . | startswith("share/doc"))' $CONDA_PREFIX/conda-meta/libiconv-1.17-${PKG_BUILD_STRING}.json)
    - if [[ ${test_doc_files} ]]; then echo "found GPL licensed files being packaged
      ${test_doc_files}"; exit 1; fi
    - test -f $CONDA_PREFIX/lib/libiconv${SHLIB_EXT}
    - test -f $CONDA_PREFIX/lib/libcharset${SHLIB_EXT}
  requires:
    - jq
about:
  home: https://www.gnu.org/software/libiconv/
  license: LGPL-2.1-only
  license_file: COPYING.LIB
  summary: Provides iconv for systems which don't have one (or that cannot convert
    from/to Unicode.)
extra:
  copy_test_source_files: true
  feedstock-name: libiconv
  final: true
  flow_run_id: azure_20231215.25.1
  recipe-maintainers:
    - jakirkham
    - jhamman
    - mbargull
    - ocefpaf
    - scopatz
  remote_url: https://github.com/conda-forge/libiconv-feedstock
  sha: fdef45bc70dbe6828ee2a7be3e69a045bc3410b9
