Skip to content

Commit

Permalink
add rematch2 lib using conda skeleton (#4829)
Browse files Browse the repository at this point in the history
  • Loading branch information
zachcp authored Jun 21, 2017
1 parent 3700dfa commit dcffa61
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 0 deletions.
8 changes: 8 additions & 0 deletions recipes/r-rematch2/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

# R refuses to build packages that mark themselves as Priority: Recommended
mv DESCRIPTION DESCRIPTION.old
grep -v '^Priority: ' DESCRIPTION.old > DESCRIPTION

$R CMD INSTALL --build .

49 changes: 49 additions & 0 deletions recipes/r-rematch2/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{% set version = '2.0.1' %}

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

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

source:
fn: rematch2_{{ version }}.tar.gz
url:
- https://cran.r-project.org/src/contrib/rematch2_{{ version }}.tar.gz
- https://cran.r-project.org/src/contrib/Archive/rematch2/rematch2_{{ version }}.tar.gz


sha256: 0612bb904334bd022ba6d1e69925b1e85f8e86b15ec65476777828776e89609a


build:
number: 0

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

# Suggests: covr, testthat
requirements:
build:
- r-base
- r-tibble

run:
- r-base
- r-tibble

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

about:
home: https://github.com/r-lib/rematch2#readme
license: MIT + file LICENSE
summary: Wrappers on 'regexpr' and 'gregexpr' to return the match results in tidy data frames.
license_family: MIT

0 comments on commit dcffa61

Please sign in to comment.