Skip to content

Commit

Permalink
Add r-rmio
Browse files Browse the repository at this point in the history
  • Loading branch information
dpryan79 committed Jun 6, 2021
1 parent 52b5b83 commit 86e3c52
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 0 deletions.
2 changes: 2 additions & 0 deletions recipes/r-rmio/bld.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
"%R%" CMD INSTALL --build . %R_ARGS%
IF %ERRORLEVEL% NEQ 0 exit /B 1
3 changes: 3 additions & 0 deletions recipes/r-rmio/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash
export DISABLE_AUTOBREW=1
${R} CMD INSTALL --build . ${R_ARGS}
67 changes: 67 additions & 0 deletions recipes/r-rmio/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
{% set version = '0.2.0' %}
{% set posix = 'm2-' if win else '' %}
{% set native = 'm2w64-' if win else '' %}

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

source:
url:
- {{ cran_mirror }}/src/contrib/rmio_{{ version }}.tar.gz
- {{ cran_mirror }}/src/contrib/Archive/rmio/rmio_{{ version }}.tar.gz
sha256: f3d990734411f5aae0337486d1cb2c978d04736fbe34bd14598157b455593a3c

build:
merge_build_host: True # [win]
number: 0
noarch: generic
rpaths:
- lib/R/lib/
- lib/

requirements:
build:
- {{ posix }}zip # [win]
- cross-r-base {{ r_base }} # [build_platform != target_platform]
host:
- r-base
run:
- r-base

test:
commands:
- $R -e "library('rmio')" # [not win]
- "\"%R%\" -e \"library('rmio')\"" # [win]

about:
home: https://github.com/privefl/rmio
license: GPL-3.0-only
summary: Provides header files of 'mio', a cross-platform C++11 header-only library for memory
mapped file IO <https://github.com/mandreyel/mio>.
license_family: GPL3
license_file:
- '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-3'

extra:
recipe-maintainers:
- conda-forge/r

# Package: rmio
# Title: Provides 'mio' C++11 Header Files
# Version: 0.2.0
# Authors@R: person(given = "Florian", family = "Prive", role = c("aut", "cre"), email = "florian.prive.21@gmail.com")
# Description: Provides header files of 'mio', a cross-platform C++11 header-only library for memory mapped file IO <https://github.com/mandreyel/mio>.
# License: GPL-3
# Copyright: file COPYRIGHTS
# Encoding: UTF-8
# LazyData: true
# RoxygenNote: 7.0.2
# URL: https://github.com/privefl/rmio
# BugReports: https://github.com/privefl/rmio/issues
# NeedsCompilation: no
# Packaged: 2020-07-22 08:33:11 UTC; au639593
# Author: Florian Prive [aut, cre]
# Maintainer: Florian Prive <florian.prive.21@gmail.com>
# Repository: CRAN
# Date/Publication: 2020-07-22 09:00:02 UTC

0 comments on commit 86e3c52

Please sign in to comment.