From 5aa25eb90e44e636fe94df1aee17643b3aa49faa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ant=C3=B4nio=20Camargo?= Date: Thu, 26 Sep 2024 11:27:26 -0700 Subject: [PATCH 1/2] Add `r-phylopath` --- recipes/r-phylopath/build.sh | 3 ++ recipes/r-phylopath/meta.yaml | 59 +++++++++++++++++++++++++++++++++++ 2 files changed, 62 insertions(+) create mode 100644 recipes/r-phylopath/build.sh create mode 100644 recipes/r-phylopath/meta.yaml diff --git a/recipes/r-phylopath/build.sh b/recipes/r-phylopath/build.sh new file mode 100644 index 0000000000000..e2d89ee75608a --- /dev/null +++ b/recipes/r-phylopath/build.sh @@ -0,0 +1,3 @@ +#!/bin/bash +export DISABLE_AUTOBREW=1 +${R} CMD INSTALL --build . ${R_ARGS} \ No newline at end of file diff --git a/recipes/r-phylopath/meta.yaml b/recipes/r-phylopath/meta.yaml new file mode 100644 index 0000000000000..de62fd619398c --- /dev/null +++ b/recipes/r-phylopath/meta.yaml @@ -0,0 +1,59 @@ +{% set version = '1.3.0' %} +{% set posix = 'm2-' if win else '' %} +{% set native = 'm2w64-' if win else '' %} + +package: + name: r-phylopath + version: '{{ version }}' + +source: + url: https://cran.r-project.org/src/contrib/phylopath_{{ version }}.tar.gz + sha256: 9e0f907f1f6b26b01d04d3702dbefc48f8648322de2cfbbc050d89d84b5929a9 + +build: + number: 0 + noarch: generic + rpaths: + - lib/R/lib/ + - lib/ + +requirements: + build: + - cross-r-base {{ r_base }} + host: + - r-ape >=4.1 + - r-base + - r-future.apply + - r-ggm >=2.3 + - r-ggplot2 >=3.0.0 + - r-ggraph >=1.0.0 + - r-igraph >=1.0.1 + - r-phylolm >=2.5 + - r-purrr >=0.2.3 + - r-tibble + run: + - r-ape >=4.1 + - r-base + - r-future.apply + - r-ggm >=2.3 + - r-ggplot2 >=3.0.0 + - r-ggraph >=1.0.0 + - r-igraph >=1.0.1 + - r-phylolm >=2.5 + - r-purrr >=0.2.3 + - r-tibble + +test: + commands: + - $R -e "library('phylopath')" + +about: + home: https://Ax3man.github.io/phylopath/ + summary: > + A comprehensive and easy to use R implementation of confirmatory phylogenetic + path analysis as described by Von Hardenberg and Gonzalez-Voyer (2012) + . + license: GPL-3.0-or-later + license_family: GPL3 + license_file: + - '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-3' From 2a15d869289a1c4e46d8c4e7e9bfd7c55bf9e13b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ant=C3=B4nio=20Camargo?= Date: Thu, 26 Sep 2024 11:34:41 -0700 Subject: [PATCH 2/2] Add `run_exports` --- recipes/r-phylopath/meta.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/recipes/r-phylopath/meta.yaml b/recipes/r-phylopath/meta.yaml index de62fd619398c..8ce590fb58d04 100644 --- a/recipes/r-phylopath/meta.yaml +++ b/recipes/r-phylopath/meta.yaml @@ -13,6 +13,7 @@ source: build: number: 0 noarch: generic + run_exports: '{{ pin_subpackage("r-phylopath", max_pin="x.x") }}' rpaths: - lib/R/lib/ - lib/