From 03eda0c423e0dcbe1e56157b84ff0028bfae818f Mon Sep 17 00:00:00 2001 From: Mervin M Fansler Date: Sat, 24 Aug 2024 10:30:35 +0200 Subject: [PATCH 1/2] adds r-rbeta2009 --- recipes/r-rbeta2009/bld.bat | 2 ++ recipes/r-rbeta2009/build.sh | 3 ++ recipes/r-rbeta2009/meta.yaml | 66 +++++++++++++++++++++++++++++++++++ 3 files changed, 71 insertions(+) create mode 100644 recipes/r-rbeta2009/bld.bat create mode 100644 recipes/r-rbeta2009/build.sh create mode 100644 recipes/r-rbeta2009/meta.yaml diff --git a/recipes/r-rbeta2009/bld.bat b/recipes/r-rbeta2009/bld.bat new file mode 100644 index 0000000000000..01bc5eadf1152 --- /dev/null +++ b/recipes/r-rbeta2009/bld.bat @@ -0,0 +1,2 @@ +"%R%" CMD INSTALL --build . %R_ARGS% +IF %ERRORLEVEL% NEQ 0 exit /B 1 diff --git a/recipes/r-rbeta2009/build.sh b/recipes/r-rbeta2009/build.sh new file mode 100644 index 0000000000000..b8d2635525637 --- /dev/null +++ b/recipes/r-rbeta2009/build.sh @@ -0,0 +1,3 @@ +#!/bin/bash +export DISABLE_AUTOBREW=1 +${R} CMD INSTALL --build . ${R_ARGS} diff --git a/recipes/r-rbeta2009/meta.yaml b/recipes/r-rbeta2009/meta.yaml new file mode 100644 index 0000000000000..e91a8c544b836 --- /dev/null +++ b/recipes/r-rbeta2009/meta.yaml @@ -0,0 +1,66 @@ +{% set version = '1.0' %} +{% set posix = 'm2-' if win else '' %} +{% set native = 'm2w64-' if win else '' %} + +package: + name: r-rbeta2009 + version: {{ version|replace("-", "_") }} + +source: + url: + - {{ cran_mirror }}/src/contrib/rBeta2009_{{ version }}.tar.gz + - {{ cran_mirror }}/src/contrib/Archive/rBeta2009/rBeta2009_{{ version }}.tar.gz + sha256: d8be1df85ff880a2849013b0c4ab80138b1ae32273e803a9196a25db2ced5f52 + +build: + merge_build_host: True # [win] + number: 0 + noarch: generic + rpaths: + - lib/R/lib/ + - lib/ + missing_dso_whitelist: + - '*/R.dll' # [win] + - '*/Rblas.dll' # [win] + - '*/Rlapack.dll' # [win] + +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('rBeta2009')" # [not win] + - "\"%R%\" -e \"library('rBeta2009')\"" # [win] + +about: + home: https://CRAN.R-project.org/package=rBeta2009 + license: GPL-2.0-only + summary: The package contains functions to generate random numbers from the beta distribution + and random vectors from the Dirichlet distribution. + license_family: GPL2 + license_file: + - '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-2' + +extra: + recipe-maintainers: + - conda-forge/r + +# Package: rBeta2009 +# Type: Package +# Title: The Beta Random Number and Dirichlet Random Vector Generating Functions +# Version: 1.0 +# Date: 2012-02-25 +# Author: Ching-Wei Cheng, Ying-Chao Hung, Narayanaswamy Balakrishnan +# Maintainer: Ching-Wei Cheng +# Description: The package contains functions to generate random numbers from the beta distribution and random vectors from the Dirichlet distribution. +# License: GPL-2 +# LazyLoad: yes +# Packaged: 2012-03-01 09:14:15 UTC; Cheng +# Repository: CRAN +# Date/Publication: 2012-03-01 09:33:12 From 7e9e499c7ce52f6607f812f087cd48fa069b6911 Mon Sep 17 00:00:00 2001 From: Mervin Fansler Date: Sat, 24 Aug 2024 10:36:36 +0200 Subject: [PATCH 2/2] compile --- recipes/r-rbeta2009/meta.yaml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/recipes/r-rbeta2009/meta.yaml b/recipes/r-rbeta2009/meta.yaml index e91a8c544b836..14be3c87979b2 100644 --- a/recipes/r-rbeta2009/meta.yaml +++ b/recipes/r-rbeta2009/meta.yaml @@ -15,7 +15,6 @@ source: build: merge_build_host: True # [win] number: 0 - noarch: generic rpaths: - lib/R/lib/ - lib/ @@ -26,8 +25,18 @@ build: requirements: build: - - {{ posix }}zip # [win] - cross-r-base {{ r_base }} # [build_platform != target_platform] + - {{ compiler('c') }} # [not win] + - {{ stdlib("c") }} # [not win] + - {{ compiler('m2w64_c') }} # [win] + - {{ stdlib("m2w64_c") }} # [win] + - {{ compiler('cxx') }} # [not win] + - {{ compiler('m2w64_cxx') }} # [win] + - {{ posix }}filesystem # [win] + - {{ posix }}make + - {{ posix }}sed # [win] + - {{ posix }}coreutils # [win] + - {{ posix }}zip # [win] host: - r-base run: