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

package:
  name: libiconv
  version: '1.18'
source:
  - url: https://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.18.tar.gz
    sha256: 3b08f5f4f9b4eb82f151a7040bfd6fe6c6fb922efe4b1659c66ea933276965e8
    patches:
      - patches/glibc.patch
build:
  run_exports:
    - libiconv >=1.18,<2.0a0
  number: 0
  string: h75a1612_0
requirements:
  build:
    - _libgcc_mutex 0.1 main
    - _openmp_mutex 5.1 1_gnu
    - binutils_impl_linux-64 2.44 h4b9a079_2
    - binutils_linux-64 2.44 hc03a8fd_2
    - gcc_impl_linux-64 14.3.0 h4943218_4
    - gcc_linux-64 14.3.0 hda73cce_12
    - kernel-headers_linux-64 4.18.0 h3108a97_1
    - ld_impl_linux-64 2.44 h153f514_2
    - libgcc 15.2.0 h69a1729_7
    - libgcc-devel_linux-64 14.3.0 he7458c1_104
    - libgcc-ng 15.2.0 h166f726_7
    - libgomp 15.2.0 h4751f2c_7
    - libltdl 2.6.0 h47b2149_0
    - libsanitizer 14.3.0 hd4faa28_4
    - libstdcxx 15.2.0 h39759b7_7
    - libtool 2.6.0 h7354ed3_0
    - make 4.2.1 h1bed415_1
    - sysroot_linux-64 2.28 h3108a97_1
    - tzdata 2025c he532380_0
  host:
    - _libgcc_mutex 0.1 main
    - _openmp_mutex 5.1 1_gnu
    - libgcc 15.2.0 h69a1729_7
    - libgomp 15.2.0 h4751f2c_7
  run:
    - __glibc >=2.28,<3.0.a0
    - libgcc >=14
test:
  requires:
    - jq
  commands:
    - iconv -l
    - test ! -f ${PREFIX}/bin/iconv
    - test_man_files=$(jq '.files[] | select( . | startswith("share/man"))' $CONDA_PREFIX/conda-meta/libiconv-1.18-${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.18-${PKG_BUILD_STRING}.json)
    - if [[ ${test_doc_files} ]]; then echo "found GPL licensed files being packaged
      ${test_doc_files}"; exit 1; fi
    - test -f $PREFIX/lib/libiconv${SHLIB_EXT}
    - test -f $PREFIX/lib/libcharset${SHLIB_EXT}
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:
  recipe-maintainers:
    - jakirkham
    - jhamman
    - mingwandroid
    - ocefpaf
    - scopatz
  final: true
  copy_test_source_files: true
  remote_url: https://github.com/AnacondaRecipes/libiconv-feedstock
  sha: a42f10c26cf243d7b6722426f4d1965fd7ad84e6
  task_id: U0FZCtlBTSK4RiGua7nFww
  task_run_id: '0'
  pbp_graph_uuid: a645ec97-1204-48b8-b3a2-b8f08653019a
