<commit_before>{% set name = "dspsr" %}
{% set version = "2022-02-17" %}
{% set sha256 = "835246c81d78f25b4620cbabf50dfa7ac3a7c1e3145046102a3bb8a54bc5e57b" %}

package:
    name: "{{ name | lower }}"
    version: "{{ version | replace('-','.') }}"

source:
    url: https://sourceforge.net/projects/{{ name }}/files/{{ name }}/{{ version }}/{{ name }}-{{ version }}.tar.gz
    sha256: {{ sha256 }}
    patches:
        - macos_fmemopen.patch  # [osx]
        - python_ldflags.patch
        
build:
    number: 0
    skip: true  # [win or (python_impl == 'pypy')]

requirements:
    build:
        - {{ compiler('cxx') }}
        - {{ compiler('c') }}
        - {{ compiler('fortran') }}
        - make
        - perl
        - autoconf
        - automake
        - libtool
        - swig
    host:
        - psrchive
        - tempo2
        - cfitsio
        - pgplot
        - fftw
        - python {{ python }}
        - numpy
        - libcblas
        - gsl
        - llvm-openmp
    run:
        - psrchive
        - tempo2
        - cfitsio
        - pgplot
        - fftw
        - python
        - {{ pin_compatible('numpy') }}

test:
    commands:
        - digifil -h
        - digifits -h
        - digihdr -h
        - digihist -h
        - digimon -h
        - digistat -h
        - digitxt -h
        - dmsmear -h
        - dspsr -h
        - dspsr_cflags
        - dspsr_ldflags
        - filterbank_speed -h
        - load_bits -h
        - passband -h
        - searchplot -h
        - sk_distrib_plot -h
        - sklimit -h
        - sk_limit_plot -h
    imports:
        - dspsr

about:
    home: http://dspsr.sourceforge.net/
    license: AFL-2.1
    license_file: LICENSE
    summary: DSPSR is a library for digital signal processing of pulsar astronomical timeseries.
    dev_url: http://sourceforge.net/projects/dspsr/

extra:
    recipe-maintainers:
        - demorest<commit_msg>meta.yaml: test for shared lib installation<commit_after>{% set name = "dspsr" %}
{% set version = "2022-02-17" %}
{% set sha256 = "835246c81d78f25b4620cbabf50dfa7ac3a7c1e3145046102a3bb8a54bc5e57b" %}

package:
    name: "{{ name | lower }}"
    version: "{{ version | replace('-','.') }}"

source:
    url: https://sourceforge.net/projects/{{ name }}/files/{{ name }}/{{ version }}/{{ name }}-{{ version }}.tar.gz
    sha256: {{ sha256 }}
    patches:
        - macos_fmemopen.patch  # [osx]
        - python_ldflags.patch
        
build:
    number: 0
    skip: true  # [win or (python_impl == 'pypy')]

requirements:
    build:
        - {{ compiler('cxx') }}
        - {{ compiler('c') }}
        - {{ compiler('fortran') }}
        - make
        - perl
        - autoconf
        - automake
        - libtool
        - swig
    host:
        - psrchive
        - tempo2
        - cfitsio
        - pgplot
        - fftw
        - python {{ python }}
        - numpy
        - libcblas
        - gsl
        - llvm-openmp
    run:
        - psrchive
        - tempo2
        - cfitsio
        - pgplot
        - fftw
        - python
        - {{ pin_compatible('numpy') }}

test:
    commands:
        - digifil -h
        - digifits -h
        - digihdr -h
        - digihist -h
        - digimon -h
        - digistat -h
        - digitxt -h
        - dmsmear -h
        - dspsr -h
        - dspsr_cflags
        - dspsr_ldflags
        - filterbank_speed -h
        - load_bits -h
        - passband -h
        - searchplot -h
        - sk_distrib_plot -h
        - sklimit -h
        - sk_limit_plot -h
        - test -f $PREFIX/lib/libdspbase$SHLIB_EXT
        - test -f $PREFIX/lib/libdspdsp$SHLIB_EXT
        - test -f $PREFIX/lib/libdspsrmore$SHLIB_EXT
        - test -f $PREFIX/lib/libdspsr$SHLIB_EXT
        - test -f $PREFIX/lib/libdspstats$SHLIB_EXT
    imports:
        - dspsr

about:
    home: http://dspsr.sourceforge.net/
    license: AFL-2.1
    license_file: LICENSE
    summary: DSPSR is a library for digital signal processing of pulsar astronomical timeseries.
    dev_url: http://sourceforge.net/projects/dspsr/

extra:
    recipe-maintainers:
        - demorest
{'fraction_non_alphanumeric': 0.12643397608005857, 'fraction_numerical': 0.029777886258237733, 'mean_word_length': 1.4701627486437614, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1744299', 'n_tokens_mistral': 1513, 'n_tokens_neox': 1442, 'n_words': 291}