{% set version = '0.1' %}

{% set posix = 'm2-' if win else '' %}
{% set native = 'm2w64-' if win else '' %}

package:
  name: r-jiebard
  version: {{ version|replace("-", "_") }}

source:
  url:
    - {{ cran_mirror }}/src/contrib/jiebaRD_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/jiebaRD/jiebaRD_{{ version }}.tar.gz
  sha256: 045ee670f5378fe325a45b40fd55136b355cbb225e088cb229f512c51abb4df1

build:
  merge_build_host: True  # [win]
  # If this is a new build for the same version, increment the build number.
  number: 0
  # no skip
  noarch: generic

  # This is required to make R link correctly on Linux.
  rpaths:
    - lib/R/lib/
    - lib/

# Suggests: jiebaR
requirements:
  build:
    - {{ posix }}zip               # [win]

  host:
    - r-base

  run:
    - r-base

test:
  commands:
    # You can put additional test commands to be run here.
    - $R -e "library('jiebaRD')"           # [not win]
    - "\"%R%\" -e \"library('jiebaRD')\""  # [win]

  # You can also put a file called run_test.py, run_test.sh, or run_test.bat
  # in the recipe that will be run at test time.

  # requires:
    # Put any additional test requirements here.

about:
  home: https://github.com/qinwf/jiebaRD/
  license: MIT
  summary: jiebaR is a package for Chinese text segmentation, keyword extraction and speech tagging.
    This package provides the data files required by jiebaR.
  license_family: MIT
  license_file:
    - '{{ environ["PREFIX"] }}/lib/R/share/licenses/MIT'
    - LICENSE

extra:
  recipe-maintainers:
    - katietz

# The original CRAN metadata for this package was:

# Package: jiebaRD
# Type: Package
# Title: Chinese Text Segmentation Data for jiebaR Package
# Description: jiebaR is a package for Chinese text segmentation, keyword extraction and speech tagging. This package provides the data files required by jiebaR.
# Version: 0.1
# Date: 2015-01-03
# Author: Qin Wenfeng
# Maintainer: Qin Wenfeng <mail@qinwenfeng.com>
# License: MIT + file LICENSE
# Suggests: jiebaR
# URL: https://github.com/qinwf/jiebaRD/
# BugReports: https://github.com/qinwf/jiebaRD/issues
# NeedsCompilation: no
# Packaged: 2015-01-04 03:40:31 UTC; outwen
# Repository: CRAN
# Date/Publication: 2015-01-04 07:11:14

# See
# https://docs.conda.io/projects/conda-build for
# more information about meta.yaml
